When you manually register agents or Model Context Protocol (MCP) servers in
Agent Registry by creating a Service resource, you provide JSON
configuration files that declare their capabilities. Agent Registry validates
these files against open source specifications before indexing them so that
consumers can discover agent
A2A skills and MCP
tools. Use the following JSON structures and examples to format your Agent
Cards and MCP tool specifications.
Agent Card schema
When registering an A2A-compliant agent, your agent-card.json payload must
adhere to the official
Agent2Agent (A2A) specification.
The maximum file size for the specification file is 150 KB.
The skills array fields support the keyword search index.
Agent Registry supports versions 1.0 and 0.3 of the A2A
Agent Card. Select a
version to view its JSON schema and field definitions:
Version 1.0 (recommended)
For version 1.0 of A2A Agent Cards, the payload must adhere to the official
A2A v1.0 specification. In this specification, you declare
transport endpoints within a supportedInterfaces array:
{
"name": "string",
"description": "string",
"version": "string",
"supportedInterfaces": [
{
"url": "string",
"protocolBinding": "string",
"protocolVersion": "string",
"tenant": "string"
}
],
"capabilities": {
"streaming": false,
"pushNotifications": false,
"extendedAgentCard": false
},
"defaultInputModes": [
"text/plain"
],
"defaultOutputModes": [
"text/plain"
],
"skills": [
{
"id": "string",
"name": "string",
"description": "string",
"tags": [
"string"
],
"examples": [
"string"
]
}
]
}
Field definitions
name: the human-readable name of the agent.description: a high-level summary of the agent's purpose.version: the version of the agent, for example,1.0.0.supportedInterfaces: an array of supported transport and URL combinations. Each interface contains the following:url: the endpoint URL where this interface is reached.protocolBinding: the protocol binding supported at this URL, for example,HTTP+JSON,JSONRPC, orGRPC.protocolVersion: the A2A protocol version this interface exposes, for example,1.0.0.tenant(optional): the identifier of the agent owner.
capabilities(optional): specifies supported operational capabilities such as the following:extensions(optional): an array of protocol extensions.streaming(optional): a boolean indicating if the agent supports streaming responses.pushNotifications(optional): a boolean indicating if push notifications are supported for task updates.extendedAgentCard(optional): a boolean indicating if the agent provides an extended Agent Card when authenticated.
defaultInputModes(optional): an array of MIME types accepted as input.defaultOutputModes(optional): an array of MIME types produced as output.skills: an array of descriptive A2A skills the agent possesses:id: a unique programmatic identifier for the A2A skill.name: a human-readable name for the A2A skill.description: a detailed explanation of what the A2A skill does.tags: an array of keyword strings used to categorize the A2A skill.examples: an array of example prompts or scenarios this A2A skill handles.
Version 0.3
For version 0.3 of A2A Agent Cards, the payload must adhere to the
v0.3.0 specification. In this specification, the primary
inference URL and protocol version are declared as top-level fields:
{
"name": "string",
"description": "string",
"version": "string",
"protocolVersion": "string",
"url": "string",
"skills": [
{
"id": "string",
"name": "string",
"description": "string",
"tags": [
"string"
],
"examples": [
"string"
]
}
],
"capabilities": {
"streaming": false,
"pushNotifications": false,
"stateTransitionHistory": false
},
"defaultInputModes": [
"text/plain"
],
"defaultOutputModes": [
"text/plain"
]
}
Field definitions
name: the human-readable name of the agent.description: a high-level summary of the agent's purpose.version: the version of the agent, for example,1.0.2.protocolVersion: the version of the A2A protocol the agent implements. Because version1.0deprecates this top-level field, the value must be0.3or any0.3patch version, such as0.3.1, for this schema.url: the endpoint URL where the agent can be reached.capabilities(optional): an object specifying the agent's supported operational capabilities, such asstreaming,pushNotifications, orstateTransitionHistory.defaultInputModes(optional): an array of strings defining the default MIME types the agent accepts as input, for example,["text/plain"].defaultOutputModes(optional): an array of strings defining the default MIME types the agent produces as output, for example,["text/plain"].skills: an array of descriptive A2A skills the agent possesses:id: a unique programmatic identifier for the A2A skill.name: a human-readable name for the A2A skill.description: a detailed explanation of what the A2A skill does.tags: an array of keyword strings used to categorize the A2A skill.examples: an array of example prompts or scenarios this A2A skill handles.
MCP tool schema
When registering an MCP server, your toolspec.json payload must include a list
of tools that adhere to the
MCP Tool object schema.
The expected payload is a JSON object with a single tools field, exactly as it
is returned by
the standard MCP tools or list request.
The maximum file size for this specification file is 150 KB.
{
"tools": [
{
"name": "string",
"description": "string",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"title": "string",
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true
},
"_meta": {
"com.googleapis.iap/PolicyHints": {
"authorization": {
"toolDisabled": false,
"hitlMode": "HITL_MODE_ALWAYS"
}
}
}
}
]
}
Field definitions
tools: an array of tools provided by the server:name: the programmatic identifier for the tool.description: a human-readable explanation of the tool's purpose.inputSchema: a JSON Schema object defining the expected parameters for the tool.annotations: behavioral hints that guide how orchestrator agents interact with the tool:title: a human-readable title for the tool.readOnlyHint: iftrue, the tool only retrieves data and doesn't modify its environment. Default isfalse.destructiveHint: iftrue, the tool performs operations that might cause permanent changes. Default istrue.idempotentHint: iftrue, calling the tool repeatedly has no additional effect. Default isfalse.openWorldHint: iftrue, the tool interacts with external systems. Default istrue.
_meta(optional): protocol-level metadata adhering to the Model Context Protocol (MCP) specification for attaching structured metadata to tools. Because standardannotationsis a closed object limited to predefined hints,_metaprovides an extensible container for additional metadata while maintaining compatibility with standard MCP clients.To prevent naming collisions across providers, top-level keys within
_metause reverse-domain notation. Agent Registry validates_metaagainst theapphub.googleapis.com/McpServerextended metadata schema and supports the following namespace:com.googleapis.iap/PolicyHints(optional): policy hints evaluated by Identity-Aware Proxy (IAP) and Agent Gateway to enforce tool authorization and human-in-the-loop (HITL) controls:authorization(optional): authorization configuration for the tool:toolDisabled(optional): a boolean indicating whether the tool is disabled for invocation. Set totrueto disable the tool. Default isfalse, which means that the tool is enabled when you omit this field.hitlMode(optional): a string specifying the human-in-the-loop (HITL) execution mode for the tool:HITL_MODE_UNSPECIFIED: the HITL mode isn't specified.HITL_MODE_DISABLED: the tool runs without requiring interactive human approval.HITL_MODE_ALWAYS: the tool always requires interactive human approval before execution.HITL_MODE_IF_UNSAFE: the tool requires interactive human approval only when the operation is evaluated as unsafe.