Skip to main content
Glama

A2A Card

Build an A2A agent card

build_agent_card
Read-only

Builds a valid A2A 1.0 agent card from plain fields and returns it with a validation report. Give at least a name, a description and one interface URL. Publish the result at /.well-known/agent-card.json on the agent's host.

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": {
      "name": "<name>",
      "description": "<description>",
      "interfaces": "<interfaces>"
    },
    "name": "build_agent_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe agent's name.
skillsNoWhat the agent can do. Each item: { id, name, description, tags (list), examples (list) }.
iconUrlNoOptional link to an icon.
versionNoThe agent's own version, for example 1.0.0.
providerNoOptional { organization, url }.
streamingNoTrue if the agent supports streaming.
interfacesYesWhere the agent can be called. Each item: { url, protocolBinding (JSONRPC, GRPC or HTTP+JSON; default JSONRPC), protocolVersion (default 1.0) }.
descriptionYesWhat the agent does, in a sentence or two.
documentationUrlNoOptional link to documentation.
pushNotificationsNoTrue if the agent supports push notifications.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description stays consistent with that by only building and returning data. It adds useful behavior the annotations don't cover: the return shape is the card plus a validation report, and it discloses the minimum required inputs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action, then requirements, then the follow-up publishing step. Nothing is redundant, though the publishing note is task advice rather than strict tool definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with nested objects and no output schema, the description covers the required-field minimum and sketches the return value (card plus validation report). Slightly more on what validation failures look like would fully close it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 10 parameters including nested skills and interfaces. The description only echoes the three required fields, adding little semantic meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource plus the format: 'Builds a valid A2A 1.0 agent card from plain fields.' The mention of returning a validation report clearly separates it from check_agent_card (validation only) and upgrade_agent_card, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides concrete preconditions ('Give at least a name, a description and one interface URL') and a post-step ('Publish the result at /.well-known/agent-card.json'). However, it never says when to call this versus get_agent_card_requirements or check_agent_card, so the routing decision is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources