Skip to main content
CodeLint.Dev AI · Dev · Finance

A2A Agent Card Builder & Validator

Build the agent card an Agent2Agent server publishes at /.well-known/agent-card.json, or paste an existing card to check it against the A2A 1.0 and 0.3 specifications.

Showing the example: CodeLint.Dev's own agent with four of its skills. Its endpoint speaks A2A 1.0 and still accepts 0.3. Edit any field and the JSON updates, or choose Start blank.

Agent

Your agent's own release number, not the protocol version.

Endpoint

Endpoints go in supportedInterfaces; there is no top-level url or protocolVersion.

The interface version describes the server, not the card: a 1.0-format card can point at an endpoint that still speaks 0.3 (message/send rather than SendMessage).

Provider and links (optional)

The provider object needs both fields; leave both empty to omit it.

Capabilities and media types

Comma-separated. A skill can override these with its own lists.

Authentication

How clients authenticate

No securitySchemes are written. Only choose this if the endpoint really accepts unauthenticated requests.

Skills (4)

Skill 1 · json_validate

Skill 2 · cron_explain

Skill 3 · count_tokens

Skill 4 · loan_payment

agent-card.json

A2A 1.0
{
  "name": "CodeLint.Dev Tools",
  "description": "Deterministic developer, AI-engineering and finance utilities for agents: JSON/YAML/CSV conversion and validation, encoding and hashing, cron and regex checking, subnet maths, LLM token and cost estimation, and loan/investment arithmetic. A tool agent: every skill is a deterministic function with no model in the loop, so results are exact and repeatable.",
  "version": "1.0.0",
  "supportedInterfaces": [
    {
      "url": "https://codelint.dev/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "provider": {
    "organization": "CodeLint.Dev",
    "url": "https://codelint.dev"
  },
  "documentationUrl": "https://codelint.dev/agents",
  "iconUrl": "https://codelint.dev/favicon.svg",
  "capabilities": {
    "streaming": false,
    "pushNotifications": false
  },
  "defaultInputModes": [
    "application/json",
    "text/plain"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/plain"
  ],
  "skills": [
    {
      "id": "json_validate",
      "name": "Validate JSON",
      "description": "Check whether text is valid JSON (RFC 8259). Returns valid=true with the top-level type, total key count and nesting depth, or valid=false with the error message and its exact line and column. Use this to find why a payload will not parse.",
      "tags": [
        "data",
        "Data formats"
      ],
      "examples": [
        "{\"skill\":\"json_validate\",\"input\":{\"json\":\"{\\\"name\\\": \\\"Ada\\\", \\\"tags\\\": [\\\"a\\\", \\\"b\\\",]}\"}}"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json"
      ]
    },
    {
      "id": "cron_explain",
      "name": "Explain a cron expression",
      "description": "Parse a standard 5-field cron expression (or an @daily-style macro), describe in words when it fires, and compute its next run times in UTC. Use it to check a schedule before deploying it.",
      "tags": [
        "network",
        "Schedules",
        "patterns & networking"
      ],
      "examples": [
        "{\"skill\":\"cron_explain\",\"input\":{\"expression\":\"*/15 9-17 * * 1-5\",\"count\":3,\"from\":\"2026-01-01T00:00:00Z\"}}"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json"
      ]
    },
    {
      "id": "count_tokens",
      "name": "Count tokens in text",
      "description": "Count how many tokens a piece of text uses. Exact for OpenAI's published o200k_base encoding; for Anthropic and Google models it returns the estimate from each provider's documented ratio, labelled as an estimate.",
      "tags": [
        "ai",
        "LLM engineering"
      ],
      "examples": [
        "{\"skill\":\"count_tokens\",\"input\":{\"text\":\"The quick brown fox jumps over the lazy dog.\"}}"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json"
      ]
    },
    {
      "id": "loan_payment",
      "name": "Loan / mortgage payment (EMI)",
      "description": "Compute the fixed monthly payment on an amortising loan or mortgage (the EMI), plus total interest and total repaid, using the standard annuity formula. Optionally returns the first months of the amortisation schedule.",
      "tags": [
        "finance",
        "Finance arithmetic"
      ],
      "examples": [
        "{\"skill\":\"loan_payment\",\"input\":{\"principal\":250000,\"annual_rate_percent\":6.5,\"term_months\":360,\"schedule_months\":3}}"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json"
      ]
    }
  ]
}

Serve it at https://codelint.dev/.well-known/agent-card.json with Content-Type: application/json.

Check

Pass — a valid A2A 1.0 agent card.

0 errors · 0 warnings · 0 notes · checked as A2A 1.0 (has supportedInterfaces, the 1.0 way of declaring endpoints)

AgentCard fields in A2A 1.0

Defined by the AgentCard message in the specification’s a2a.proto; JSON uses the same fields in camelCase.

FieldTypeRequiredPurpose
namestringYesHuman-readable name of the agent.
descriptionstringYesWhat the agent does, for people and for other agents deciding whether to call it.
supportedInterfacesAgentInterface[]YesEndpoints in preference order. Each has url, protocolBinding, protocolVersion and an optional tenant.
versionstringYesThe agent’s own version, not the protocol’s.
capabilitiesAgentCapabilitiesYesOptional features: streaming, pushNotifications, extendedAgentCard, extensions.
defaultInputModesstring[]YesMedia types accepted across all skills.
defaultOutputModesstring[]YesMedia types the agent produces.
skillsAgentSkill[]YesEach needs id, name, description, tags; optional examples, inputModes, outputModes, securityRequirements.
providerAgentProviderNoorganization and url, both required when present.
documentationUrlstringNoLink to documentation for the agent.
iconUrlstringNoLink to an icon.
securitySchemesmap<string, SecurityScheme>NoNamed schemes: API key, HTTP auth, OAuth 2.0, OpenID Connect or mutual TLS.
securityRequirementsSecurityRequirement[]NoWhich of those schemes, with which scopes, a request must satisfy.
signaturesAgentCardSignature[]NoJWS signatures over the canonicalised card.

An array marked required must contain at least one element (section 5.7).

What changed between 0.3 and 1.0

A2A 1.0 was released in March 2026; 0.3 dates from July 2025 and is still deployed. The layouts are not compatible.

A2A 0.3A2A 1.0
Top-level protocolVersion: "0.3.0"protocolVersion: "1.0" on each interface
url + preferredTransportFirst entry of supportedInterfaces
additionalInterfaces[].transportsupportedInterfaces[].protocolBinding
{"type": "apiKey", "in": "header", "name": …}{"apiKeySecurityScheme": {"location": "header", "name": …}}
security: [{"apiKey": []}]securityRequirements: [{"schemes": {"apiKey": {"list": []}}}]
supportsAuthenticatedExtendedCardcapabilities.extendedAgentCard
capabilities.stateTransitionHistoryRemoved
JSON-RPC method message/sendSendMessage
Part {"kind": "text", "text": …}, role "user"Part {"text": …}, role "ROLE_USER"

How discovery works, and where to host the card

A client that knows an agent’s domain sends GET https://{domain}/.well-known/agent-card.json. The specification also allows registries and direct configuration. Drafts before 0.3.0 used /.well-known/agent.json.

A 1.0 client then walks supportedInterfaces in order, takes the first binding it implements and uses that entry’s URL. It sends an A2A-Version header with each request and authenticates with a scheme the card declares. Skills, tags and media types exist for selection: they let a client judge whether this is the right agent to delegate to.

The card is static JSON, so any host can serve it. The specification asks for a Cache-Control header with max-age and an ETag (section 8.6) so clients can revalidate cheaply. It does not prescribe a media type for the file or mention CORS; application/json is the safe choice, and a browser-based client can only read the card if the response also carries Access-Control-Allow-Origin. Anything sensitive belongs behind the authenticated extended card.

CodeLint.Dev’s own card is at codelint.dev/.well-known/agent-card.json. It is a dual card: the 1.0 layout, plus the 0.3 top-level fields for older clients; the agents page documents the endpoint behind it.

A2A and MCP do different jobs

MCP standardises how an agent reaches tools and data: a server lists tools with typed inputs, the client calls one, a structured result comes back. A2A standardises how one agent hands work to another agent it treats as opaque: it finds the agent through its card, sends a message, and may receive a long-running task that asks for more input or streams progress.

The A2A documentation describes the two as complementary: an agent that accepts a task over A2A will often use MCP internally to carry it out. An MCP tool carries a JSON Schema for its arguments; an A2A skill has no schema, only prose, tags, examples and media types for another agent to reason about.

CodeLint.Dev exposes the same deterministic utilities as MCP tools at https://codelint.dev/mcp and as A2A skills behind its agent card. For single function calls like those, MCP is the more natural fit.

Mistakes that break discovery

What this validator or a client reports, and the cause behind each.

The endpoint "/a2a/v1" is not an absolute URL — it is a relative path

Cause: The URL was copied from a route table. Cards are often read from a registry or a cache, where there is nothing to resolve a relative path against.

Fix: Write the full https:// address in supportedInterfaces[].url (url in a 0.3 card). Production deployments must use HTTPS.

HTTP 401 from the endpoint, and the card declares no securitySchemes

Cause: The endpoint sits behind a gateway that wants a key or token, but the card does not say so, so clients send unauthenticated requests.

Fix: Declare the scheme in securitySchemes and reference it from securityRequirements (security in 0.3).

JSON-RPC error -32601 "Method not found" on the first call

Cause: Card and server disagree about the protocol version: a 1.0 client calls SendMessage, a 0.3 server only knows message/send.

Fix: Set each interface’s protocolVersion to what that URL really speaks — "0.3" is allowed in a 1.0 card — or upgrade the server.

HTTP 404 from POST /message:send

Cause: The card says HTTP+JSON for a URL that serves JSON-RPC. JSON-RPC posts every call to one URL; the REST binding appends paths such as /message:send.

Fix: Make protocolBinding (preferredTransport in 0.3) match what the URL serves, and list a second interface if you offer both.

Skill id "extract" is already used by $.skills[0]

Cause: Two skills share an id, usually after copy-and-paste. Renaming ids between releases is the quieter version of the same bug: the id is the only stable handle a client has for a skill.

Fix: Keep ids unique and stable. Reword name and description freely, and bump version when the skill set changes.

This security requirement names the scheme "oauth", which is not defined in securitySchemes

Cause: A requirement refers to a scheme by its key in securitySchemes, and the two no longer match.

Fix: Use exactly the same key, including capitalisation, in both places.

A minimal card and a first request

The smallest card with every field 1.0 requires, the call a client makes against it, and a real call to CodeLint.Dev, whose endpoint also still accepts the 0.3 message/send form.

Minimal A2A 1.0 agent card
{
  "name": "Echo Agent",
  "description": "Returns the text it is sent.",
  "version": "1.0.0",
  "supportedInterfaces": [
    {
      "url": "https://agent.example.com/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "capabilities": {},
  "defaultInputModes": ["text/plain"],
  "defaultOutputModes": ["text/plain"],
  "skills": [
    {
      "id": "echo",
      "name": "Echo",
      "description": "Echoes the input text back unchanged.",
      "tags": ["echo"]
    }
  ]
}
A2A 1.0 — SendMessage over JSON-RPC
POST /a2a HTTP/1.1
Host: agent.example.com
Content-Type: application/json
A2A-Version: 1.0

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "SendMessage",
  "params": {
    "message": {
      "messageId": "6f1c2a9e-0b7d-4c55-9a43-2f8f1c3e7d10",
      "role": "ROLE_USER",
      "parts": [{ "text": "hello" }]
    }
  }
}
A2A 1.0 — SendMessage against CodeLint.Dev
curl -s https://codelint.dev/a2a \
  -H 'Content-Type: application/json' \
  -H 'A2A-Version: 1.0' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "SendMessage",
    "params": {
      "message": {
        "messageId": "6f1c2a9e-0b7d-4c55-9a43-2f8f1c3e7d10",
        "role": "ROLE_USER",
        "parts": [
          {
            "data": { "skill": "json_validate", "input": { "json": "{\"a\":1}" } },
            "mediaType": "application/json"
          }
        ]
      }
    }
  }'
Response (ids shortened) — a direct Message, not a Task
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "message": {
      "messageId": "dd7d020b-…",
      "contextId": "41865bd5-…",
      "role": "ROLE_AGENT",
      "parts": [
        {
          "data": {
            "skill": "json_validate",
            "ok": true,
            "result": { "valid": true, "type": "object", "keys": 1, "depth": 1, "bytes": 7 }
          },
          "mediaType": "application/json"
        },
        { "text": "{\"valid\":true,\"type\":\"object\",\"keys\":1,\"depth\":1,\"bytes\":7}" }
      ]
    }
  }
}

