Protocol Spec · A2A v0.3 Standard

A2A /.well-known/agent-card.json (v0.3) Schema & Discovery Guide

Complete Agent2Agent (A2A) v0.3 specification guide for /.well-known/agent-card.json: required fields, skills[], capabilities, OpenAPI securitySchemes, and migration from legacy agent.json.

Manifest Parameters

Zero Telemetry · Strict CSP
Authentication & OAuth Scopes
A2A Agent Card (v0.3) Options
Exact Well-Known Endpoint URL application/json
https://agent.example.com/.well-known/agent-card.json
/.well-known/agent-card.json
{
  "protocolVersion": "0.3.0",
  "name": "Acme Cloud Assistant",
  "description": "Autonomous API diagnostics, billing lookups, and workflow execution via A2A and MCP.",
  "url": "https://agent.example.com/a2a",
  "preferredTransport": "JSONRPC",
  "version": "1.0.0",
  "provider": {
    "organization": "Acme Corp",
    "url": "https://agent.example.com"
  },
  "documentationUrl": "https://docs.example.com/agents",
  "capabilities": {
    "streaming": true,
    "pushNotifications": false,
    "stateTransitionHistory": true
  },
  "defaultInputModes": [
    "text/plain",
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/plain"
  ],
  "securitySchemes": {
    "oauth2": {
      "type": "oauth2",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://auth.example.com/oauth/authorize",
          "tokenUrl": "https://auth.example.com/oauth/token",
          "scopes": {
            "agent:invoke": "Authorize agent:invoke access",
            "mcp:tools": "Authorize mcp:tools access",
            "mcp:read": "Authorize mcp:read access"
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": [
        "agent:invoke",
        "mcp:tools",
        "mcp:read"
      ]
    }
  ],
  "skills": [
    {
      "id": "diagnose-api",
      "name": "Diagnose API Errors",
      "description": "Inspect trace IDs, rate limits, and webhook delivery status.",
      "tags": [
        "diagnostics",
        "support"
      ],
      "examples": [
        "Run Diagnose API Errors for the current workspace"
      ]
    },
    {
      "id": "lookup-usage",
      "name": "Query Account Usage",
      "description": "Return bounded billing-period token and quota usage metrics.",
      "tags": [
        "billing",
        "analytics"
      ],
      "examples": [
        "Run Query Account Usage for the current workspace"
      ]
    }
  ]
}
curl Verification Command
curl -fsSL -D - "https://agent.example.com/.well-known/agent-card.json" | head -n 40
HTTP 401 WWW-Authenticate Header (RFC 9728 / MCP-PRO-002)
WWW-Authenticate: Bearer resource_metadata="https://agent.example.com/.well-known/oauth-protected-resource", scope="agent:invoke mcp:tools mcp:read"
Live Well-Known Audit 98.4% Lack Agent Cards

Verify live A2A, MCP, OAuth & AEO discovery in production

In RungLab's N=140 B2B SaaS Readiness Benchmark, 98.4% (62/63) of full-telemetry domains lacked agent-card.json. Audit your live domain with ReadyCheck, cut MCP schema token tax with MCPDiet, or automate fleet discovery checks via Apify & RapidAPI.

Required Endpoints, Paths & MIME Types

Path / Endpoint Purpose Required Content-Type
/.well-known/agent-card.json Canonical A2A v0.3 discovery endpoint (HTTPS required in production) application/json; charset=utf-8
/.well-known/agent.json Deprecated v0.1/v0.2 legacy path (301/308 redirect or alias only during migration) application/json; charset=utf-8

Production A2A v0.3 /.well-known/agent-card.json Template

