MCP Tools Reference: paydeveloper.googleapis.com

工具:validate_pass_jwt

驗證票證的 JWT 表示法,或票證的未編碼 JWT 酬載 (JSON 字串)。

下列程式碼範例說明如何使用 curl 呼叫 validate_pass_jwt MCP 工具。

Curl 要求
curl --location 'https://paydeveloper.googleapis.com/mcp' \
--header 'content-type: application/json' \
--header 'accept: application/json, text/event-stream' \
--data '{
  "method": "tools/call",
  "params": {
    "name": "validate_pass_jwt",
    "arguments": {
      // Provide these details according to the MCP tool specification.
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}'

輸入內容的結構定義

要求訊息,用於驗證票證的 JWT 表示法,或票證的未編碼 JWT 酬載 (以 JSON 字串形式)。

ValidatePassJwtRequest

JSON 表示法
{

  // Union field resource can be only one of the following:
  "passJwt": string,
  "passJson": string
  // End of list of possible types for union field resource.
}
欄位
聯集欄位 resource。待驗證的資源。必須設定其中一個。resource 只能是下列其中一項:
passJwt

string

用來表示 JWT 的字串,格式說明請見下方網站:https://developers.google.com/wallet/reference/rest/v1/Jwt。

passJson

string

JSON 字串,代表未編碼的憑證 JWT 酬載,格式說明請見 https://developers.google.com/wallet/reference/rest/v1/Jwt。您可以將這項屬性設為這個連結中說明的完整 JSON 表示法,或僅設為包含相關票證類別和物件的酬載欄位內容。

輸出內容的結構定義

驗證票證的 JWT 表示法,或票證的未編碼 JWT 酬載 (以 JSON 字串形式) 時,傳回的回應訊息。

工具註解

工具註解會傳送至 MCP 用戶端,說明特定工具的基本風險。大多數用戶端會將這些提示視為不受信任,但可用於決定何時向使用者傳送確認提示。

除了標題字串外,以下布林提示的定義如下:

  • readOnlyHint:如果為 true,工具不會修改環境。預設值:false。
  • destructiveHint:如果為 true,工具可以執行破壞性動作。如果為 false,工具只能執行加法動作。預設值:true。
  • idempotentHint:如果為 true,以相同引數重複呼叫工具,對環境不會有額外影響。預設值:false。
  • openWorldHint:設為 true 時,工具可以與外部實體的「開放世界」互動。如果為 false,工具只能與內部實體互動。舉例來說,網頁搜尋工具屬於開放世界,記憶體工具則不屬於開放世界。

破壞性提示:❌ | 等冪提示:✅ | 唯讀提示:✅ | 開放世界提示:❌