A2A /.well-known/agent.json Identity & Capability Card Verifier
verify_a2a_agent_cardVerify a remote A2A agent discovery card before delegation by checking JWS/DID binding, HTTPS enforcement, and capability spoofing.
Instructions
Verifies a remote agent's A2A /.well-known/agent.json discovery card, checking JWS/DID signature binding, endpoint HTTPS enforcement, and capability spoofing. Use when authenticating a peer autonomous agent before delegating subtasks or exchanging payments over A2A; for auditing an MCP tool server's tools/list manifest rather than a peer agent's A2A card, use audit_mcp_server_manifest instead. Read-only edge call (32 KB, 60 RPM): accepts 'agent_card_json' ('trust_policy' defaults to 'require_https_and_did'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_card_json": "<agent_card_json>"
},
"name": "verify_a2a_agent_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trust_policy | No | Verification policy for DID/DNS binding; defaults to 'require_https_and_did' when omitted. | |
| agent_card_json | Yes | JSON string or object of the peer agent's /.well-known/agent.json descriptor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Canonical identifier of the verified peer agent. | |
| card_valid | Yes | True when the A2A agent card schema, transport, and identity claims pass verification. | |
| spoofing_flags | Yes | List of impersonation or downgrade anomalies detected. | |
| delegation_verdict | Yes | Handshake decision ('SAFE_TO_DELEGATE_A2A' or 'REJECT_UNVERIFIED_AGENT'). |