agent-card.json
{
  "protocolVersion": "0.3.0",
  "name": "Acme Cloud Assistant",
  "description": "Autonomous API diagnostics, billing lookups, and workflow execution via A2A.",
  "url": "https://agent.example.com/a2a",
  "preferredTransport": "JSONRPC",
  "version": "1.0.0",
  "provider": {
    "organization": "Acme Corp",
    "url": "https://agent.example.com"
  },
  "documentationUrl": "https://docs.example.com/agents",
  "capabilities": {
    "streaming": true,
    "pushNotifications": false,
    "stateTransitionHistory": true
  },
  "defaultInputModes": ["text/plain", "application/json"],
  "defaultOutputModes": ["application/json", "text/plain"],
  "securitySchemes": {
    "oauth2": {
      "type": "oauth2",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://auth.example.com/oauth/authorize",
          "tokenUrl": "https://auth.example.com/oauth/token",
          "scopes": {
            "agent:invoke": "Invoke autonomous A2A tasks"
          }
        }
      }
    }
  },
  "security": [{ "oauth2": ["agent:invoke"] }],
  "skills": [
    {
      "id": "diagnose-api",
      "name": "Diagnose API Errors",
      "description": "Inspect trace IDs, rate limits, and webhook delivery status.",
      "tags": ["diagnostics", "support"],
      "examples": ["Diagnose webhook failures for trace req_9021"]
    }
  ]
}

Verify Live Headers, Status & Schema via curl

verify-agent-card.sh
curl -fsSL -D - "https://yourdomain.com/.well-known/agent-card.json" | head -n 30
# Confirm:
# 1. HTTP/2 200 OK (never 302 login redirect or HTML 200 SPA fallback)
# 2. content-type: application/json; charset=utf-8
# 3. access-control-allow-origin: *
# 4. valid JSON with protocolVersion "0.3.0", https:// url, and non-empty skills[]

Key Empirical & Architectural Takeaways

  • In RungLab's 2026 B2B SaaS Readiness Benchmark (N=140 domains, n=63 full telemetry), 98.4% (62/63) lacked /.well-known/agent-card.json, and across 100 live MCP Registry servers only 10% (10/100) exposed an A2A Agent Card.
  • A2A v0.3 standardized /.well-known/agent-card.json (replacing pre-v0.3 /.well-known/agent.json) alongside explicit protocolVersion and preferredTransport ('JSONRPC', 'HTTP+JSON', or 'GRPC').
  • Every skill in skills[] should advertise a stable id, concise description, tags, and realistic examples so orchestrator agents can route tasks accurately without hallucinating capabilities.

Common Production Pitfalls to Avoid

  • Returning an SPA index.html shell with HTTP 200 OK instead of application/json causes A2A clients and ReadyCheck scanners to fail JSON parsing immediately.
  • Pointing url to http://localhost or non-TLS http:// breaks production A2A clients; always require https://.
  • Referencing a key in security[] that is missing from securitySchemes triggers deterministic validation errors.

More Agent Discovery Specifications & Framework Guides

Backend Framework Route Handlers + Middleware

Next.js App Router /.well-known/* Route Handlers & Headers

Serve /.well-known/agent-card.json, /.well-known/mcp/server.json, and /.well-known/oauth-protected-resource cleanly in Next.js App Router without middleware auth redirects or trailing-slash loops.

← Back to AI Agent Discovery Generator & Validator Hub

Frequently Asked Questions

Should I serve /.well-known/agent-card.json or /.well-known/agent.json?

Serve /.well-known/agent-card.json as your primary A2A v0.3 endpoint. If legacy v0.2 integrations still request /.well-known/agent.json, serve an HTTP 308 permanent redirect or mirror the JSON payload temporarily during migration.

How does ReadyCheck score /.well-known/agent-card.json?

ReadyCheck inspects /.well-known/agent-card.json under the 40-point AEO & AI Readiness pillar, verifying HTTP 200 status, application/json content-type, valid JSON structure, and core agent identity/capability fields.

Should private authenticated agents still publish a public Agent Card?

Yes — the discovery card at /.well-known/agent-card.json is intentionally public metadata (containing zero secrets) that declares securitySchemes (OAuth 2.0, Bearer, or API key) telling authorized agents how to authenticate before calling the protected endpoint.