Agent-to-Agent Protocols › Discovery: the Agent Card
Language AI HandbookAll chapters A caller needs to know what a peer claims to do, how to reach it, and what formats and authentication it expects. The v1 Agent Card and discovery sections describe the public well-known URI /.well-known/agent-card.json, along with discovery through registries or direct exchange. The card is JSON metadata. Treat it as an input to selection, alongside your own policy for which agents to trust and what data may cross the boundary.
supportedInterfacesdeclares the endpoint URL, the transport binding and the protocol version for each interface. Choose compatible values from the same interface entry. The card'sversiondescribes the agent, while an interface version such as1.0describes the protocol.capabilitiesadvertises optional features such as streaming, push notifications and extended Agent Card support.capabilities.extendedAgentCardadvertises support for the authenticated operation. A client still needs authorization to retrieve it.defaultInputModesanddefaultOutputModesdescribe media types. The modes listed for a skill can override the defaults. Check that the caller has a parser for the expected deliverable before delegating.skillsidentify work the agent advertises. A description and examples help an application select a skill, but the name alone does not establish that two services use the same result schema.securitySchemesdescribe available authentication mechanisms. Security requirements identify the schemes and scopes that apply. The server still enforces authorization on the request and the relevant task.
Discovery has a different role from authorization. For a sensitive request, verify the endpoint identity using trusted configuration and confirm that the authenticated peer may handle the data. Matching a skill's words only checks that the card advertises the capability. A legitimate certificate or card signature binds an identity or document to a key. It does not test how well the service performs the work.
If the caller selects among many candidates, a registry can keep verified entries and cache them according to policy. Make the selection inspectable by recording the card and interface version used when the task was delegated. Keep that record separate from proof that an individual task was authorized and correctly completed.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!