About

The A2A Agent Card Builder writes the JSON discovery document an Agent2Agent server publishes at /.well-known/agent-card.json. Fill in the agent’s name, endpoint, transport, capabilities, authentication and skills, and it produces a card in the A2A 1.0 layout, or in the 0.3 layout for clients that have not migrated. The validator takes an existing card, works out which version it was written for, and reports each problem with a severity and a JSON path: missing required fields, wrong types, relative or plain-http endpoints, unknown transports, duplicate skill ids, malformed media types, and security requirements that name a scheme the card never defines. Both run in your browser; the card is not uploaded anywhere.

How to use

  1. 1 In Build mode, pick the card format first: A2A 1.0 is the current specification; choose 0.3 only if the clients that will read the card have not moved to 1.0.
  2. 2 Fill in the agent name, description, version and the absolute https:// endpoint URL, then choose the transport that URL really serves (JSONRPC, GRPC or HTTP+JSON).
  3. 3 Set the capability toggles and the authentication choice. None writes no security fields; API key and bearer each write one scheme plus the requirement that references it.
  4. 4 Add one entry per skill. The id, name, description and at least one tag are required; examples and per-skill media types are optional.
  5. 5 Read the Check panel under the JSON. Errors must be fixed; warnings are things a client may trip over. Then copy the JSON or download agent-card.json and serve it at /.well-known/agent-card.json.
  6. 6 To check a card you already have, switch to Validate, paste the JSON and read the findings. Edit in builder loads it into the form, which is also the quickest way to convert a 0.3 card to 1.0.
