card command group provides functionality to retrieve agent cards and validate their structure and contents.
get
Retrieve an agent’s card, which contains metadata about the agent’s capabilities, description, and configuration.Arguments
URL of the A2A agent whose card to retrieve
Options
Request authenticated extended card. Some agents may return additional information when authenticated. Short form:
-aCurrently defined in the code but not fully implemented in the service layer.
Examples
Response Format
The agent card is returned as JSON and includes:- name: Agent name
- protocol_version: A2A protocol version
- description: Human-readable description of the agent
- url: Agent’s endpoint URL
- capabilities: List of agent capabilities (e.g., streaming, push notifications)
- models: Available models (if applicable)
- authentication: Supported authentication methods
- rate_limits: Rate limiting information (if applicable)
validate
Validate an agent card from a URL or local file. Checks that the card conforms to the A2A protocol specification.Arguments
URL or file path of the agent card to validate.
- If the source starts with
http://orhttps://, it’s treated as a URL - Otherwise, it’s treated as a local file path
Examples
Response Format
Valid Card
When validation succeeds, the output includes:- Status: “Valid Agent Card”
- Agent: Agent name from the card
- Protocol Version: A2A protocol version
- Source: URL or file path validated
Invalid Card
When validation fails, the output includes:- Status: “Invalid Agent Card”
- Source: URL or file path validated
- Errors: List of validation issues with field names and messages
Common Validation Issues
- Missing required fields:
name,protocol_version,url - Invalid protocol version: Must match supported A2A versions
- Invalid URL format: Must be a valid HTTP/HTTPS URL
- Invalid capability values: Must be from the defined set of capabilities
- Malformed JSON: File must contain valid JSON