Get A2A Agent Card
a2a_get_agent_cardFetch an agent's card from its well-known URL to discover its capabilities, supported features, and endpoints, enabling informed interaction.
Instructions
Retrieve an agent's card containing metadata and capability information.
This tool fetches the agent card which describes what the agent can do, its configuration, supported features, and other metadata.
Args:
agentCardUrl (string): URL to the agent's card endpoint, typically at /.well-known/agent-card.json
Returns: JSON response containing the agent card with:
name: Agent name
description: Agent purpose and capabilities
version: Agent version
skills: Array of skills/capabilities the agent provides
endpoints: Available API endpoints
supportedFeatures: List of A2A protocol features supported
metadata: Additional agent information
Agent cards follow the A2A protocol specification and help clients understand how to interact with the agent.
Examples:
Use when: "What can this agent do?" params: { agentCardUrl: "https://agent.example.com/.well-known/agent-card.json" }
Use when: "Get information about the weather agent's capabilities" params: { agentCardUrl: "https://weather-agent.example.com/.well-known/agent-card.json" }
Use when: "I need to know what features this agent supports before sending a message" params: { agentCardUrl: "https://agent.example.com/.well-known/agent-card.json" }
Don't use when: You want to send a message (use a2a_send_message instead)
Error Handling:
Returns "Error: Failed to fetch agent card" if the URL is unreachable
Returns "Error: Invalid agent card format" if the card doesn't conform to A2A specifications
Returns "Error: Agent card not found" if the endpoint returns 404
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentCardUrl | Yes | URL to the agent's card endpoint |