What URL does an A2A agent card live at?
https://{your-domain}/.well-known/agent-card.json. That is the well-known URI the specification defines (section 8.2 of A2A 1.0, and the IANA registration template in section 14.3), and 0.3.0 uses the same path. Drafts before 0.3.0 used /.well-known/agent.json, which is why some servers answer on both. The well-known URI is one option, not a requirement: a client can also be given the card through a registry or by direct configuration.
Should I publish a 1.0 card or a 0.3 card?
Publish the layout your clients read, and describe the protocol your endpoint actually speaks. The two layouts are not interchangeable: a 0.3 client looks for a top-level url and preferredTransport, a 1.0 client reads supportedInterfaces. In a 1.0 card every interface carries its own protocolVersion, so a 1.0 card may legitimately point at an endpoint that still speaks 0.3. You can also serve both from one file. The 1.0 specification says implementations should ignore fields they do not recognise, and allows the same URL to be listed as two interfaces with different versions. CodeLint.Dev’s own card does this: a 1.0 layout whose supportedInterfaces lists https://codelint.dev/a2a once as 1.0 and once as 0.3, with the 0.3 top-level protocolVersion, url and preferredTransport kept alongside. This validator checks such a card as 1.0 and reports the three 0.3 fields as notes. How a particular SDK copes with the extra fields is untested here, so try it against the clients you care about.
What value goes in protocolVersion?
In a 0.3 card it is a top-level string, "0.3.0". In a 1.0 card there is no top-level protocolVersion; each entry of supportedInterfaces has one, written as Major.Minor — "1.0", not "1.0.0". Section 3.6 says patch numbers should not appear in agent cards and are not considered when client and server negotiate a version. Clients then send the same Major.Minor value in the A2A-Version request header; a request without that header is treated as 0.3.
Which transport names are valid?
The specification defines three: JSONRPC, GRPC and HTTP+JSON. The field is an open string rather than a closed enum, so other values are not a schema error, but a client only connects to bindings it recognises. In 1.0 a custom binding should be identified by a URI (section 5.8). The validator therefore reports anything outside the three core names as a warning and suggests the canonical spelling for near misses such as "jsonrpc" or "REST".
How do I declare an API key or a bearer token?
Name a scheme under securitySchemes and reference that name in a requirement. In 1.0 an API key is {"apiKeySecurityScheme": {"location": "header", "name": "X-API-Key"}} and the requirement is securityRequirements: [{"schemes": {"apiKey": {"list": []}}}]. In 0.3 the same thing is the OpenAPI form {"type": "apiKey", "in": "header", "name": "X-API-Key"} with security: [{"apiKey": []}]. A bearer token uses httpAuthSecurityScheme (1.0) or type "http" (0.3) with scheme "Bearer". The card states the mechanism only; the key or token itself never belongs in it.
Does the validator verify card signatures?
No. It checks that each entry in signatures has the JWS fields the specification requires (a base64url protected header and signature) and that the protected header decodes to JSON with alg and kid. Verifying the signature needs the signer’s public key and the card canonicalised with the JSON Canonicalization Scheme (RFC 8785), which is outside what a paste-in checker can do honestly. Note that editing any signed field invalidates the signature, so a signed card has to be re-signed after changes.