工具: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 tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
输入架构
用于验证通行卡 JWT 表示形式或未编码的通行卡 JWT 载荷(以 JSON 字符串形式)的请求消息。
ValidatePassJwtRequest
| JSON 表示法 |
|---|
{ // Union field |
| 字段 | |
|---|---|
联合字段 resource。要验证的资源。必须设置其中一个。resource 只能是下列其中一项: |
|
passJwt |
表示 JWT 的字符串,其格式如下:https://developers.google.com/wallet/reference/rest/v1/Jwt。 |
passJson |
一个 JSON 字符串,表示卡券的未编码 JWT 载荷,格式如 https://developers.google.com/wallet/reference/rest/v1/Jwt 中所述。此参数可以设置为此链接中描述的整个 JSON 表示形式,也可以仅设置为包含相关卡券类和对象的载荷字段的内容。 |
输出架构
用于验证通行卡的 JWT 表示形式或通行卡的未编码 JWT 载荷(以 JSON 字符串形式)的响应消息。
工具注释
破坏性提示:❌ | 等幂性提示:✅ | 只读提示:✅ | 开放世界提示:❌