Check interfaces and capabilities with an A2A Agent Card
Use the A2A specification snapshot to check a remote Agent Card's interfaces, version, capabilities and content modes before sending any task.
Prerequisites and input · Engineering checks · 1. Fetch and inspect the Agent Card
At a glance
This note follows the A2A specification snapshot read on 2026-11-12 (the page states Latest Released Version 1.0.0). An Agent Card is JSON metadata published by the remote agent. Before sending a task, the caller uses it to decide which interface is reachable, which optional capabilities exist, and which media types both sides can exchange. The result is an interoperability checklist where every row carries a completion check and a stop reason.
Runtime and applicability
- Article type
- Engineering practice
- Verified
- Applies to
- A2A Check interfaces and capabilities with an A2A Agent Card
Execution locations and responsibilities
- A2A client and remote agent Use the workflow below to distinguish responsibilities of the caller, runtime, and external actions.
Arrows show the order of checks in the guide. Follow each step’s prerequisites, branches and stop conditions; unexecuted steps are not completed work.
When to use
- The specification requires an Agent Card to contain
name,description,supportedInterfaces,version,capabilities,defaultInputModes,defaultOutputModesandskills. Ifsignaturesis present, the client should verify at least one before trusting the card. Prepare the payload by field-presence rules first: keep required fields; keep optional fields that were explicitly set even when the value equals the default (for example an explicitstreamingof false); omit optional fields that were never set and empty non-required arrays; exclude thesignaturesfield; then canonicalize with RFC 8785 and verify with a key found throughkidandjkuor a trusted key store. Removing too much or too little changes the signed payload and causes a false result. Expired or revoked keys must not be used. For caching, servers should sendCache-ControlandETag, and clients should use conditional requests once the cached copy expires.
When not to use
- The checklist shows what the card declares, not that the remote implements it; the specification only requires specific errors when a capability is missing.
- This flow does not cover obtaining credentials, securing push callbacks or cancelling tasks; those belong to other tasks.
- The sample cards in the specification show
protocolVersionboth as 0.3 and 1.0, so use the value in the card you actually read rather than inferring from examples.
Prerequisites and input
- You have the remote agent's domain, an Agent Card address, or card content that was configured in advance.
- You have chosen a protocol binding (the core ones in the specification are
JSONRPC,GRPCandHTTP+JSON) and a task type (whether it needs streaming, push, files or structured data). - You know credentials are obtained out of band; the Agent Card itself should not carry them.
Engineering checks
Card structure and trust — The specification requires an Agent Card to contain name, description, supportedInterfaces, version, capabilities, defaultInputModes, defaultOutputModes and skills. If signatures is present, the client should verify at least one before trusting the card. Prepare the payload by field-presence rules first: keep required fields; keep optional fields that were explicitly set even when the value equals the default (for example an explicit streaming of false); omit optional fields that were never set and empty non-required arrays; exclude the signatures field; then canonicalize with RFC 8785 and verify with a key found through kid and jku or a trusted key store. Removing too much or too little changes the signed payload and causes a false result. Expired or revoked keys must not be used. For caching, servers should send Cache-Control and ETag, and clients should use conditional requests once the cached copy expires.
Interface, version and tenant selection — supportedInterfaces is an ordered preference list whose first entry is the preferred interface. Each entry has url, protocolBinding, protocolVersion and an optional tenant. The client picks the earliest entry it supports, uses that entry's URL, and sets tenant in every request to the declared value, omitting it if the entry has none. Transport security depends on the binding: HTTP-based bindings must use HTTPS in production, and gRPC must use TLS with an address in hostname:port form. Versions are compared as Major.Minor and declared with A2A-Version; an unsupported version yields VersionNotSupportedError. The specification also advises clients that need newer features to request a specific version and avoid silent fallback to older ones.
Capability and content-mode fit — When streaming, pushNotifications or extendedAgentCard under capabilities is false or absent, the related operations must return UnsupportedOperationError or PushNotificationNotSupportedError respectively. An entry in extensions with required set to true causes ExtensionSupportRequiredError if the client does not declare support. Content modes start from defaultInputModes and defaultOutputModes, which a skill's inputModes and outputModes can override. acceptedOutputModes in a request tells the server what the client can receive, and an unsupported media type produces ContentTypeNotSupportedError. An extended card can add skills, capabilities or configuration that the public card lacks, so it can change all of these conclusions.
1. Fetch and inspect the Agent Card
Where: the caller's A2A client. Input: /.well-known/agent-card.json under the domain, a registry entry, or a configured card. Action: obtain the card, confirm each required field is present, and record version and the cache headers. Completion check: all eight required fields are noted, and required arrays including supportedInterfaces, defaultInputModes, defaultOutputModes and skills are nonempty. Stop: any required field is missing or a required array is empty.
2. Verify the signature, if any
Where: local to the client. Input: signatures from the card plus a trusted key source. Action: keep required fields and explicitly set optional fields (including those equal to the default), omit never-set optional fields and empty non-required arrays, exclude signatures, canonicalize with RFC 8785, and verify at least one signature. Completion check: the checklist records one of verified, unsigned or verification failed. Stop: a signature exists but fails, or the needed key is expired or revoked; do not trust that card. An unsigned card is simply recorded, since the specification does not require every card to be signed.
3. Select a reachable interface
Where: client transport selection. Input: ordered supportedInterfaces and actual binding. Select a supported protocolBinding and record url, protocolVersion and tenant. Production JSONRPC/HTTP+JSON MUST use HTTPS and production GRPC MUST use TLS; hostname:port is the recommended gRPC address format, separate from mandatory encryption. Completion: identify one interface and actual tenant/version with production encryption satisfied. Stop unsupported bindings, mismatched versions or missing mandatory encryption without guessing an address.
4. Confirm authentication and fetch the extended card
Where: client authentication and extension declaration. Input: public-card securitySchemes, securityRequirements and required extensions. Before an extended-card request, check public-card required extensions and stop if unsupported. Declare supported extension URIs through the chosen binding’s HTTP A2A-Extensions header or gRPC metadata, authenticate with out-of-band credentials and retrieve the applicable extendedAgentCard. Replace the operative cache, recheck required fields, nonempty arrays and new required extensions, then evaluate capabilities and media modes. Completion: identify the actual card, authentication and extension declaration. Stop unmet credentials/extensions or extension-support/not-configured errors instead of proceeding with task calls.
5. Check capabilities against the task type
Where: the client's pre-call checks. Input: the task type and capabilities. Action: if streaming is needed confirm streaming; if callbacks are needed confirm pushNotifications; if post-login detail is needed confirm extendedAgentCard; list extensions with required true and confirm the client can comply. Completion check: each needed capability is marked declared or not declared. Stop: a capability the task depends on is not declared, or a required extension cannot be honored. Polling with GetTask does not depend on these optional capabilities and can be noted as a fallback.
6. Check content modes
Where: where the client builds requests. Input: the part types to send, the expected return types and the target skill. Action: read the skill's inputModes and outputModes, falling back to defaultInputModes and defaultOutputModes, and set acceptedOutputModes accordingly. Completion check: every media type sent or received can be traced to a field in the card. Stop: a needed media type is in neither list; stop rather than expect the server to convert it.
Task example
This is a synthetic manual walkthrough; every observation below is a hypothetical expectation, not a verified result. Suppose a route-planning agent's card lists JSONRPC, GRPC and HTTP+JSON in supportedInterfaces, all with protocolVersion 1.0, and capabilities has streaming true and pushNotifications false. The caller implements only HTTP+JSON, so it picks the third entry, confirms its URL is HTTPS and records it. The task needs callbacks, so the push row reads not declared, fall back to GetTask polling. The skill's inputModes contains only application/json, so a plain-text request is marked unsendable and must become structured data. If the extended card obtained after authentication added a skill that accepts text, those rows would have to be redone against the extended card. The expectation is that forcing push anyway would return PushNotificationNotSupportedError; that is an inference from the specification and has not been checked against any real service.
Completion checks
- Interface choice: the interface in the checklist comes from
supportedInterfaces, itstenantandprotocolVersionmatch the card, and transport security fits the chosen binding. - Capability judgment: each optional capability cites a field value rather than an assumption.
- Content modes and operative card: each media type traces back to a skill-level or default list, and the checklist says whether the public or the extended card was used.
Verification scope
This note is based on the A2A specification snapshot read on 2026-11-12. Documentation was read only: no SDK was installed, no service was logged into, no API call was executed, and no real output exists. Observations in the walkthrough are hypothetical expectations that still need verification in a real environment.
Sources
All links are official pages; verification dates are listed per source, and links point to the version checked.