Architecture · N=140 Benchmark Data

llms.txt vs agent-card.json Dual-Deployment Architecture

Compare /llms.txt (AEO markdown context) with /.well-known/agent-card.json (A2A capability contract) using RungLab's N=140 live B2B SaaS Readiness Benchmark where 98.4% omit Agent Cards.

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
/llms.txt Human/LLM-readable Markdown index for AI answer engines & RAG ingestion text/markdown; charset=utf-8
/.well-known/agent-card.json Structured JSON contract advertising A2A agent skills, transport & OAuth application/json; charset=utf-8
/.well-known/mcp/server.json Optional MCP tool server discovery pointer for IDE & agent tool hosts application/json; charset=utf-8

Dual-Deployment /llms.txt Referencing Agent Card & MCP

llms.txt
# Acme Cloud

> Developer platform for API diagnostics, usage metering, and autonomous workflow orchestration.

## Documentation & Pricing
- [API Reference](https://docs.example.com/api): OpenAPI 3.1 endpoints, rate limits, and SDKs.
- [Pricing & Quotas](https://example.com/pricing): Plan tiers and monthly usage limits.

## Agentic & Machine-Readable Discovery
- [A2A Agent Card](https://agent.example.com/.well-known/agent-card.json): A2A v0.3 capabilities, skills, and OAuth 2.0 endpoints.
- [MCP Server Manifest](https://agent.example.com/.well-known/mcp/server.json): Streamable HTTP MCP endpoint metadata.
- [Security Policy](https://example.com/.well-known/security.txt): RFC 9116 vulnerability disclosure contact.

Audit Both Files Together in One Shell Check

check-dual-aeo.sh
curl -fsSI "https://yourdomain.com/llms.txt" | grep -iE "^HTTP/|content-type"
curl -fsSI "https://yourdomain.com/.well-known/agent-card.json" | grep -iE "^HTTP/|content-type"
curl -fsSI "https://yourdomain.com/robots.txt" | grep -iE "^HTTP/|content-type"

Key Empirical & Architectural Takeaways

  • Empirical Finding (N=140 B2B SaaS Readiness Benchmark, 2026-11-26): across 63 full-telemetry commercial domains, 98.4% (62/63) lack /.well-known/agent-card.json and 41.3% (26/63) still return HTTP 404 on /llms.txt.
  • Overall across all 140 audited SaaS, AI & Fintech domains, median ReadyCheck score is 73/100 (mean 72.1) and only 0.7% (1/140) achieved strict Grade A (>=90) — shipping both clean /llms.txt and agent-card.json immediately puts a domain in the top decile of AEO readiness.
  • /llms.txt optimizes passive answer-engine citations (Perplexity, ChatGPT Search, Claude Search), whereas /.well-known/agent-card.json enables active agent-to-agent delegation, auth negotiation, and task invocation.

Common Production Pitfalls to Avoid

  • Treating /llms.txt as a raw sitemap dump (in our 35-startup study, one company shipped a 234 KB unformatted dump missing the required > summary blockquote) instead of a concise Markdown guide linking to agent-card.json.
  • Allowing robots.txt to block OAI-SearchBot, PerplexityBot, or Claude-SearchBot while expecting /llms.txt to surface in AI search.
  • Shipping /llms.txt on docs.domain.com while leaving the apex domain.com/llms.txt and /.well-known/agent-card.json returning 404.

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

Does publishing /.well-known/agent-card.json replace /llms.txt?

No. /llms.txt gives RAG pipelines and AI search crawlers concise Markdown pointers to docs and pricing, while /.well-known/agent-card.json gives autonomous A2A agents machine-readable transports, skills, and OAuth security schemes. Deploy both and link agent-card.json inside /llms.txt.

Why do 98.4% of audited B2B SaaS & AI domains still lack agent-card.json?

In RungLab's N=140 B2B SaaS Readiness Benchmark (n=63 full telemetry, 62/63 missing), most teams deployed standard marketing pages and robots.txt first, overlooking /.well-known/agent-card.json even when they already expose APIs or AI assistants.

Where can I inspect the full N=140 domain benchmark dataset?

Explore the complete interactive N=140 dataset on /research/b2b-saas-readiness-benchmark-2026/ or scan your own domain live on audit.runglab.dev.