# Discry — full-text bundle for agents > This is llms-full.txt: everything in llms.txt, expanded into full text, for agents that want the whole picture in one fetch instead of following links. Prefer /llms.txt if you just need the map. # Corpus, right now - Total indexed: 451 (scored: 387, insufficient-coverage: 0, docs-unreachable: 52) - Index contract version: 2.3.0 · generated 2026-09-30T15:40:17.481Z - Median scores across scored APIs: overall 67.9, discovery 47.4, comprehension 75.7 - Full data: https://index.discry.ai/api/index.json (JSON, filter: ?category=) or https://index.discry.ai/api/index.csv (CSV, same filter); decomposed per-row detail (capability floor, discovery/comprehension breakdown) at https://index.discry.ai/api/v1/index.json and https://index.discry.ai/api/v1/(.md) # The Discry Index: three views - Leaderboard: https://index.discry.ai/index (every scored API, ranked; category leaderboards at https://index.discry.ai/index/) - Live data: https://index.discry.ai/ (the aggregate evidence, computed live from the Index) - 2026 Report: https://index.discry.ai/state-of-agent-readiness-2026 (The State of Agent-Readiness 2026) # Discry MCP server - Endpoint: https://index.discry.ai/api/mcp (Streamable HTTP, stateless — no session setup required) - Tools: discry_find(need, category?) — search the Index; discry_profile(slug) — full score + evidence for one API; discry_compare(slugs) — head-to-head; discry_methodology() — how scores are measured + corpus stats. - No inference happens server-side: every tool is a direct read of the same data that backs the site, zero marginal cost. - Manifest: https://index.discry.ai/.well-known/mcp.json # Methodology, in full # Methodology: how the Discry Score works > The Discry Score is a behavioral measurement of API agent-readiness, taken from your public documentation surface: real models are quizzed on your live docs, and a pass requires a correct answer backed by a verbatim citation from those docs. Mechanically graded, Familiarity-disclosed, plain-fetch, fully published. Canonical: https://index.discry.ai/methodology · Markdown mirror: https://index.discry.ai/methodology.md # How the Discry Score works. AI agents are becoming a primary consumer of APIs. When a developer asks an agent to build something, the agent reads public documentation, works out which API it can operate, and quietly picks one. There is no sales call and no evaluation spreadsheet. There is just your documentation, read by a model, in seconds. The Discry Score measures how ready your API is for that moment. It looks only at your public documentation: the pages, specs, and entry-point files an agent actually fetches. What an agent can find and understand there is what decides whether it chooses you. There are two ways to lose that moment, and they happen in order. The first is that the agent never finds a usable version of your docs at all. There may be no machine-readable entry point, or the pages may render as empty for anything that is not a browser. A surprising share of APIs lose right here, before the quality of their documentation is ever tested. The second is that the agent finds your docs but cannot work from them. It misreads your authentication, guesses at your endpoints, or invents features you do not offer. The score measures both, in that order: discovery first, then comprehension. All of it happens before a single API call. ## The score at a glance - Discovery is graded first: can an agent find a usable, machine-readable version of your API at all? We look for signals like llms.txt, AGENTS.md, OpenAPI, and MCP presence, fetched the plain way agents actually arrive. - Comprehension is graded by experiment: real models are quizzed on your live docs. The questions cover facts, request construction, and traps that check whether a model invents features you do not have. - Grading is mechanical, never a matter of human opinion. A comprehension task passes only when the model gives the correct answer and backs it with a word-for-word quote from the docs we fetched. - Because a pass needs a quote from your live docs, a model cannot earn one from memory alone. Fame earns nothing. How much a model already knew is published separately, as Familiarity. - The score measures readiness on your public surface, before any code runs. Authentication, live calls, reliability, and SDK behavior are outside what it tests. - Every profile publishes its receipts: coverage, invalid runs, the URLs we fetched, and the tasks that failed. ## Two dimensions, one grade Every published grade breaks down into the same two dimensions, so you can see exactly where an API wins or loses: - **DISCOVERY: Can an agent find you?** The machine-readable surface of your API: llms.txt, AGENTS.md, an OpenAPI spec, MCP manifests and registry presence, crawlable sitemaps. We fetch all of it over plain HTTP, the way agents actually do. This is the gate. Fail it and nothing else about your docs matters. - **COMPREHENSION: Can an agent operate you?** The experiment: models across a range of capability tiers answer quizzes using your fetched docs as their only source. They find the facts, build correct requests, and refuse what you do not support. Everything is graded mechanically against ground truth cited to your own pages. ## Discovery: the failure that happens first Agents fetch over plain HTTP, without running JavaScript, and they navigate by machine-readable entry points. Discovery measures whether that path exists for your API. Is there an llms.txt that actually routes to your reference? An AGENTS.md that briefs a coding agent? A spec it can parse, or an MCP surface it can wire up? Serving these well earns credit directly. This is where a striking share of APIs lose outright, well-known ones included. Some documentation renders almost nothing without JavaScript. Some llms.txt files point agents at marketing pages instead of the API reference. When that happens, the profile says so plainly, with the reason and the URLs we tried. A discovery failure is a checkable fact about your public surface, and it is usually the cheapest thing on the page to fix. ### Isn’t MCP the answer? The Model Context Protocol is the clearest bet on how agents will consume APIs next, and the score credits it. Shipping a working MCP surface earns discovery credit today. MCP changes how a finished integration calls your API at runtime. It does not change how integrations get chosen and built in the first place. The coding agents that scaffold software on top of APIs still have to understand your endpoints, your auth, and your request shapes from your documentation, before any tool surface enters the picture. An MCP server is also a public surface an agent has to discover and understand. The discovery problem does not disappear behind a manifest; it just moves into one. Across the corpus, MCP servers remain rare, and a meaningful share of those that ship do not validate. The receipts are in the State of Agent-Readiness report. MCP quality is where the next edition of this measurement is headed, and every artifact is stamped with the surface it graded. ## Comprehension: the test you get to take if you’re found Once an agent has your docs, the question turns practical: can it actually operate your API? We answer that with an experiment, not a checklist. Models are quizzed from published task banks. The questions cover the facts an integration depends on (auth, errors, pagination, limits), requests to construct, and traps that ask for things your API does not support. On a trap, the right answer is to refuse, not to invent something with confidence. Grading is mechanical and grounded. A comprehension task passes only when two things are both true. The answer is correct against ground truth traced to a specific place in your docs. And the model backs that answer with a word-for-word quote, pulled from the documentation we actually fetched and checked against it. An answer with no quote from your pages does not pass, however confident it sounds. Trap tasks, where the correct move is to refuse, do not need a quote. ## Two boundaries, both deliberate Unlike docs platforms and checklist scanners, Discry independently tests real models against your public documentation and benchmarks the results across APIs. Holding that position means being clear about where the measurement stops: - **THE COMPETITIVE BOUNDARY: Discoverability, not usability** Discry measures whether agents can discover and understand your API, because that is what determines whether they choose it. We do not write or host documentation, and we grade every docs stack the same way, whether it is platform-hosted or hand-rolled. Usability matters, but it sits downstream and is not ours to claim. Staying out of the docs business is what keeps the grade neutral. - **THE MEASUREMENT BOUNDARY: Public-surface readiness, not runtime API quality** The score grades what an agent can find and understand on your public documentation surface, before anything executes. We do not test authentication, successful calls, reliability, SDK behavior, or end-to-end task completion. No Discry product tests execution, and nothing outside the canonical docs-surface path can reach the published Index. That separation is enforced in code, not by policy, by two independent guards. ## See the results The methodology is one page. The data is the product. Explore it wherever you work: - [The Discry Index](https://index.discry.ai/index): every scored API, ranked, with per-profile receipts - [Scan your API free](https://index.discry.ai/scan): probe your own discovery signals in seconds - [Machine-readable](https://index.discry.ai/api/index.json): the full index as JSON (CSV at /api/index.csv, this page at /methodology.md) # The instrument in depth ## How a score is produced 1. **Plain fetch**: We fetch your docs surface the way most agents do: plain HTTP, no JavaScript execution. What renders is what gets graded. 2. **Published task banks**: Every API is quizzed from versioned, published task banks: factual questions about auth, errors, pagination and limits; request-construction tasks; and trap tasks probing whether a model invents capabilities your API does not have. 3. **Models answer from your docs alone**: Models across capability tiers answer with your fetched docs as their only source. A separate closed-book pass runs the same questions with no docs, to establish what the models already knew. That result is published as the Familiarity metric. 4. **Grounded mechanical grading**: Answers are graded mechanically against ground truth traced to a specific location in your own documentation. A pass also requires the model to cite that location with a verbatim quote from the docs we fetched, checked against them. No quote, no pass, so a correct guess from memory does not count. Trap tasks, where refusal is correct, are exempt. 5. **Decomposition and receipts**: The result publishes as discovery + comprehension, with the profile’s coverage, invalid-run count, fetched URLs, and failed tasks alongside it. ## The plain-fetch policy The corpus is fetched over plain HTTP with no JavaScript execution, because that is how most agents fetch. If your documentation only renders with JavaScript, an agent on a plain fetch sees almost nothing, and we grade what it sees. Serving llms.txt or markdown mirrors is rewarded, because those are exactly the surfaces that make an API legible to agents. When a docs surface yields essentially nothing readable on plain fetch, the profile publishes as docs-unreachable. That is a rule-based failing grade, and it ships with the specific reason and the URLs we tried, so the result is verifiable and fixable. When an API publishes an llms.txt, that file is treated as its declared agent-facing entry point. If it routes agents to marketing pages instead of the reference, the grade reflects the surface the API itself chose to present. ## Familiarity: what a model already knew Frontier models have read a lot of API documentation in training, and for well-known APIs they can answer many questions from memory alone. We measure that directly. Alongside the open-book quiz, every task also runs closed-book: the same questions, with no access to your docs. The rate at which models answer correctly from memory is published as the Familiarity metric. Familiarity is a disclosure, not part of the score. It tells you how much of your API models already carry from training, and it does not raise or lower the grade. A high Familiarity earns no points, because a graded pass requires a verbatim quote from your live docs, and memory cannot produce one (see below). A low Familiarity costs nothing. In the rare case where a docs surface adds nothing an experiment can measure, the profile publishes as insufficient-coverage instead of being handed an unearned grade. ## Why fame doesn’t move the score The score measures your documentation, not your brand, and the mechanism that keeps it that way is the grounding requirement itself. The quiz harness holds your docs, and a graded pass requires the model to quote them verbatim. A model running on memory can often reproduce a fact, but it cannot produce a citation to text it was never shown. So prior knowledge, however deep, does not convert into a passing grade. It can only surface in Familiarity, which is disclosed and kept separate. The consequence is that every API is scored on the same basis, whether it is a household name or one you have never heard of: what its live documentation lets a model find, understand, and quote. A famous API earns nothing from being famous, and an obscure one loses nothing for being obscure. ## The capability floor: cost of comprehension Not every agent runs on a frontier model. Routing routine work to lower-cost models is standard industry practice, and the implication for an API producer follows directly: if only frontier models can understand your API from its docs, you are invisible where the volume is. The capability floor measures the piece of that we can measure: the lowest tested model tier that reliably operates the API from its documentation. Profiles carry a vendor-neutral label: small-model ready, advanced-model required, or frontier required, plus not-agent-ready and indeterminate where coverage cannot support a floor. The exact models and versions tested at each tier are disclosed in each artifact’s provenance. ## Run validity and coverage, disclosed Errored or aborted runs never fold into a published score, and profiles disclose their invalid-run count. Each profile also reports request-task coverage: how many of its five request-construction tasks produced gradeable capability extractions. When coverage is too thin to support a conclusion, the profile says indeterminate instead of guessing. The closed-book control is held to the same bar: if a majority of a profile’s closed-book runs fail to produce a clean answer, the scan fails loud rather than quietly reporting a score with no Familiarity check behind it. All published scores are produced in one canonical execution environment, and every artifact is stamped with the exact instrument version and the environment it ran under. We disclose that environment rather than claim scores transfer unchanged to a different one. Equivalence across environments is an open question, and we report it honestly instead of assuming it. ## Before publication, we audited ourselves Before we publish, two layers of self-audit run. The first is a census: mechanical validity checks across every artifact in the corpus, confirming that no errored run folds into a published median and no correct request is graded as wrong. The second is depth: on a stratified sample of APIs, every failed answer is re-ruled by hand at the trace level, to decide whether each failure is a genuine property of the documentation or an instrument error. The most recent full audit of this kind, run on the prior generation of the instrument, reached the conclusion quoted here in full, with 25 failed cells re-ruled by hand: > Before publication we audited a stratified 8-API sample of the corrected instrument (2.4.x) at the trace level — every failed task in each API’s reference run was independently ruled as a genuine documentation failure or an instrument error, with the API’s live agent-facing surface (llms.txt) fetched as a receipt where it drove the result. No sampled grade was overturned. One failed cell in 25 (4%) traced to an instrument error (a ground-truth extraction miss on one API’s auth-scheme fact), down from 84% before the correction round. Every low grade in the sample decodes to a verifiable property of the API’s own documentation surface. Separately, mechanical checks across all 196 artifacts confirmed zero errored runs folded into published medians and zero remaining cases of a correct request graded as wrong. > Source: Widened post-fix sample audit, 2026-07-18 The shipped instrument gets the same trace-level audit, at a wider sample, before the Index launches, and every edition of the Index thereafter. ## Known limitations, and the fix path for each - **GraphQL paradigm fit**: The request-construction task banks are REST-shaped, so GraphQL APIs fit the paradigm imperfectly today. Paradigm-aware task banks are on the instrument roadmap. - **Residual request sparsity**: Some docs yield few gradeable request-construction tasks, which leaves the capability floor thinly supported. This is disclosed per profile via the request-coverage line, and improved request targeting is on the instrument roadmap. ## Think your grade is wrong? The appeals path is a rescan, not an argument. Request an on-demand rescan of your API and the published profile updates from the fresh artifact. On-demand rescans land with the Index launch. Until then, start from the free scan. [Scan your API free](https://index.discry.ai/scan) ## An independent measurement, published in full Discry helps teams get agent-ready. That is the business, and we are not neutral about wanting every API on the Index to improve. So the measurement is built to be independent of us. Grading is mechanical, the task banks are versioned and published, every profile carries its receipts, and the same instrument grades every API. That includes this site, which ships its own llms.txt, AGENTS.md, and markdown mirrors to the standard it grades others on. The only thing that moves a grade is the documentation itself, verified by rescan. We publish everything: methodology, task banks, receipts, and the data itself in machine-readable form. We do it because agent-readiness is an industry-wide problem, and an open benchmark moves it faster than a private one. What that independence obliges us to, and how a listed company asks for a correction, a rescan, or a takedown, is written down in the Directory and Benchmark Policy at /legal/benchmark-policy. ## The independence charter Discry both grades APIs and sells fix artifacts. These commitments keep the two from ever touching: - Fixed, published scoring methodology. - Versioned instruments and reproducible receipts. - Identical scoring regardless of payment: no pay-for-grade, no vendor favoritism, honest Fs with receipts. - Fix purchases never guarantee grade movement. Artifacts are derived from what we measured, and the next scan judges them like anyone else’s. - Scoring and artifact generation are separate functions; the instrument never knows who is a customer. - Only canonical docs-surface scans enter the Index. A two-layer mechanical firewall keeps product-path and API-environment runs out of the published benchmark, enforced in code at scan time and again at index build. # Quick-reference guides ## What is llms.txt, and why your API needs one > The single highest-leverage file for making your API discoverable to AI agents. ### The one-paragraph version llms.txt is a plain-text index, placed at the root of your docs domain, that tells AI agents exactly which pages matter and in what order. Think of it as robots.txt for comprehension instead of crawling: not “what you may read,” but “here is the map.” Agents have small context windows. A good llms.txt is the difference between an agent loading your three canonical guides and an agent giving up on a 400-page docs site. ### What a good one contains A short description of the API, then a curated list of links grouped by task — auth, core resources, webhooks, errors — each with a one-line summary. Keep it focused and well under the size budget; a bloated llms.txt scores worse than a tight one. Pair it with llms-full.txt (the full text agents can load in a single request) when your core docs fit in a reasonable bundle. ### How Discry scores it Discry checks both presence (does llms.txt exist?) and quality (is it focused, current, and the right size?), and the behavioral scan follows your llms.txt as your declared agent-facing surface — if it routes agents to marketing pages, that is what gets graded. See the methodology page. --- ## AGENTS.md for APIs: the file coding agents look for > How to tell an AI coding agent how to build on your API, in the file it already checks. ### Why AGENTS.md Coding agents increasingly look for an AGENTS.md at a project or docs root: a concise brief on how to work with your system — conventions, auth setup, the golden-path example, gotchas. For an API producer, it’s where you hand an agent the “start here” it would otherwise reconstruct by trial and error. ### What to put in it The minimal viable integration (get a key → make one authenticated call → read the response), your naming conventions, rate-limit and pagination rules, and the two or three mistakes agents most commonly make against your API. ### How Discry scores it A usable AGENTS.md is one of the discovery signals Discry credits. It’s low-effort, high-signal — one of the most common quick wins in our recommendations. --- ## How to make your API agent-ready (a prioritized checklist) > The fixes that move your Discry Score the most, in order. ### Start with discovery Most APIs lose more points on Discovery than Comprehension — the signature finding across the Index. Ship an OpenAPI spec, a focused llms.txt, and an AGENTS.md first; add an MCP manifest at .well-known/mcp.json if you expose tools. ### Then tighten comprehension Rewrite endpoint descriptions to be task-oriented (“charge a customer,” not “POST /charges”), add realistic runnable examples, document multi-step workflows end to end, and write real error-recovery guidance. ### Then keep it passing Discoverability regresses silently on every deploy. Re-scan after any docs change so a refactor that drops your llms.txt doesn’t quietly cost you the agent channel. The free scan is unlimited. Want the prioritized list for your API specifically? Run a free scan. # Articles ## What Is API Agent-Readiness? The Complete Guide URL: https://index.discry.ai/resources/what-is-agent-readiness > Agent-readiness: whether an AI agent can find, understand, and correctly call your API from its public docs. How it's measured, and where to start. Agent-readiness is whether an [AI agent](/glossary/ai-agent) can discover, understand, and correctly call your API from its public documentation surface — the pages, specs, and entry-point files an agent actually fetches. An agent-ready API can be found by a model that has never seen it, understood from the docs alone, and called correctly on the first attempt. An API that fails any of those three steps loses the integration before a human ever opens the docs to evaluate it. This guide defines the term, explains the two axes it decomposes into, describes how it can be measured rather than asserted, and lays out what to do about it, in priority order. ## The definition, in plain terms When a developer asks a coding agent to integrate an API, the agent does what any integrator does, compressed into seconds: it looks for the documentation, reads what it can retrieve, and writes code based on what it understood. Every step of that sequence can fail quietly. - **Discovery** can fail: there is no machine-readable entry point, the docs render empty without JavaScript, or the entry point that exists routes the agent to marketing pages instead of the API reference. - **Comprehension** can fail: the agent retrieves the docs but misreads the authentication scheme, guesses at endpoint shapes, or confidently invents a capability the API does not have. Agent-readiness names the property of surviving both. The concept pairs with a measurement: the Discry Score, which always decomposes into those same two dimensions — [discoverability](/glossary/discoverability) and [comprehension](/glossary/comprehension) — so a team can see which one it is losing on. One boundary matters from the first paragraph onward. Agent-readiness is a property of the public documentation surface, measured before execution. It says nothing about whether your API is reliable, whether your SDK is good, or whether authenticated calls succeed at runtime. Those are real qualities, and they are downstream: an agent that never finds your docs, or misunderstands them, never reaches the point where runtime quality matters. ## Why it matters now AI agents have become a working consumer of API documentation. Coding assistants scaffold integrations daily, and every scaffold attempt is a model reading your docs and acting on what it understood. When that reading goes wrong, the failure shows up in observable places: a developer asks an agent to integrate an API, the agent hallucinates an endpoint, and the resulting support ticket blames the API rather than the agent. For the team that owns the API, this creates a concrete problem with no established playbook. "Make us AI-ready" arrives as a mandate with no definition of done. Shipping an llms.txt or an MCP server without a way to verify it worked is cargo-culting; the file exists, and nobody knows whether an agent can actually use it. Agent-readiness, defined as above, turns the mandate into something checkable: specific signals an agent either finds or does not, and a comprehension level a model either reaches from your docs or does not. The stakes are practical rather than apocalyptic. Agents do not need to run the economy for this to matter; they only need to keep doing what they already do — reading public docs and writing integration code — for the legibility of those docs to decide which APIs get built on. The docs are the interface an agent sees, and for a growing share of integration attempts, the only one. ## The two axes: discovery and comprehension The two failure modes happen in order, so the measurement is organized the same way. Discovery is the gate; comprehension is the test you get to take if you pass it. ### Discovery: can agents find you? Most agents fetch over plain HTTP without executing JavaScript, and they navigate by machine-readable entry points rather than by browsing. The [discovery layer](/glossary/discovery-layer) is the set of conventions that make an API findable on those terms: - **[llms.txt](/signals/llms-txt)** — a plain-text index at your docs root that tells agents which pages matter, defined by the [llms.txt convention](https://llmstxt.org/). This is the single highest-leverage discovery file; our guide to [what llms.txt is and why your API needs one](/resources/what-is-llms-txt) covers writing a good one, and the [llms.txt examples gallery](/examples/llms-txt) shows real files from the APIs we scan. - **[llms-full.txt](/signals/llms-full-txt)** — the companion full-text bundle: your core docs as one file an agent can load in a single request instead of crawling page by page. - **[AGENTS.md](/signals/agents-md)** — the brief that [coding agents check](https://agents.md/) for how to work with your system: conventions, auth setup, the golden-path example, common mistakes. See [AGENTS.md for APIs](/resources/agents-md-for-apis) for what belongs in it, and the [AGENTS.md examples gallery](/examples/agents-md) for real ones. - **[An OpenAPI spec](/signals/openapi)** — a parseable, publicly fetchable [OpenAPI document](https://spec.openapis.org/oas/latest.html) is the closest thing to ground truth an agent can get about your endpoints, parameters, and shapes. - **[An MCP manifest](/signals/mcp-manifest)** — a `.well-known/mcp.json` at a well-known path, declaring a [Model Context Protocol](https://modelcontextprotocol.io/) surface an agent can wire up. - **[MCP registry presence](/signals/mcp-registry)** — a listing in a public MCP registry, so agents searching for a server under your name can find one. - **[robots.txt](/signals/robots-txt)** — the [robots exclusion protocol](https://www.rfc-editor.org/rfc/rfc9309.html) applied to AI crawlers: whether your rules allow agents to read the docs at all, or blanket-block every bot including the ones building integrations. - **[A sitemap](/signals/sitemap)** — a [sitemap](https://www.sitemaps.org/protocol.html) that actually includes your documentation pages, so an agent can enumerate the docs surface instead of guessing at URLs. Each of those is a check-level fact about your public surface: the file exists and works, or it does not. That verifiability is what makes discovery the tractable half of the problem — and the half where the observed failures are most avoidable. Across the APIs we scan, the recurring patterns are specific: llms.txt files that index the company's marketing site and never link the API reference; site-wide llms.txt dumps hundreds of kilobytes long that bury the docs under blog posts and legal pages; developer portals that render essentially nothing without JavaScript, leaving robots.txt and sitemap requests returning empty shells; docs that live on a subdomain the main site's sitemap never mentions. In each case the API loses the agent before its documentation quality is ever tested. ### Comprehension: can agents understand what they find? Discovery gets an agent to your docs. Comprehension is whether it can operate your API from them: identify the authentication scheme, construct a correct request, follow a multi-step workflow, recover from a documented error, and — just as important — recognize what your API does not do instead of inventing it. Comprehension failures are harder to see than discovery failures because the docs look fine to the humans who wrote them. Documentation that reads well to a person who already knows the product can still be opaque to a model encountering it cold: endpoint descriptions that state shape without purpose, examples that don't run, workflows implied but never written down, capability boundaries left to inference. The gap between "our docs are good" and "a model reading our docs cold gets the request right" is exactly what agent-readiness measures on this axis. Comprehension also has a cost dimension. Routing routine work to lower-cost models is standard industry practice, which means the model reading your docs is often a small one. The [capability floor](/glossary/capability-floor) captures this: the lowest tested model tier that reliably operates your API from its documentation, labeled small-model ready, advanced-model required, or frontier required. Docs that only a frontier model can operate are effectively invisible where the volume is. ## How agent-readiness is measured A checklist can tell you a file exists. It cannot tell you whether an agent that reads your docs gets your API right. So the comprehension axis is measured behaviorally: [behavioral measurement](/glossary/behavioral-measurement) means real models are quizzed on your live documentation and their answers are graded, rather than your docs being audited against a rubric of best practices. The instrument works like an experiment: - **Models are quizzed from published [task banks](/glossary/task-bank)** — factual questions an integration depends on (auth, errors, pagination, limits), request-construction tasks, and workflow questions — with your fetched docs as their only source. - **Grading is mechanical.** Answers are checked against ground truth that must cite a specific location in your own documentation. No human judgment call decides whether a model "basically got it." - **A [closed-book baseline](/glossary/closed-book-baseline) controls for fame.** Every task first runs without your docs. Anything a model already knew from training is excluded, so a famous API earns nothing from being famous and an obscure one loses nothing for being obscure. - **[Docs lift](/glossary/docs-lift) is the quantity that matters:** how much better models perform with your documentation in hand than without it. That difference is the measured contribution of your docs — the thing you actually control. - **[Trap tasks](/glossary/trap-task) probe invention.** Some tasks ask for things your API does not support, and the correct answer is a refusal. A model that confidently fabricates an endpoint under your docs' influence is a documented comprehension failure, and it is the same failure that generates hallucinated-integration support tickets in the wild. The full instrument — including the plain-fetch policy, the contamination guard, and the published receipts behind every result — is documented on the [methodology page](/methodology). The output is visible on any published profile: see how the decomposition reads for [Stripe](/api/stripe), [Twilio](/api/twilio), or [Resend](/api/resend), each with the fetched URLs and check results behind it. ## What to do about it, in order The two axes have very different costs, which sets the priority order. **Start with discovery.** Discovery signals are files: cheap to ship, verifiable the moment they exist, and the difference between an agent finding your reference and finding nothing. Ship a focused [llms.txt](/signals/llms-txt) that routes to your API reference (the [examples gallery](/examples/llms-txt) shows what focused looks like), an [AGENTS.md](/signals/agents-md) that briefs a coding agent on the golden path, and a publicly fetchable [OpenAPI spec](/signals/openapi). Check that your [robots.txt](/signals/robots-txt) is not blanket-blocking AI crawlers and that your [sitemap](/signals/sitemap) includes the docs subdomain. If you expose tools, add a [`.well-known/mcp.json`](/signals/mcp-manifest) and get listed in an [MCP registry](/signals/mcp-registry). One caution from the observed failure modes: an llms.txt that points agents at marketing pages is worse than none, because it is treated as your declared agent-facing entry point. **Then tighten comprehension.** Rewrite endpoint descriptions to be task-oriented, make examples realistic and runnable, document multi-step workflows end to end, write real error-recovery guidance, and state capability boundaries explicitly so a model can refuse what you don't support instead of inventing it. The prioritized version of this work, including what typically moves the measurement most, is in [how to make your API agent-ready](/resources/make-your-api-agent-ready). **Then defend it.** Agent-readiness regresses silently: a docs-platform migration drops your llms.txt, a refactor moves the reference off the sitemap, and nothing alerts you. Treat the signals as production surface and re-verify them on a schedule. ## Where the market stands today Adoption across the Discry Index corpus shows a market that has adopted the first-wave signal and stalled on the rest. Permission is largely a solved problem: 80% of scanned APIs serve a robots.txt that allows AI crawlers. The map is what's missing. llms.txt has crossed into the mainstream at 64% adoption — but its companions lag well behind it: 31% serve an llms-full.txt and only 30% publish an AGENTS.md. That gap is the current shape of the problem. llms.txt is the signal with two years of advocacy behind it, and most teams have shipped one. AGENTS.md is the signal aimed at the agents actually scaffolding integrations today, and two-thirds of the market hasn't shipped it. The basics are similarly unfinished: only 54% of scanned APIs expose a publicly fetchable, parseable OpenAPI spec and 65% have a sitemap that includes their docs pages. The MCP numbers tell the same story from an unexpected angle. 76% of scanned APIs show up in a public MCP registry — largely because community-built servers get listed whether or not the API producer was involved — while only 5% serve their own `.well-known/mcp.json` manifest. The ecosystem is building agent surfaces for APIs faster than API producers are claiming them. For a team deciding where to invest, the read is straightforward. The crowded signal (llms.txt) is table stakes you should still ship well, and the uncrowded signals (AGENTS.md, a first-party MCP manifest) are where a modest effort currently separates you from two-thirds or more of the market. Discovery is checkable today, comprehension is measurable today, and both are earlier than the noise around them suggests. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## Why a Docs Vendor Can't Run the Docs Benchmark URL: https://index.discry.ai/resources/why-independence-matters > A benchmark run by a vendor selling the remedy carries a structural conflict. What an independent API benchmark buys, and the test any score must meet. Agent-readiness scores are starting to appear across the industry. Documentation platforms, infrastructure providers, and API tooling companies have all noticed the same shift Discry measures: AI agents now read public documentation and decide, in seconds, which APIs they can operate. Scoring that gap is a reasonable instinct, and more measurement in this space is broadly good news. Whether any particular score deserves your trust turns on an older question — who runs the measurement, and what they stand to gain from the result. This piece makes that argument in general form, because it applies in general form. It applies to any vendor whose product is the remedy for the failures its benchmark finds. It also applies to Discry, which is why the last section turns the same test on us. ## The structural conflict in vendor-run scoring When the organization grading your documentation also sells the product positioned to fix it, the measurement carries a built-in lean. Every F the benchmark hands out is a qualified sales lead for the grader's own remedy. The people running it can be honest, careful, and technically excellent; the structure still points every incentive in one direction. Finance learned this expensively. Credit ratings paid for by the issuers being rated produced systematically inflated grades in the run-up to 2008 — the [conflict was structural](https://en.wikipedia.org/wiki/Credit_rating_agencies_and_the_subprime_crisis), and it survived the good intentions of everyone inside it. Accounting learned the same lesson earlier, and codified [auditor independence](https://en.wikipedia.org/wiki/Auditor_independence) as a requirement rather than a virtue. For a documentation benchmark, the lean shows up in three specific places. **Methodology drifts toward what the product remediates.** A rubric designed inside a vendor tends, over time, to weight the checks the vendor's tooling passes by default and to underweight the failure modes that tooling produces. The drift is rarely deliberate. It happens through a hundred small design decisions, each locally defensible, each made by people whose product roadmap is the fix. **The failing grade doubles as sales collateral.** A benchmark whose worst results feed the grader's pipeline has a reason to find failure, and a reason to describe failure in terms its product resolves. The score stops being a measurement you can act on independently and becomes the top of a funnel. **Customer status pressures the grade.** When a graded API becomes a paying customer, a low score becomes an account-management problem. The pressure to soften a finding for a signed customer, or to time a rescan generously, exists whether or not anyone yields to it — and an outside reader has no way to verify which happened. [Goodhart's law](https://en.wikipedia.org/wiki/Goodhart%27s_law) describes what happens when a measure becomes a target: it stops being a good measure. A vendor-run score arrives in the world already a target — designed, weighted, and maintained by the party selling the path to a better number. ## What independence buys Independence is a property of how the measurement is constructed, and it purchases concrete things. **Findings with no stake in the stack that produced them.** An independent API benchmark writes no documentation and hosts none. It can grade a platform-generated docs site and a hand-rolled one by the same rule — what an agent can actually fetch and understand — because it earns nothing from the answer either way. That neutrality is what makes results comparable across the market: an index ranking APIs built on different tooling means something only when the ruler has no position in the tooling. **A methodology free to penalize what tooling produces.** Documentation generators have house styles, and some of those styles fail agents — pages that render empty without JavaScript, entry-point files that route to marketing pages, reference docs split into fragments no context window assembles cheaply. An independent instrument can name those patterns and score them wherever they appear, including in the output of the most popular tools on the market. A benchmark whose parent company ships one of those tools carries an obvious reason to look elsewhere. **Grades that hold still when a customer signs.** Under an independent instrument, the same scan runs for a prospect, a customer, and an API that will never spend a dollar. The commercial relationship has no input into the number. Producers can cite the grade upward to a board, and agent builders can rely on it downward in a build decision, precisely because it moves for one reason only: the documentation changed. **An audience beyond the sales funnel.** Agent builders use readiness data as pre-flight ground truth — which APIs their agent can find, understand, and afford. That audience needs the data to be true more than it needs the data to be flattering, and serving it disciplines the whole instrument. A benchmark that exists to generate remediation leads has no such audience keeping it honest. ## The standard any credible benchmark must meet Independence makes credibility easier. Construction makes it real. Whoever runs a score — a vendor, a foundation, or Discry — you can apply the same test before accepting a single number. **Published methodology, end to end.** You should be able to read exactly how the score is produced before you see your result. Discry's is public at [/methodology](/methodology), including the parts that are unflattering to measure. **Behavioral evidence over checklists.** A credible score demonstrates what an agent can do with the documentation. [Behavioral measurement](/glossary/behavioral-measurement) means real models are quizzed against the live docs and their answers are graded mechanically against ground truth cited to specific locations in the documentation itself — human judgment, and with it human incentive, stays out of the grading loop. **Public task banks.** The questions should be inspectable. A published [task bank](/glossary/task-bank) lets anyone verify that the tasks measure integration-relevant facts, and that they include [trap tasks](/glossary/trap-task) — requests for capabilities the API lacks, where the correct answer is a refusal. Hidden tasks can be tuned; published ones are accountable. **A control for prior knowledge.** Models have read famous APIs' docs in training. A [closed-book baseline](/glossary/closed-book-baseline) establishes what a model already knew without the docs and excludes it, so fame earns nothing and obscurity costs nothing. **Receipts for every claim.** Each result should ship with the URLs fetched, the tasks that failed, and the reason — enough for the graded party to reproduce the failure and for a skeptic to check it. **A grade that explains itself.** A single unexplained number invites exactly the manipulation this article describes. The [Discry Score](/glossary/discry-score) decomposes into discovery and comprehension so a reader can see where a result came from and what would change it. Every item on that list is checkable against Discry today. If we ever fall short of one, the shortfall is checkable too — that is the point of the list. ## Discry's version of the conflict, and what contains it Discry has a business attached to its benchmark. We help teams get agent-ready, and we sell fix artifacts derived from what the scan measured. Stated plainly: the rate-and-remediate conflict this article describes exists here too, one layer down, and pretending otherwise would fail our own standard. What contains it is structure rather than promise. Scoring and artifact generation are separate functions, and the instrument never knows who is a customer. Scoring is identical regardless of payment — honest failing grades ship with receipts whether or not the graded party ever spends anything. Fix purchases never guarantee grade movement; artifacts go back through the same scan and get judged like anyone else's work. The methodology is fixed and published, the instruments are versioned, and the only thing that moves a grade is the documentation itself, verified by rescan. Independence, in other words, is engineered into the pipeline where it can be inspected, rather than asserted in the marketing where it can't. ## What to do with any score you're handed When an agent-readiness score lands on your desk — from anyone — ask for the methodology, the task bank, and the receipts, and check whether the grade decomposes into parts you can act on. A score that survives those questions is useful regardless of who produced it. A score that can't answer them is an ad. Then do the work, which stays the same whoever grades you. [Agent-readiness](/resources/what-is-agent-readiness) is a property of your public documentation surface: [discoverability](/glossary/discoverability) first — the machine-readable entry points that let an agent find a usable version of your docs at all — then comprehension. The highest-impact moves are well understood: a focused [llms.txt](/resources/what-is-llms-txt), an AGENTS.md that briefs coding agents, a parseable OpenAPI spec, and the [prioritized sequence](/resources/make-your-api-agent-ready) that turns "make us AI-ready" into a sprint plan. None of those fixes belongs to any vendor, including us. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## Why AI Agents Pick One API Over Another URL: https://index.discry.ai/resources/why-agents-choose-apis > How AI agents choose APIs: selection runs discovery, comprehension, then construction, and public docs decide which candidate survives each gate. When a developer asks a coding agent to add a capability to an app — send a receipt email, take a payment, sync a calendar — the agent picks the API. It reads public documentation, assembles a short list of candidates, and builds against the one it can operate. The whole evaluation takes seconds, happens without a sales call or a comparison spreadsheet, and leaves no trace beyond the dependency that lands in the pull request. The selection runs through three gates, in a fixed order: discovery, comprehension, construction. An API the [agent](/glossary/ai-agent) cannot find never enters the candidate set. One it cannot understand drops out. One it cannot call correctly gets swapped for the candidate whose docs worked. Understanding how AI agents choose APIs means watching those gates operate on real documentation — so that is what this article does. ## The three gates **Discovery** is whether the agent can find a machine-legible version of your API at all. Agents fetch over plain HTTP, without executing JavaScript, and they navigate by machine-readable entry points: an [llms.txt](https://llmstxt.org/) index at the docs root, an [OpenAPI spec](/glossary/openapi-spec) it can parse, an [AGENTS.md](https://agents.md/) brief, an MCP manifest at a well-known path. [Discoverability](/glossary/discoverability) is the gate that decides whether anything else about your documentation ever gets read. **Comprehension** is whether the agent can operate your API from what it fetched: work out the auth scheme, build correct request shapes, recover from documented errors, respect your limits. [Comprehension](/glossary/comprehension) is where documentation that looks fine to a human reader either holds up under a model's reading or quietly falls apart. **Construction** is the moment of commitment — the agent writes the integration and the first request either works or it fails. A failed first request against candidate A is rarely debugged with patience. It is the moment the agent tries candidate B. This sequence is what [agent-readiness](/resources/what-is-agent-readiness) names, and it is the sequence the [Discry methodology](/methodology) measures: discovery, then comprehension, taken from the public documentation surface — the pages, specs, and entry-point files an agent actually fetches — before a single API call. What an agent can find and understand there determines what it chooses. ## Watching a selection: "add transactional email" Take the concrete case. A developer types "add transactional email for password resets" into a coding agent. The agent's first moves are fetches, and the transactional-email category shows how differently three real candidates answer them. An agent that reaches [Resend](/api/resend) finds a compact llms.txt — about 2.3KB, structured into sections that route to the MCP server, the OpenAPI spec, SDKs, and the core docs. A fetch of `/.well-known/mcp.json` returns a manifest with tool declarations. Error documentation pairs every error code with a suggested recovery action, which is exactly the material an agent needs to handle a 422 without human help. The surface has gaps too — no AGENTS.md in the public repos, no llms-full.txt bundle — but the path from "first fetch" to "correct request" is short and machine-legible at every step. [Postmark](/api/postmark) answers differently. Its llms.txt exists and does something genuinely useful: it documents key limitations — message size, recipient caps, batch limits — which gives an agent the capability boundaries it would otherwise discover at runtime. But the file is large (around 62KB), and the deeper machine surface thins out from there: no publicly accessible OpenAPI spec, no AGENTS.md, no MCP manifest, no MCP registry presence. The endpoint docs themselves are clear and example-rich. An agent that arrives finds readable prose; an agent that navigates by machine-readable entry points finds fewer of them to follow. [SendGrid](/api/sendgrid) splits the difference in an instructive way. Its complete OpenAPI spec is findable through a public GitHub repo, and every docs page offers a "view as markdown" option — content a model can consume without scraping rendered HTML. But its llms.txt lives at the Twilio parent level: a 292KB file spanning every Twilio product, which an agent hunting specifically for the email API has to wade through on a fixed context budget. None of this involves a score, and that is the point of the walkthrough: the selection pressure is visible at the level of individual fetches. Each answered or unanswered fetch moves a candidate up or down before any code is written. ## Gate one: the candidate set is built from what is findable Discovery failures are the quietest kind, because the API's producer never sees them — the agent simply builds the shortlist without you. Across the APIs the Discry Index scans, 64% publish an llms.txt and 54% expose a parseable OpenAPI spec. AGENTS.md adoption sits at 30%, and a discoverable MCP manifest at `.well-known/mcp.json` remains rare at 5%. Meanwhile 80% of scanned APIs already allow AI crawlers in robots.txt. Access is mostly granted; the missing layer is the index files that tell an arriving agent where to go. The scan corpus surfaces the same recurring patterns behind those numbers: - **Good human docs, no machine surface.** Documentation that reads well in a browser while llms.txt, llms-full.txt, `.well-known/mcp.json`, and the OpenAPI spec all return 404 — so an agent doing machine discovery comes up empty on an API a human would rate highly. - **Stale pointers.** Lucinity's docs sitemap lists documentation URLs that now return 404 because the live reference moved — an agent following the declared map lands on dead pages. The signal exists; it points at the past. - **Manifests that reference the wrong environment.** Firecrawl publishes a `.well-known/mcp.json`, but it points at a staging preview host and declares no tool list, so an agent trusting the manifest cannot enumerate capabilities from it. A present signal still has to be a correct one. - **JavaScript-only rendering.** Docs pages that return only a loading shell on a plain HTTP fetch. Whatever the page shows a browser, the agent's copy is close to empty. See the [llms.txt signal](/signals/llms-txt) and [OpenAPI signal](/signals/openapi) pages for what a passing surface looks like. Every one of these is fixable, and most are cheap to fix. That is a consistent property of discovery failures: they are verifiable facts about a public surface, and the remedies are files. ## Gate two: comprehension is where lookalike docs diverge Once an agent has your docs, the question becomes operational. Can it identify the auth scheme without guessing? Do endpoint descriptions say what an operation accomplishes, or only its shape? Are there realistic request and response examples it can adapt? When a call fails, does the documentation say what to do next? The Discry methodology measures this behaviorally: real models are quizzed against the fetched docs — factual questions, request construction, and [trap tasks](/glossary/trap-task) that ask for capabilities the API does not support, where the correct answer is a refusal rather than a confident invention — and answers are graded mechanically against ground truth cited to the API's own pages. Producers have started designing for exactly this reader. Zapier's AGENTS.md gives coding agents explicit rules, including an instruction not to hallucinate method names and to discover capabilities at runtime through the SDK's own listing calls. Resend's per-error suggested actions are the same idea applied to failure paths. Both are documentation written for a reader that executes instead of skims. Comprehension also carries a cost dimension. Routing routine work to cheaper models is standard industry practice, so the model reading your docs is frequently a small one. Documentation only a frontier model can operate loses the agents running where the volume is. That is what the [capability floor](/glossary/capability-floor) describes: whether an API is small-model ready, or requires an advanced or frontier model before the docs become operable. ## Gate three: the first failed request is the swap moment Construction is where selection becomes final. The agent assembles the call — auth header, request body, the right endpoint — and runs it. When the docs supported comprehension, this step is uneventful. When they did not, the builder pays for it in the currency they actually budget: an afternoon of trial and error, a burned token budget, and an integration that "should have been simple" turning into archaeology. The failure has a recognizable shape: docs that looked straightforward, a model producing plausible-but-wrong requests, and a fix that is either hours of manual spelunking or a switch to the candidate whose spec and examples let the first request succeed. The swap is rational. From the builder's side of the table, an API that costs a day of debugging has a real price that never appears on a pricing page. ## Both sides lose the same failure The shared stake is what makes this worth measuring. When an API fails a gate, two parties eat the cost at once. The producer loses an integration — silently, with no signal in any dashboard, because the agent that dropped them never filed a ticket. The builder loses the day, or ships on a second-choice API that fit the agent's reading rather than the team's actual preference. Agents assembling integrations are becoming a front door to the API market, and when your public docs fail the gates, the build proceeds with whichever candidate's docs worked. Every pre-flight check an agent builder runs is an integration a producer wins or loses. That symmetry is why an independent measurement serves both sides at once: the builder gets ground truth before committing, and the producer gets to see the exact fetches and failures that shaped the choice. ## Where to start Discry measures discoverability, and discoverability is where the fixes concentrate: they are files you ship, not rewrites of the docs you host. Publish and verify a focused [llms.txt](/resources/what-is-llms-txt), expose your [OpenAPI spec](https://www.openapis.org/) where an agent can fetch it, add an [AGENTS.md](/signals/agents-md) brief, and if you expose tools, put a correct [MCP](https://modelcontextprotocol.io/) manifest at [.well-known/mcp.json](/signals/mcp-manifest). The prioritized version of that list is in [How to make your API agent-ready](/resources/make-your-api-agent-ready) — and the fastest way to see which gates your API currently passes is to run the scan. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## AEO Gets You Into the Answer. ADO Gets You Into the Action. URL: https://index.discry.ai/resources/ado-vs-aeo > AEO earns the citation when an AI answers a question. Agent discovery optimization earns the workload when an agent acts. What each covers, with data. A developer asks ChatGPT which payments API to use, and [answer engine optimization](/glossary/aeo) decides whether your product appears in the reply. Twenty minutes later the same developer points a coding agent at your docs and says "integrate it" — and a different set of files decides whether that integration ships. The first moment has a maturing playbook, with vendors, benchmarks, and a body of practice. The second is where the workload actually lands, and it runs on artifacts most API teams have never shipped. Most teams searching for an answer engine optimization API playbook are asking about the first moment. This article covers the second — the discipline starting to be called [agent discovery optimization](/glossary/ado), or ADO — and why an API that wins the answer can still lose the integration. ## What AEO does well — and where it stops AEO — [answer engine optimization](/glossary/aeo) — is the practice of structuring content so that answer engines like ChatGPT, Perplexity, and Google's AI Overviews retrieve it, trust it, and cite it when a person asks a question. Its close sibling [GEO (generative engine optimization)](/glossary/geo) extends the same idea to any generative surface. The discipline is real and its techniques are sound: answer-first page structure, clean entity definitions, consistent naming, machine-extractable claims, content that a retrieval system can quote without reassembling it from fragments. AEO's jurisdiction is the answer surface. Its unit of success is the citation: your brand named in the reply, your page linked as the source. For an API company, that means AEO decides whether "Which email API should I use?" surfaces your product at all — a battle worth winning, and one the AEO tooling ecosystem measures well. The citation is also where AEO's jurisdiction ends. The reply names your API; the person accepts the suggestion; an agent opens your documentation and starts working. Everything from that point forward — whether the agent can find your machine-readable spec, load your docs without executing JavaScript, learn your auth model, and recover from its first 429 — sits outside what AEO measures or improves. An API that wins the answer and fails the fetch loses the workload to whichever alternative the agent can actually operate. ## The agent's task loop — where selection happens Watch what an [AI agent](/glossary/ai-agent) actually does with a task like "send a transactional email when a user signs up." The loop looks roughly like this: interpret the goal, pick a capability (an API, an [MCP server](/glossary/mcp-server), a library), fetch that capability's public documentation, construct requests against what it understood, execute, and handle whatever comes back. Selection happens twice — once when the capability is chosen, and again, silently, when the agent decides whether what it fetched is usable enough to keep going. The fetch step is less forgiving than most teams assume. Agents typically read your docs over plain HTTP, without executing JavaScript — so a docs site that renders beautifully in a browser can arrive as an empty shell. Access, meanwhile, is mostly a solved problem: 80% of the APIs in the Discry Index corpus have an AI-crawler-friendly robots.txt and 65% publish a [sitemap](/signals/sitemap). The door is open. What's missing, far more often, is the map: the artifacts that tell an agent which of your hundreds of pages matter and how to act on them. When the map is missing, the agent reconstructs it by trial and error. This is the moment DevRel teams already see in their support queues: a developer asked Cursor or Claude Code to integrate the API, the agent guessed at endpoints that don't exist, and the resulting ticket blamed the API. Coding agents are the first mass agent-readers of API documentation, and every scaffold attempt is an agent reading your docs in anger. This is the gap ADO names. [Agent discovery optimization](/glossary/ado) is the emerging practice of shipping the machine-legible artifacts that let an agent find, load, and act on your API from its public surface — the API-side counterpart to what AEO does for content, and part of what people mean when they search for [SEO for agents](/glossary/seo-for-agents). The acronym is younger than the practice: the artifacts below already have specs, adopters, and measurable pass rates. ## The ADO artifact checklist Each artifact here is a discovery signal Discry checks on every API in the Index — the adoption figures come from the current corpus. **[llms.txt](/signals/llms-txt)** — a curated, plain-text index at your docs root that tells agents which pages matter and in what order ([spec](https://llmstxt.org/), [glossary](/glossary/llms-txt)). It is the map for the small-context reader: with it, an agent loads your three canonical guides; without it, it samples a 400-page site and hopes. 64% of the corpus ships one, which makes it the most-adopted agent-specific signal — though presence and quality are different checks, and a bloated or stale llms.txt routes agents badly. Our [full guide to llms.txt](/resources/what-is-llms-txt) covers what a good one contains, and the [examples gallery](/examples/llms-txt) shows real ones. Its companion **[llms-full.txt](/signals/llms-full-txt)** — the entire docs surface as one loadable file ([glossary](/glossary/llms-full-txt)) — sits at 31% adoption. **[OpenAPI spec](/signals/openapi)** — the machine-readable contract for your endpoints ([spec](https://spec.openapis.org/oas/latest.html), [glossary](/glossary/openapi-spec)). This is the oldest artifact on the list and still the highest-return one: it is the difference between an agent constructing requests from a parsed schema and an agent inferring parameter names from prose. Only 54% of the corpus publishes one an agent can find and parse — a striking figure for a format that predates the agent era by a decade. **[AGENTS.md](/signals/agents-md)** — the brief that tells a coding agent how to build on your system: conventions, auth setup, the golden-path example, the known gotchas ([spec](https://agents.md/), [glossary](/glossary/agents-md)). Adoption sits at 30%, and the gap runs through famous names: [Cloudflare](/api/cloudflare) passes the check while [Stripe](/api/stripe) — which ships both an llms.txt and an OpenAPI spec — does not. See [AGENTS.md for APIs](/resources/agents-md-for-apis) for what to put in one, and the [gallery](/examples/agents-md) for live examples. **MCP manifest and registry listing** — the [Model Context Protocol](https://modelcontextprotocol.io/) is how agents consume an API as callable tools rather than documentation, and it has two discovery signals. A [manifest at `.well-known/mcp.json`](/signals/mcp-manifest) ([glossary](/glossary/mcp-manifest)) makes your MCP server discoverable from your own domain; at 5% adoption it is the rarest signal we check — [Resend](/api/resend) is one of the few that passes. A [listing in a public MCP registry](/signals/mcp-registry) ([glossary](/glossary/mcp-registry), [example registry](https://registry.modelcontextprotocol.io/)) is far more common at 76%. Registry listings can be published by third parties; the manifest lives on your own domain, which makes it the stronger signal of intent. **Agent-legible error docs** — the artifact that keeps the loop alive after the first failed call. Agents recover from errors exactly as well as the [error response format](/glossary/error-response-format) is documented: a structured error body, the meaning of each code, and explicit [retry and backoff](/glossary/retry-backoff) guidance turn a dead end into a handled branch. There is no single file to ship here — this is documentation content, and Discry measures it on the comprehension side of the [methodology](/methodology) rather than as a discovery signal. It belongs on the ADO checklist anyway, because the agent that discovered you will hit an error within its first dozen calls. ## Where the two disciplines compound The encouraging part: the work overlaps more than the two names suggest. Answer engines cite pages they can extract cleanly — answer-first structure, stable headings, content that survives being quoted out of context. Agents comprehend docs with exactly the same properties. A docs page rewritten so a retrieval system can lift the answer is also a docs page an agent can act on; an [llms.txt](/glossary/llms-txt) that routes agents to your canonical guides also concentrates the pages answer engines learn to trust. Structured, extractable content is the shared substrate. AEO and ADO diverge in what they measure, and converge in what they reward. The divergence still matters for how you verify the work. AEO tools tell you whether you were cited; they say nothing about whether an agent that acted on the citation succeeded. [Agent-readiness](/glossary/agent-readiness) — whether agents can find and understand your API from its public documentation surface — is the property ADO exists to produce, and it is what Discry measures: unlike docs platforms and checklist scanners, Discry independently tests real models against your public documentation and benchmarks the results across APIs. The [pillar guide to agent-readiness](/resources/what-is-agent-readiness) covers the full picture, and the [prioritized checklist](/resources/make-your-api-agent-ready) sequences the fixes. If you have already invested in AEO, the sequencing question answers itself. The citation you won is an agent's next fetch. Ship the map before the traffic arrives. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## AGENTS.md: What It Is and How to Write One for Your API URL: https://index.discry.ai/resources/agents-md-guide > AGENTS.md is a README for coding agents. What the open format specifies, why only 30% of scanned APIs ship one, and how to write one for your API. AGENTS.md is a plain Markdown file, placed at the root of a repository, that tells [AI coding agents](/glossary/ai-agent) how to work with your project. The [agents.md convention](https://agents.md) describes it as a README for agents: a dedicated, predictable place for the context an agent needs — setup commands, conventions, gotchas — that would clutter a README written for humans. It is an open format used by over 60,000 open-source projects, and it is now stewarded by the Agentic AI Foundation under the Linux Foundation. For an API producer, the file matters because coding agents are already the first mass agent-readers of your API. Every time a developer asks Cursor, Codex, or Claude Code to "integrate Acme Payments," an agent clones your SDK, reads whatever orientation it can find, and starts constructing requests. Across the Discry Index corpus, only 30% of scanned APIs pass the AGENTS.md check — the starkest gap among the common discovery signals. For comparison, 64% publish an llms.txt. That gap is an opportunity: this is currently the cheapest discovery signal to ship and the one most of your competitors are missing. ## What the convention actually specifies The format is deliberately minimal. Per [agents.md](https://agents.md), there are no required fields and no schema — AGENTS.md is standard Markdown, and the agent simply parses whatever headings and text you provide. The convention does document a few behaviors you can rely on: - **Popular sections** include a project overview, build and test commands, code style guidelines, testing instructions, and security considerations. Anything you would tell a new teammate belongs here. - **Nesting works.** In a monorepo, each package can carry its own AGENTS.md; agents read the nearest file in the directory tree, so the closest one takes precedence. The main OpenAI repo carries 88 of them. - **Conflicts resolve predictably:** the closest AGENTS.md to the edited file wins, and explicit user chat prompts override everything. - **Listed commands get run.** If you include test or lint commands, agents will attempt to execute them and fix failures before finishing a task. One file works across the ecosystem — Codex, Jules, Cursor, Aider, Devin, Gemini CLI, GitHub Copilot's coding agent, and [many others](https://github.com/agentsmd/agents.md) read the same file. You write it once; every agent that supports the convention benefits. ## Why this is an API producer's problem The convention was designed for contributors working *on* a codebase. The reason it belongs on your agent-readiness checklist is that the same mechanics fire when an agent builds *against* your API. A coding agent scaffolding an integration will open your SDK repo, and an AGENTS.md there is the one place you can hand it correct, current instructions instead of letting it reconstruct your API's behavior by trial and error. When the reconstruction goes wrong, the support ticket blames your API, not the agent. The corpus shows both ends of this. [Vercel](/api/vercel) ships AGENTS.md files across vercel/vercel, Next.js, and its agent-skills repos, each with context-specific guidance; [LangChain](/api/langchain) carries one in every major repo. [Luno](/api/luno) publishes a high-quality AGENTS.md in its luno-python SDK covering project architecture, the request/response flow, the auth pattern, and the error shape — well above the norm. [Adyen](/api/adyen) has adopted the file across all of its SDK repos. On the other side, [Cohere](/api/cohere)'s audit found no AGENTS.md in either its docs repo or its SDK repos, and for [Dwolla](/api/dwolla) the absent AGENTS.md was the one meaningful discovery signal missing from its primary repos — a coding agent cloning the SDK gets no repo-level orientation at all. There is also a failure mode between present and useful. [Attio](/api/attio)'s docs repo contains an AGENTS.md that is the un-customized Mintlify boilerplate — "First-time setup: Customize this file…" with empty terminology sections — so an agent gets generic docs-tooling instructions rather than anything about Attio. Shipping the file is the start; the content is the point. ## What to put in an AGENTS.md for an API Browse the [examples gallery](/examples/agents-md) for real files from the corpus. The sections below are the ones that earn their keep for an API specifically. ### From key to first successful call The single highest-value thing you can document is the shortest path from "I have nothing" to a first successful authenticated request. Spell out where keys come from, which [authentication](/glossary/api-authentication) scheme your API uses (header name, token prefix, sandbox vs. live keys), and one copy-pasteable smoke-test call with the exact success response and the most likely failure response. An agent that can verify auth in one request stops guessing; an agent that can't will burn attempts inventing header formats. ### Conventions an agent cannot infer Agents generalize from the APIs they have seen most. Where your API departs from the majority pattern, say so explicitly: amounts in integer minor units, lowercase currency codes, cursor-based [pagination](/glossary/pagination) with no page parameter, IDs with typed prefixes, timestamps in epoch seconds. Every unstated convention is a place where the agent's prior fills the gap — usually with another API's behavior. ### Rate limits, pagination, and retry gotchas State your [rate limits](/glossary/rate-limiting) as numbers, per environment, and say exactly what a 429 carries and what to do with it. Across the corpus we repeatedly see error docs that stop at "returns 429" without telling an agent to honor Retry-After — which invites immediate, confident retry storms. Document your [retry and backoff](/glossary/retry-backoff) expectations, including which requests are safe to retry and how idempotency keys interact with retries. ### The mistakes agents actually make Name the two or three errors you see most in your own support queue when AI-assisted integrations go wrong. Typical patterns: hallucinated endpoints or parameters borrowed from a similar API, live keys used against sandbox (or the reverse), and pagination handled as offset when the API is cursor-based. A short "known agent mistakes" section converts each recurring ticket into one line of prevention. ## A worked example A realistic skeleton for a payments API's SDK repo: ```markdown # AGENTS.md — acme-payments-node Acme Payments is a REST API for charges, refunds, and payouts. Base URL: https://api.acmepay.example/v2 · Docs: https://docs.acmepay.example ## First successful call 1. Create a sandbox key at https://dashboard.acmepay.example/keys (sandbox keys start with `sk_test_`). 2. Auth is a bearer header — `Authorization: Bearer sk_test_...` — never a query parameter. 3. Smoke test: `curl "https://api.acmepay.example/v2/charges?limit=1" -H "Authorization: Bearer $ACME_KEY"` A 200 with `{"data": []}` means auth works. A 401 with code `key_mode_mismatch` means a live key was used against sandbox. ## Conventions - Amounts are integer minor units (`1099` = $10.99). Never send floats. - Currency codes are lowercase ISO 4217 (`"usd"`, not `"USD"`). - All IDs carry a type prefix: `ch_` (charge), `cus_` (customer), `po_` (payout). - List endpoints paginate by cursor: pass `starting_after=`. There is no `page` parameter. ## Rate limits & retries - 100 req/s per key in live, 25 req/s in sandbox. - 429 responses include `Retry-After` (seconds). Honor it; never retry immediately. - Send an `Idempotency-Key` header on every POST; retry with the SAME key or a network blip can double-charge. ## Known agent mistakes - `customer` takes a `cus_...` ID, not an email address. - Webhook signatures verify with the endpoint secret (`whsec_...`), not the API key. - `/v2/charges` has no `capture: "true"` string form — the field is boolean. ## Build & test (this repo) - `npm install && npm test` — runs against recorded fixtures, no key needed. - `npm run test:integration` requires `ACME_SANDBOX_KEY`. ``` Nothing in this file is philosophical. Every line either shortens the path to a working call or blocks a known wrong turn. ## How Discry checks for AGENTS.md AGENTS.md is one of the discovery signals in the [Discry methodology](/methodology). The scanner fetches `AGENTS.md` from your GitHub org's primary repository on its default branch (with the org-level `.github` repo as a fallback). A file with real content passes; a stub under 200 characters is credited as partial; and if no public GitHub org is known for your API, the check fails — an agent has nowhere to look. The [signal page](/signals/agents-md) documents the full semantics. One boundary worth stating: Discry measures discoverability — whether agents can find and understand your API from its public documentation surface, before execution. We never run your code or test live authenticated calls. The AGENTS.md check verifies that the orientation file exists and has substance, which is exactly what a coding agent probes for before it starts work. ## Where it fits among the other signals AGENTS.md covers the repository surface; your docs domain needs its own entry points. An [llms.txt gives agents a curated map of your documentation](/resources/llms-txt-for-apis), and a machine-readable [OpenAPI spec](/glossary/openapi-spec) is the contract agents [validate requests against](/resources/openapi-agent-readable) — it carries the most weight of any discovery check. Together they answer the three questions an agent asks in order: where are the docs, what is the contract, and how do I work in this repo. For how the full discovery layer and comprehension measurement fit together, start with the pillar guide to [what agent-readiness is](/resources/what-is-agent-readiness). If you ship one repo-surface improvement this quarter, make it this file. It is a few hundred lines of Markdown, the coding agents your integrators already use will read it, and most of the APIs we scan still haven't written one. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## Documenting Multi-Step Workflows So Agents Can Sequence Your API URL: https://index.discry.ai/resources/documenting-workflows-for-agents > Reference docs describe endpoints in isolation. Agents need the ordered sequence. What an API workflow doc contains, where it lives, and a worked example. An API reference describes pieces. Each endpoint page tells an agent what one call does: the method, the path, the parameters, the response shape. Almost no real task is one call. "Send an email" through a transactional email API is a sequence — create an API key, verify a sending domain, register a sender address, send the message, handle the delivery webhook — and the reference documents each of those steps as if it stood alone. The ordered path from nothing to outcome is a separate piece of writing, and most APIs never write it. When the sequence is unwritten, an AI agent does what a model does with missing information: it invents one. It calls the send endpoint before the domain is verified, hits a 422, and retries the same call in a loop, because nothing in the docs said the 422 meant "go back two steps." Across the APIs Discry scans, this is one of the most consistent patterns in the scan evidence: docs that describe every endpoint accurately and still leave an agent unable to complete a task, because the assembly instructions exist only in the heads of the team that built the API. This article covers what a workflow doc is, shows a worked example you can copy, and lays out where workflow documentation has to live for agents to find it. ## What the corpus shows Discry's scan evidence records how each API's public docs handle multi-step tasks, and the corpus splits cleanly into APIs that wrote the sequence down and APIs that left it implied. On the written-down side, the patterns are concrete. [Mercury's](/api/mercury) docs include end-to-end recipes such as send-an-ACH: list accounts, list recipients, then POST the transaction with an [idempotency key](/glossary/idempotency-key) — a real chain with realistic values, so an agent follows the path instead of guessing it. [Twilio's](/api/twilio) docs pair task-oriented endpoint descriptions with multi-step quickstarts that chain operations together with error handling, and every page offers a native view-as-Markdown link. [Resend's](/api/resend) framework guides walk install → template → send → verify for each stack they support. In each case the workflow is a first-class documentation object with a URL, fetchable over plain HTTP. On the implied side, the failure modes repeat across the corpus. One exchange API documents its endpoints in isolation with no end-to-end guides, so an agent must infer the create-key → fund-account → place-order → poll-status chain on its own. A sports-data API leaves the agent to assemble a five-step chain — sports, competitions, fixtures, fixture detail, live socket — because no guide walks through connect, retrieve, and handle as a sequence. A market-data API describes what each call returns but never how to chain calls or recover from a failed request. These are accurate reference docs. They still fail the agent, because the reference genre was never designed to carry sequence. The distinction matters commercially for the reason the [agent-readiness](/resources/what-is-agent-readiness) pillar lays out: agents choose the APIs they can find and understand, and understanding a multi-step API means understanding the order. ## What a workflow doc is A workflow doc is the assembly instructions for one outcome. It has five parts, and each part answers a question an agent otherwise has to guess. **Goal.** The outcome in one line, stated as a state of the world: "a delivered email with a verifiable delivery event." Agents plan backward from goals; a goal stated as an endpoint ("how to use POST /emails") gives them nothing to plan toward. **Preconditions.** What must already exist before step one: an account, DNS access, a sandbox project, a billing method. Unstated preconditions are the silent killers of [agentic workflows](/glossary/agentic-workflow) — the agent executes five perfect calls against an account that was never eligible to succeed. **Ordered calls.** The numbered sequence of requests, each with its method and path. Order is the entire point. If step 3 fails without step 2, the doc says so at step 3, at the moment the agent needs it. **State passed between calls.** What each step produces and what the next step consumes: the `domain.id` from step 2 becomes a parameter in step 3; the token from step 1 authenticates everything after it. This is the part reference docs structurally cannot carry, because each page only knows about its own request and response. **Failure exits.** Where the workflow can dead-end, how the agent recognizes each exit, and what recovery looks like — retry, wait, go back a step, or stop. A workflow doc that only documents the happy path documents half the workflow. ## A worked example Here is a complete workflow doc for a realistic transactional email API — the "zero to sent email" path. It is short enough to fit on one docs page and complete enough that an agent can execute it without inventing anything. ```markdown ## Workflow: send your first email (zero to delivered) **Goal:** a delivered email, confirmed by a delivery event. **Preconditions:** an account; DNS edit access for the sending domain. ### Steps 1. **Create an API key.** `POST /api-keys` → returns `key.token`, shown once. Every later call sends `Authorization: Bearer `. 2. **Register the sending domain.** `POST /domains` with `{"name": "mail.example.com"}` → returns `domain.id` plus the SPF and DKIM records to add to DNS. **Wait state:** poll `GET /domains/{domain.id}` until `status: "verified"`. Verification follows DNS propagation — minutes to hours. Unverified after 72h → exit F1. 3. **Create a sender.** `POST /senders` with a from-address on the verified domain → returns `sender.id`. Returns `422 domain_not_verified` if step 2 is incomplete → exit F2. Do not retry-loop; block on step 2. 4. **Send.** `POST /emails` with `sender.id`, recipient, subject, body, and an `Idempotency-Key` header so a retried request cannot double-send → returns `email.id`, `status: "queued"`. 5. **Confirm delivery.** Register a webhook endpoint (`POST /webhooks`, event `email.delivered`) or poll `GET /emails/{email.id}`. Terminal states: `delivered`, or `bounced` → exit F3. ### Failure exits - **F1 — domain never verifies.** DNS records are missing or wrong. Re-fetch them from `GET /domains/{domain.id}` and compare against the zone before retrying. - **F2 — sent before verification.** A 422 here means "return to step 2," never "retry step 3." - **F3 — bounce.** Do not resend to the same address. Surface the bounce reason from the webhook payload. ``` Notice what carries the weight: the state table is implicit in the step text (`key.token` → auth header, `domain.id` → step 3, `sender.id` → step 4), the wait state in step 2 is explicit so the agent knows polling is expected behavior rather than an error, and every failure exit names the step to return to. The 422 in step 3 is the single most valuable line in the doc — it converts the exact error an agent will hit into a navigation instruction. For the individual pieces referenced here, the glossary covers [webhooks](/glossary/webhook) and API authentication in depth. ## Where workflow docs live A workflow doc an agent cannot find might as well be unwritten. Three placements determine whether it is on the agent's path. **A guides section on the plain-fetch docs surface.** The workflow needs its own URL, server-rendered, reachable without JavaScript execution — the same bar every page of agent-facing documentation has to clear. Guides buried inside a client-rendered docs app fail the fetch before an agent reads a word. **Linked from llms.txt.** An [llms.txt](/glossary/llms-txt) file is the map agents check first, and 64% of the APIs in the Discry Index corpus now publish one. A map that lists only reference pages reproduces the reference-only problem at the discovery layer: the agent finds fifty endpoint pages and no path through them. Put the workflow guides in their own section of the file, near the top. The [llms.txt article](/resources/what-is-llms-txt) covers structure; the [signal page](/signals/llms-txt) covers how Discry checks it. **As the golden path in AGENTS.md.** An [AGENTS.md](/glossary/agents-md) file — the convention documented at [agents.md](https://agents.md/) — is instructions addressed directly to coding agents, and it is the natural home for the one workflow that matters most: the golden path from empty project to first successful call. Only 30% of the corpus ships one, which makes it one of the cheapest differentiating moves on the discovery surface. [AGENTS.md for APIs](/resources/agents-md-for-apis) covers the format in full. Your [OpenAPI spec](/glossary/openapi-spec) does real work here too, in a supporting role: an operation description that says "requires a verified domain — see the sending workflow" plants a pointer at exactly the spot where an agent working from the spec alone would otherwise guess. ## Anti-patterns Four placements recur across the corpus that look like workflow documentation and fail agents anyway. **Workflows only in blog posts.** The launch post that walks through the full integration is often the best sequence writing the company ever produced — and it lives off the docs path, unlinked from llms.txt, dated 2024, describing a deprecated auth flow. Blog posts rot; workflow docs are maintained surface. If the post is the only place the sequence exists, the sequence is effectively undocumented. **Workflows only in SDKs.** A quickstart script in an `examples/` directory encodes the ordering in code, in one language, in a repository the agent may never fetch. The plain-HTTP docs surface — the thing agents actually read — never states the sequence. The SDK is a delivery mechanism for the workflow; it cannot be the sole record of it. **Implied-but-unwritten orderings.** The most common pattern of all: the only place the ordering appears is an error table. The reference page for the send endpoint lists `422 domain_not_verified` among its errors, and that one row is the entire documentation of the fact that domain verification precedes sending. A human reads that row and reconstructs the sequence; an agent hits the error at runtime, mid-task, with tokens already spent. Every "must first" hidden in an error message is a workflow doc that was never written. **Happy-path-only guides.** A numbered list of calls with no wait states and no failure exits documents the demo, and the demo is the one run that never happens in production. ## How this shows up in the measurement Discry measures comprehension behaviorally: real models are quizzed against your live docs, including request-construction tasks that require assembling correct calls from what the documentation actually says. An API whose docs carry real sequence gives a model something to follow; an API that documents endpoints in isolation forces the model to improvise the chain, and improvised chains are where invented parameters and phantom orderings surface. The [methodology](/methodology) describes how those tasks are built and graded — mechanically, against ground truth cited to your own pages. The practical takeaway sits upstream of any measurement: write the sequence down, put it where the maps point, and the agent executes your path instead of one it made up. The [prioritized checklist](/resources/make-your-api-agent-ready) places workflow docs among the rest of the agent-readiness work. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## Error Docs an AI Agent Can Actually Recover From URL: https://index.discry.ai/resources/error-docs-agents-recover > What AI agents do when API error documentation fails them, and how to write error responses, catalogs, and retry guidance an agent can recover from. A developer asks a coding agent to integrate your API. The first authenticated request comes back as a 422 with a one-word message. Your docs list the status code and nothing else. The agent does what agents do with a gap in the docs: it fills the gap. It renames a field it decides is probably wrong, invents a parameter that sounds plausible, retries with confidence, and keeps going until something returns a 200 or the developer gives up and files a support ticket. The ticket blames your API, because from where the developer sits, your API is what failed. That failure mode is the reason API error documentation deserves more attention than it gets. Human developers who hit an undocumented error open a browser tab and go searching. An agent has no tab to open. It has your error response, whatever your docs said about it, and a strong prior toward producing *an* answer. Missing error docs don't make an agent stop — they make it guess, and it guesses fluently. Good error documentation converts failures into recoveries. Bad error documentation converts them into support tickets with your name on them. Discry measures a version of this directly. The [Discry methodology](/methodology) includes [trap tasks](/glossary/trap-task): tasks that ask a model to do something the API doesn't support, where the correct answer is a refusal and the failing answer is a confident invention. Error handling is the same test administered at runtime. When your API says "no" and your docs don't say why, the model's options are refuse or invent — and invention is what models are good at. ## The loop an agent runs when a request fails An agent recovering from a failed API call works through a short loop, and every step of it is either a documentation lookup or a guess: 1. **Classify the failure.** What does this status code and error body mean? Is this my fault (a malformed request), the caller's fault (bad credentials, exhausted quota), or the server's fault (transient outage)? 2. **Decide whether to retry.** Is this error retryable at all? A timeout might be. A validation failure never is — retrying the identical request produces the identical rejection. 3. **Decide what to change.** If the request was wrong, which part? A field name, a value format, a missing header, an expired token? 4. **Retry or escalate.** Either send a corrected request, wait and resend an identical one, or stop and report the failure upward. With good error docs, each step is a lookup: the error body carries a machine-readable code, the code appears in a catalog, the catalog row says what caused it and what to change. Without them, each step is a guess — and guesses compound. An agent that misclassifies a validation error as transient will retry the same broken request into your [rate limits](/glossary/rate-limiting). An agent that can't tell which field failed will mutate fields one at a time, burning requests and tokens on an experiment your docs could have answered in one sentence. Both patterns show up throughout the audit corpus behind the Discry Index. Some APIs document only their 200 responses — no error codes, no error schema, no recovery guidance — so an agent learns how failures behave exclusively by failing. Others document errors as bare status-code lists: an agent hitting a 422 learns that "the entity couldn't be processed" and nothing about which field, which validation, or what a corrected request looks like. The pattern we flag most often in scan findings is exactly this gap between *parseable* and *recoverable*: errors that return typed JSON with a message, while the docs stop at descriptions like "Not found" without telling an agent what to change to succeed on the next attempt. ## Anatomy of an error response an agent can recover from A recoverable error response answers the loop's questions in the response itself. Five parts, in rough priority order: - **An accurate HTTP status code.** The coarse classification: 400-class means the request is wrong, 401/403 mean identity or permission, 429 means slow down, 500-class means the server. Agents key their first branch off this, so a 200 that carries an error in the body is actively hostile — it defeats the classification step entirely. - **A stable, machine-readable error code.** A string like `card_declined` or `parameter_missing` that an agent can match exactly, look up in your catalog, and branch on. Messages get reworded; codes are a contract. - **A human-readable message that names the problem precisely.** "Invalid request" recovers nothing. "`starting_after` must be an object ID, received an integer" is a fix instruction disguised as an error message. - **A pointer to documentation.** A URL for this specific error type, so an agent (or the developer reading the agent's transcript) can pull the full recovery context. - **Retry semantics.** Whether this error is retryable, and if so, when — a `Retry-After` header on 429s and 503s, or an explicit retryable flag in the body. You don't have to invent a format for this. [RFC 9457, "Problem Details for HTTP APIs"](https://www.rfc-editor.org/rfc/rfc9457.html) — the standard [error response format](/glossary/error-response-format), served as `application/problem+json` — defines exactly this shape: a `type` URI identifying the problem class, `status`, a short `title`, a `detail` string explaining this occurrence, and an `instance` URI, with room for extension members like a field name or a retry hint. A problem-details response for the 422 that opened this article looks like: ```json { "type": "https://api.example.com/errors/validation-failed", "title": "Validation failed", "status": 422, "detail": "amount must be a positive integer in minor units; received \"49.99\"", "instance": "/v1/charges", "invalid_params": [ { "name": "amount", "reason": "expected integer (minor units), got decimal string" } ] } ``` Every member is doing recovery work: the `type` URI is the docs pointer, `detail` names the fix, and `invalid_params` tells the agent which field to change — so the corrected retry happens on the second request instead of the ninth. Naming the exact bad parameter in the error body is one of the strongest patterns we see in the wild: [Instacart's](/api/instacart) error schema returns a code plus a `meta.key` naming the offending parameter with a prescribed corrective action, and [Square's](/api/square) errors carry `category`, `code`, `detail`, and `field` — machine-parseable down to the thing that needs to change. ## An error catalog is a decision table The response tells an agent what happened. The catalog — the errors page in your docs — tells it what to do next. The pattern that works is a decision table: one row per error code, with columns for the HTTP status, the cause, the fix, and whether it's retryable. A worked slice: | Code | HTTP | Cause | What to change | Retryable | |---|---|---|---|---| | `authentication_failed` | 401 | Key missing, malformed, or revoked | Check the `Authorization` header format; issue a new key if revoked | No | | `insufficient_scope` | 403 | Key is valid but lacks this permission | Request the scope; do not retry with the same key | No | | `parameter_invalid` | 422 | A named field failed validation | Fix the field named in `invalid_params`, resend | After fixing | | `rate_limited` | 429 | Request budget exhausted | Wait `Retry-After` seconds, then resend unchanged | Yes, after delay | | `internal_error` | 500 | Fault on our side | Resend with exponential backoff; contact support if persistent | Yes | That last column is the one agents need most and get least. Explicit retryable-vs-non-retryable rulings are what separate the strongest error docs in the corpus from the merely complete ones. [Firecrawl's](/api/firecrawl) errors page maps every error to cause → remedy → retryable, with a copy-pasteable backoff snippet. [Together AI](/api/together) documents an explicit cause and fix for every status code from 400 through 529. [monday.com's](/api/monday) error reference is a structured table mapping each code to its HTTP status, description, and an explicit resolution column. [Courier's](/api/courier) responses page gives every status an action column plus a validation-errors table in error → cause → fix form. [Temporal](/api/temporal) goes furthest: a dedicated error-handling guide with retryable-vs-non-retryable decision rules and idempotence design, written for exactly the self-correction loop this article describes. None of this is exotic — it's the same table, kept honest. ## What to document, failure by failure Four failure families cover most of what an agent will actually hit. Each has one question your docs must answer. **Auth failures.** The question is *which* auth problem. A 401 for a missing key, an expired token, and a malformed header are three different fixes, and an agent that can't distinguish them will regenerate credentials when it should have fixed a header. Document your exact header format with a literal example, the difference between your 401 and your 403, token lifetime and the refresh flow, and what an expired token error looks like versus a revoked one. See the glossary on [API authentication](/glossary/api-authentication) for the shapes agents encounter. **Rate limits.** The question is *when to come back*. Document the limits themselves, the headers that expose remaining budget, and — critically — that you send `Retry-After` ([a standard HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After)) and that clients should honor it with [exponential backoff](/glossary/retry-backoff) rather than hammering. An undocumented rate limit turns a well-behaved agent into a DoS participant: it hits the 429, has no guidance, and retries on its own schedule. **Validation errors.** The question is *which field*. A 422 that names the parameter, the expected format, and the received value is self-correcting; a 422 that says "unprocessable entity" is a mutation loop. If your error body carries structured field-level detail, document the schema of that detail — it's the most valuable schema in your reference. **Idempotency conflicts.** The question is *is it safe to resend*. Timeouts are where agents do real damage: resend a payment that actually succeeded and you've charged someone twice. Document your [idempotency key](/glossary/idempotency-key) mechanism, key expiry, and what happens when a key is reused with a different payload. lemon.markets ships a dedicated idempotency guide covering retry-safety, key expiry, and a full error-scenario table — precisely the guidance that lets an agent recover from a timeout without duplicating an order — and its [profile](/api/lemon) shows how far that carries even where other signals lag. ## Error docs are comprehension surface In [agent-readiness](/resources/what-is-agent-readiness) terms, error documentation sits on the comprehension side: it's part of whether an agent can *operate* your API from what you've published, and the Discry scan quizzes models on exactly these facts — auth, errors, limits — against your live docs. It also touches discovery: an errors page that exists but isn't routed from your [llms.txt](/resources/what-is-llms-txt) is an answer the agent never finds, and your [AGENTS.md](/resources/agents-md-for-apis) is the natural place to flag the two or three errors integrators hit first. If you're sequencing fixes, the [prioritized checklist](/resources/make-your-api-agent-ready) puts error-recovery guidance in context with the rest. The economics favor you here. An error catalog is a table; retry semantics are a column; a `Retry-After` header is a few lines of middleware. Against that cost, every recoverable error is an integration that finishes instead of a ticket that arrives — and agents, unlike humans, follow the recovery instructions exactly as written, every time. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## How to Write an llms.txt for Your API (with Examples) URL: https://index.discry.ai/resources/llms-txt-for-apis > The llms.txt format explained against the spec, a worked example for an API, the size discipline that matters, and real failure modes from live scans. An [llms.txt](/glossary/llms-txt) is the single cheapest discovery artifact an API team can ship, and it is also the one teams most often ship without checking whether an [AI agent](/glossary/ai-agent) can actually use it. Across the Discry Index corpus, 64% of scanned APIs serve an llms.txt that passes a mechanical quality lint — present, structured with headings, and carrying described links under the size budget. The rest either have no file at all or have one that fails in ways the team never sees, because no human ever reads it. This guide covers the format as specified, a worked example you can adapt, the size discipline that separates a useful file from a useless one, and the failure modes we observe in live scans. ## What llms.txt is for llms.txt is a curated map of your documentation, written in Markdown, served at the root of your docs domain at `/llms.txt`. The [spec](https://llmstxt.org/) was proposed by Jeremy Howard of Answer.AI in September 2024, and the problem it solves is stated plainly in the proposal: language models rely on website content, but their [context windows](/glossary/context-window) are too small to ingest most sites whole, and converting JavaScript-heavy HTML into model-readable text is lossy and expensive. For an API, the stakes are concrete. When a coding agent scaffolds an integration against your API, it fetches your public docs the way most agents do — plain HTTP, no JavaScript execution. A good llms.txt hands that agent your three canonical pages instead of leaving it to guess among four hundred. That is discoverability: whether agents can find and understand your API from its public surface, which is the piece of [agent-readiness](/resources/what-is-agent-readiness) you can fix in an afternoon. A sitemap already lists your pages, so it is worth being precise about the difference. The spec addresses this directly: a sitemap enumerates every indexable page, most of which an agent does not need, in aggregate far too large for a context window, with no external links and usually no model-readable versions. llms.txt curates. It says: start here, in this order, and here is what each link contains. ## The format, straight from the spec The [llmstxt.org spec](https://llmstxt.org/index.md) defines a specific structure, in a specific order. A conforming file contains: 1. **An H1 with the project or site name.** This is the only required section. 2. **A blockquote** with a short summary containing the key information needed to understand everything that follows. 3. **Zero or more plain Markdown sections** (paragraphs, lists — anything except headings) with more detail about the project and how to read the linked files. 4. **Zero or more H2-delimited sections containing "file lists"** — Markdown lists where each entry is a required hyperlink `[name](url)`, optionally followed by a `:` and notes about the file. One H2 name is reserved: a section titled `Optional` marks links that can be skipped when an agent needs a shorter context. Put secondary material there — changelogs, SDK pages, background reading. The spec makes a second proposal that matters just as much for APIs: pages worth reading should also be published as clean Markdown at the same URL with `.md` appended. The two proposals work together. Your llms.txt is the index; the `.md` mirrors are what its links should point to. In our corpus, [Ably](/api/ably) ships a parallel `.md` version of every docs page with llms.txt linking straight to them, and [Intercom](/api/intercom) does the same via a `.md` suffix — an agent can traverse either doc set without parsing a single rendered HTML page. ## A worked example Here is a complete llms.txt for a fictional but realistic payments API. It follows the spec exactly and adds the details an integrating agent actually needs — base URL, auth model, and pagination rules up front, links ordered by integration sequence: ```markdown # Ledgerline API > Ledgerline is a payments API for invoicing and payouts. Base URL > https://api.ledgerline.example/v1, Bearer-token auth, JSON request and > response bodies. Rate limit: 120 requests/minute per key. Every doc > linked below is served as clean markdown. Sandbox keys are self-serve at the signup page. All list endpoints use cursor pagination via `starting_after`. Amounts are integer minor units. ## Start here - [Quickstart](https://ledgerline.example/docs/quickstart.md): Get a key and send your first invoice in five calls - [Authentication](https://ledgerline.example/docs/auth.md): Bearer tokens, scopes, key rotation - [Errors](https://ledgerline.example/docs/errors.md): Error envelope, retryable vs. terminal codes, backoff rules ## API reference - [OpenAPI spec](https://api.ledgerline.example/openapi.json): OpenAPI 3.1, every endpoint, regenerated on deploy - [Invoices](https://ledgerline.example/docs/invoices.md): Create, send, void; full state machine - [Payouts](https://ledgerline.example/docs/payouts.md): Batch payouts, reconciliation, webhook events - [Webhooks](https://ledgerline.example/docs/webhooks.md): Signature verification, retry schedule, event catalog ## Optional - [Changelog](https://ledgerline.example/docs/changelog.md): Dated API changes - [SDKs](https://ledgerline.example/docs/sdks.md): Python, TypeScript, Go ``` Two choices in this example do the most work. The blockquote carries the facts an agent needs before it follows any link — auth model, base URL, rate limit, pagination — so even an agent that reads nothing else leaves oriented. And the file links the [OpenAPI spec](/glossary/openapi-spec) directly: in Discry scans, a spec URL inside llms.txt is one of the first places our discovery probe looks for your machine-readable contract, and the same is true of agents in the wild. For real implementations rather than a fiction, browse the [llms.txt examples gallery](/examples/llms-txt). Some corpus standouts, cited for what their files do: [1Password](/api/1password) publishes a curated index with per-link descriptions, workflow decision guides, and `.md` versions of every page. [Render](/api/render) includes usage permissions, naming conventions, citation format, and priority guidance for agents. [Paddle](/api/paddle) splits its index into per-section files to dodge truncation limits and pairs it with a `.md` sibling for every docs URL. And the [FastHTML llms.txt](https://www.fastht.ml/docs/llms.txt) is the file the spec itself uses as its worked example. ## Size discipline: a map, a territory The most common quality failure in the corpus has nothing to do with structure. Teams generate llms.txt automatically from their site index and ship a file that is technically valid and practically unusable. Ably's llms.txt is genuinely API-focused, with roughly 35 structured, described sections — at ~445KB, roughly ten times what an agent can comfortably load as an index. ClickHouse serves a 92KB file where an agent burns roughly 23,000 tokens on legal pages, blog newsletters, and campaign links before reaching documentation. Discry's lint flags any llms.txt over 50KB, and the reasoning is mechanical: this file's whole value is that it fits easily in context alongside the docs it points to. A 500KB index defeats its own purpose. The division of labor the spec intends is: llms.txt stays small and curated; [llms-full.txt](/glossary/llms-full-txt) is the separate, optional file that concatenates your full docs corpus for agents that want everything in one fetch. Publish both, and let each do its job. Verbosity has a measurable cost for every doc an agent reads, and the index is the worst possible place to spend tokens — the argument in full is in [Token-Efficient API Docs](/resources/token-efficient-api-docs). ## Failure modes we observe in live scans These come from `keyFindings` in Discry scan artifacts — patterns that recur across the corpus, cited at the check level. **The file covers the product, not the API.** Slack's llms.txt exists and is well-structured, but it covers pricing, features, and customer stories rather than the developer platform — for an agent integrating with the API, it indexes the wrong site. AdButler's is product-focused and never routes agents to its actual API reference. If your company site and docs site share a domain, write the file for the integration reader. **Link targets an agent cannot read.** An llms.txt that points at JavaScript-rendered pages hands the agent a map to rooms it cannot enter. [Splunk](/api/splunk)'s developer portal renders entirely via JavaScript, so its llms.txt path returns HTML and script rather than plain text. [Attio](/api/attio)'s secondary docs alias serves a 352KB SPA shell for `/llms.txt` unless the agent negotiates content type — the real, complete file lives on the canonical docs domain. Fetch every link target with a plain HTTP client before you ship. **Dead pointers.** One corpus API advertises its OpenAPI spec URL inside llms.txt, and that URL — along with every fallback path — returns 404. An agent that trusts your index and hits a dead link is worse off than one that never found the file. Stale links accumulate silently after docs migrations; regenerate or re-verify the file whenever URLs change. **The file exists, but in the wrong place.** [Twelve Data](/api/twelvedata) maintains a high-quality llms.txt at `/docs/llms.txt`, while the root path returns 404 — an agent following the root convention misses it entirely. The spec's location is the root path of the domain agents will probe. **No file at all.** [HubSpot](/api/hubspot)'s developer surface returns 404 for `/llms.txt`, and it has plenty of company among large, popular APIs. Adoption is high enough that absence now reads as a signal. The live pass rate, updated as the corpus rescans, is on the [llms.txt signal page](/signals/llms-txt). ## How to test yours Test it the way an agent will encounter it — plain fetch, no JavaScript, no headers a generic client would not send: ```bash curl -s https://yourdomain.com/llms.txt | head -50 ``` Then check four things Discry's lint checks mechanically: the file has headings; it contains at least one absolute web URL in Markdown link form; at least one link carries a description after a `:` or dash; and the whole file is under 50KB. Then go one step past the lint: fetch every linked URL with the same plain client and confirm each returns readable text rather than an HTML shell or a 404. llms.txt is one discovery signal among several — agents also probe your [robots.txt for AI crawlers](/resources/robots-txt-ai-crawlers), look for an [AGENTS.md](/glossary/agents-md) in your repos (covered in [our AGENTS.md guide](/resources/agents-md-guide)), and try to fetch your spec directly. How all of these combine, and how we test comprehension behaviorally on top, is documented in [the Discry methodology](/methodology). The fastest way to see the whole picture for your own API is to run the scan. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## Make Your OpenAPI Spec Agent-Readable URL: https://index.discry.ai/resources/openapi-agent-readable > AI agents construct API calls from your OpenAPI spec. How to publish it, name operations, document errors, and add examples agents can build from. Your OpenAPI spec is the contract AI agents build API calls from. When a coding agent scaffolds an integration or a [tool-using](/glossary/tool-use) agent constructs a request at runtime, it works from the machine-readable description of your endpoints — paths, parameters, schemas, auth. If that description is missing, unreachable, or thin, the agent does what models do with missing information: it guesses. Guessed parameter names, guessed auth headers, and guessed error handling become failed calls, and the support ticket blames your API, not the agent. That failure starts earlier than most teams expect. Across the Discry Index corpus, only 54% of scanned APIs pass the OpenAPI spec discovery check — a publicly fetchable, parseable spec at a conventional location or linked from the docs. Nearly half the market asks agents to reconstruct the contract from prose and HTML. This article covers what an agent-readable [OpenAPI spec](/glossary/openapi-spec) looks like in practice: where to publish it, how to name and describe operations, and how to document examples, errors, and auth so an agent's first constructed call is a working one. It is one piece of the broader [agent-readiness](/resources/what-is-agent-readiness) picture, and it is usually the highest-leverage one. ## Publish the spec where a plain fetch can find it Before an agent can read your spec, it has to find it — and most agents look with a plain HTTP fetch, no JavaScript execution, no clicking through a docs UI. A spec that only exists inside an interactive API explorer, behind a signup wall, or rendered client-side is invisible to that fetch. Three publishing rules cover almost every failure we observe: **Serve the raw file at a conventional path.** `/openapi.json`, `/openapi.yaml`, and `/swagger.json` on your docs or API domain are where automated discovery looks first. The Discry scanner probes these conventional locations directly — details on the [OpenAPI signal page](/signals/openapi). **Link it from your docs and your llms.txt.** A spec that exists but is linked nowhere forces agents to guess URLs. The scanner also follows any OpenAPI or Swagger link it finds in your [llms.txt](/resources/what-is-llms-txt), so one line there — `[OpenAPI spec](https://api.example.com/openapi.json)` — makes the spec discoverable even at an unconventional path. Keep the pointer live: we have observed llms.txt files advertising a spec URL that returns 404, which is worse than no pointer at all because the agent burns a fetch on a dead end. **Host it on your own domain, officially.** [Klarna](/api/klarna)'s spec exists as a GitHub gist rather than being hosted on its docs domain — findable if you already know about it, unreliable for automated discovery. Contrast [Attio](/api/attio), which publishes a valid OpenAPI 3.1 spec at a stable API URL and links it from the docs, so an agent can ingest the full contract in one fetch. [Postmark](/api/postmark), meanwhile, has strong human docs but no publicly accessible spec at all — every agent integrating it starts from zero. These are check-level observations from our scans; for where the spec sits among the other fixes, see [how to make your API agent-ready](/resources/make-your-api-agent-ready). ## operationId: the name agents call you by The spec's `operationId` field is "a unique string used to identify the operation," and the [OpenAPI Specification](https://spec.openapis.org/oas/latest.html) notes that tools MAY use it to uniquely identify an operation — which is exactly what agent frameworks do. When a spec is converted into a tool catalog for function calling, [operationId](/glossary/operation-id) typically becomes the tool name the model selects and invokes. Omit it, and the tooling has to synthesize a name from the method and path (`post_v1_invoices_invoice_id_finalize`), which is noise where there should be signal. Before: ```yaml paths: /v1/invoices/{invoice_id}/finalize: post: responses: '200': description: OK ``` After: ```yaml paths: /v1/invoices/{invoice_id}/finalize: post: operationId: finalizeInvoice summary: Finalize a draft invoice so it can be sent responses: '200': description: The finalized invoice, now immutable. ``` The spec requires each `operationId` to be unique across the API and treats the value as case-sensitive; it recommends following common programming naming conventions. Verb-noun names that state the task — `createInvoice`, `finalizeInvoice`, `listPayouts` — give a model the same affordance they give a developer skimming an SDK: the name alone tells you what the call does. ClickHouse's public spec is a good live example, with task-oriented operation names like "Create new service" carried through the operation metadata ([profile](/api/clickhouse)). ## Descriptions do the work your docs site can't Every operation gets two prose fields: `summary` ("a short summary of what the operation does") and `description` ("a verbose explanation of the operation behavior," CommonMark allowed). Agents use them at different moments. The summary is what a model sees when it scans the tool catalog deciding *which* operation fits the task; the description is what it reads when constructing the *call* — preconditions, side effects, ordering constraints. Schema-only specs fail here quietly. A spec can be perfectly valid with empty descriptions, and the agent will still construct calls from it — with nothing to tell it that invoices must be finalized before sending, that the endpoint is eventually consistent, or that deleting a customer cascades to subscriptions. Behavior that lives only on your marketing site or in a tutorial the agent never fetched may as well not exist at call-construction time. Write descriptions as if the reader will act on them immediately and alone, because that is precisely an agent's situation. The same discipline applies to parameters and schema properties. `customer_id` with no description forces a guess about format; `customer_id` described as "ID of an existing customer (format: cus_ prefix)" removes it. ## Examples turn schemas into working requests A JSON Schema tells an agent what is *permitted*; an example shows what is *normal*. The spec gives you `example` and `examples` fields on parameters, media types, and headers, plus reusable Example Objects under `components`. Use them for every non-trivial request body: ```yaml requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateInvoiceRequest' examples: minimal: summary: Smallest valid request value: customer_id: cus_8x4f2 currency: usd ``` Realistic examples anchor the values models generate — ID formats, enum casing, date formats, currency codes. In our scans, the specs that read best to agents pair schemas with worked examples throughout; [MiniMax](/api/minimaxi)'s llms.txt links directly to publicly reachable specs complete with request schemas and worked examples, so an agent can generate a typed client without touching an HTML page. Response examples matter as much as request examples: they are how an agent learns what "success" looks like before it has ever made a call. ## Document errors in the spec itself The specification is explicit that responses documentation is "not necessarily expected to cover all possible HTTP response codes," but SHOULD cover "the successful operation response and any known errors" — with a `default` response available for everything else. Known errors belong in the spec because error handling is where agents either recover or spiral: an agent that knows a 422 means "customer_id does not exist" can fix the call; an agent that gets an undocumented 422 retries the same broken request. ```yaml responses: '201': description: Invoice created in draft state. '422': description: Validation failed. The `code` field names the invalid parameter. content: application/json: schema: $ref: '#/components/schemas/Error' '429': description: Rate limited. Retry after the interval in the Retry-After header. default: description: Any other error, in the standard Error shape. content: application/json: schema: $ref: '#/components/schemas/Error' ``` Describe the recovery alongside the failure. Our scan of [Escape](/api/escape) found a valid spec whose typed error responses stop at descriptions like "Not found" — parseable, but with nothing telling an agent what to change. A consistent [error response format](/glossary/error-response-format) with a machine-readable code, referenced from every operation via `components`, is what turns errors from dead ends into branch points. ## Security schemes: state how to authenticate, machine-readably Authentication is the first thing an agent must get right and the least guessable. The spec's `components/securitySchemes` supports five types — `apiKey`, `http`, `mutualTLS`, `oauth2`, and `openIdConnect` — and applying a scheme via `security` tells every consumer, human or model, exactly what credential goes where: ```yaml components: securitySchemes: bearerAuth: type: http scheme: bearer description: API key sent as a bearer token. Create keys in Dashboard → API. security: - bearerAuth: [] ``` A spec without security schemes leaves the agent to infer auth from prose — header name, prefix, key location all guessed. Use the scheme's `description` field to say where credentials come from; see the [API authentication](/glossary/api-authentication) glossary entry for the common patterns. ## Version the spec, and keep it moving with the API A stale spec is a subtler failure than a missing one: everything parses, the calls just target last year's API. Treat the spec as a build artifact, not documentation. Generate it from source or validate it in CI, bump `info.version` when the contract changes, and keep it consistent with your [API versioning](/glossary/api-versioning) story so the spec an agent fetches describes the API version it will actually call. If you maintain specs per major version, serve the current one at the conventional path and link the rest. Discoverability regresses silently — a docs migration that drops `/openapi.json` breaks agent integrations without breaking a single human page. ## What the Discry check verifies The Discry scanner's OpenAPI check is deliberately mechanical: it probes the conventional spec paths and any spec URL declared in your llms.txt, then validates what it finds — the document must parse as JSON or YAML, declare an `openapi` (or `swagger`) version, and contain a `paths` object, from which it counts your documented endpoints. A spec that is found but fails validation is recorded with the reason. Everything is fetched the way most agents fetch: plain HTTP, no JavaScript. Full semantics on the [OpenAPI signal page](/signals/openapi), and the wider method — discovery signals plus behavioral comprehension testing — on the [methodology page](/methodology). The spec is where discovery and comprehension meet: one file that makes your API findable to automated discovery and constructable for the model that found it. Publishing it well is the single most direct answer to "make us AI-ready." What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## MCP Servers Explained (for API Teams) URL: https://index.discry.ai/resources/mcp-server-explained > What an MCP server is, what it exposes, and how the manifest and registry make it discoverable, for API teams deciding whether to ship one. An MCP server is a program that offers your API's capabilities to [AI agents](/glossary/ai-agent) in a form they can call directly, using the [Model Context Protocol](/glossary/model-context-protocol) — an open standard for connecting AI applications to external systems. For an API team, that one sentence carries a strategic decision: whether agents integrate with you by reading your documentation and writing code, or by connecting to a server you operate and calling the operations you chose to expose. This article covers what the protocol actually specifies, what a server exposes, what shipping one changes about your documentation (less than you might hope), and the discovery layer — the manifest and registry listing that determine whether agents can find your server at all. That last part is where the data gets interesting: registry listings are common across the APIs Discry scans, while the discoverable manifest is the emptiest signal in the entire discovery battery. ## What MCP actually is The [Model Context Protocol](https://modelcontextprotocol.io) (MCP) was introduced and open-sourced by Anthropic in [November 2024](https://www.anthropic.com/news/model-context-protocol). It has since grown into a broadly supported open standard: AI assistants, coding tools like Visual Studio Code and Cursor, and a widening set of clients all speak it, and its registry infrastructure is backed by contributors including Anthropic, GitHub, and Microsoft. The protocol follows a client-server architecture. An AI application (the host — Claude, ChatGPT, an IDE, your customer's custom agent) creates an MCP client for each server it connects to. The [MCP server](/glossary/mcp-server) is your side of the connection: a program that provides context and capabilities over a JSON-RPC 2.0 exchange. Servers run in one of two modes — locally on the user's machine over stdio (typically installed as a package), or remotely over Streamable HTTP, operated by you like any other service endpoint. The USB-C analogy from the protocol's own docs is the right mental model: one standardized port instead of a custom integration per AI application. Before MCP, connecting an assistant to your API meant a bespoke plugin per platform. With it, you build one server and every MCP client can use it. ## What an MCP server exposes The [specification](https://modelcontextprotocol.io/specification/latest) defines three core primitives a server can offer: - **Tools** — executable functions the agent can invoke: create a charge, query a database, send a message. This is [tool use](/glossary/tool-use) with your API on the other end, and it is the primitive most API teams ship first. - **Resources** — data the agent can read for context: file contents, records, reference material. Where tools act, resources inform. - **Prompts** — reusable interaction templates the server provides, useful for packaging a multi-step workflow the agent would otherwise have to reconstruct. A useful way to hear this as an API team: tools are your operations, resources are your reference data, and prompts are your integration guides — reshaped into a form an agent consumes natively instead of parsing out of HTML. The design decision that matters most is scope. A good MCP server is a curated set of task-shaped capabilities ("issue a refund," "look up a customer's subscription status"), each with a description an agent can act on. An endpoint-for-endpoint mirror of your OpenAPI spec makes a poor server: agents choose among tools by reading their descriptions, and forty near-identical CRUD tools are harder to choose between than eight workflow-shaped ones. ## Your docs still matter Shipping an MCP server changes how *connected* agents integrate with you. It changes much less for everyone else, and "everyone else" is currently most of your agent traffic. Consider who is actually reading your API surface today. Coding agents — Cursor, Claude Code, Copilot — scaffold integrations by fetching your public docs and writing code against them, whether or not your MCP server exists. An agent that hasn't installed your server has exactly one way to learn your API: the documentation surface. And before any agent connects to your server, something — a developer, an agent, an aggregator — has to discover that your API is worth connecting to, which is a docs-and-discovery problem, not a protocol problem. So an MCP server complements your documentation; the two serve the same agent at different moments. Your [llms.txt](/resources/what-is-llms-txt) and [AGENTS.md](/resources/agents-md-for-apis) serve the agent deciding whether and how to build on you. Your server serves the agent that has already connected. Teams that ship a server and let the docs surface decay have optimized the second moment while losing the first. One more continuity: your tool descriptions *are* documentation. The same writing discipline that makes endpoint descriptions comprehensible to a model — task-oriented, example-bearing, explicit about errors — is what makes an agent pick the right tool and call it correctly. Shipping a server does not exempt you from writing for machine readers; it gives you a second surface to write well. ## The discovery layer: manifest and registry A server nobody can find contributes nothing. MCP's discovery layer has two parts, and Discry checks both as [discovery signals](/resources/what-is-agent-readiness). **The manifest.** Publishing an [MCP manifest](/glossary/mcp-manifest) at `/.well-known/mcp.json` on your own domain gives clients and crawlers a standard place to learn that your MCP server exists and how to reach it — the same fixed-location convention that makes `robots.txt` and `security.txt` findable without prior knowledge. Discry's [MCP manifest check](/signals/mcp-manifest) fetches that path and verifies it holds valid JSON; a malformed file earns partial credit, absence fails. Across the APIs we scan, 5% pass. That makes it the least-shipped signal in Discry's discovery battery — which is the polite way of saying almost nobody has claimed this ground yet. [Resend](/api/resend), [Netlify](/api/netlify), and [Pinecone](/api/pinecone) are among the few that serve one today. For a team deciding where an afternoon of agent-readiness work goes, a well-known manifest is rare enough to be a differentiator on its own. **The registry.** An [MCP registry](/glossary/mcp-registry) is a public directory of servers that clients and aggregators query. The [official MCP Registry](https://modelcontextprotocol.io/registry/about) — currently in preview — stores standardized `server.json` metadata (where the server lives, how to run it, what it does), verifies namespaces through DNS, and exposes a REST API that downstream marketplaces and hosts pull from. Community registries operate alongside it. Discry's [MCP registry check](/signals/mcp-registry) probes public registry search for a listing matching the API's name; 76% of the APIs we scan pass. Read those two numbers together and the shape of the ecosystem appears: registry listings are widespread, often because community members published a server for an API before its owner did, while the owner-controlled signal on your own domain — the manifest — is almost entirely unclaimed. [Stripe](/api/stripe), [GitHub](/api/github), and [Slack](/api/slack) all show a public registry listing and no `/.well-known/mcp.json` at the time of our scan. A registry entry says a server exists somewhere; the manifest is your domain vouching for which one is yours. A boundary worth stating plainly: these are discoverability checks. Discry verifies that the manifest is present and valid and that a registry listing exists — it does not run your MCP server or test its behavior. The [methodology](/methodology) page describes exactly what each check fetches. ## A realistic minimal path to shipping one The minimum credible version of this project is smaller than most teams assume: 1. **Pick three to five workflows, not your whole API.** Choose the tasks agents most plausibly perform against your product and shape one tool per task. You can widen later; you can't easily recover an agent's attention from a forty-tool sprawl. 2. **Build on an official SDK.** The protocol ships [SDKs across major languages](https://modelcontextprotocol.io) that handle the JSON-RPC plumbing, capability negotiation, and transports. That leaves your team's effort where it belongs: defining the tools and writing their descriptions. 3. **Choose a transport deliberately.** A remote server over Streamable HTTP is one deployment you operate and version — usually the right call for a hosted API. A stdio package pushes install friction onto every user but needs no hosting. 4. **Write tool descriptions like the documentation they are.** Task-first names, concrete parameter examples, explicit failure modes. This is the comprehension work, and it transfers directly from good endpoint docs. 5. **Publish the discovery layer.** Add your `server.json` to the official MCP Registry under your DNS-verified namespace, and serve a valid manifest at `/.well-known/mcp.json`. This is minutes of work and, at 5% adoption, currently the cheapest way to stand out in a discovery scan. 6. **Keep the surfaces in agreement.** When the API changes, the server, the docs, and the manifest all need the update. Drift between them is the failure mode agents hit hardest, because an agent can't tell which surface is stale. Ranked against your other agent-readiness work, this lands behind the fundamentals for most APIs. An [OpenAPI spec](/signals/openapi), a focused [llms.txt](/signals/llms-txt), and an AGENTS.md serve every agent that reads your public surface; the MCP server serves the subset that connects. The [prioritized checklist](/resources/make-your-api-agent-ready) walks that ordering in full. But if the fundamentals are in place and a competitor's launch has someone asking "where's our MCP server?", the path above is the honest scope of the answer — and the manifest and registry steps are the part a discovery scan can verify the day you ship. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## robots.txt for AI Crawlers: GPTBot, ClaudeBot, Google-Extended URL: https://index.discry.ai/resources/robots-txt-ai-crawlers > Copy-paste robots.txt recipes for GPTBot, ClaudeBot, and Google-Extended: protect your content without making your API's docs invisible to AI agents. The robots.txt file on your docs domain is where AI crawlers learn whether they are welcome, and for an API it quietly decides something bigger: whether the models behind coding agents ever learn your API exists. Across the Discry Index corpus, 80% of scanned APIs serve an AI-crawler-friendly robots.txt on their documentation domain. The rest fall into two observable patterns in our scan findings: teams that blocked [AI crawlers](/glossary/ai-crawler) deliberately, usually with a policy copied from the marketing site, and teams whose docs subdomain serves no robots.txt at all. Both patterns cost the same thing. Blocking AI crawlers made sense as a content-protection default for publishers, where the crawled text is the product. API documentation works differently: the docs are how agents — and the models underneath them — learn to integrate your product. A developer asking a coding agent "which payments API should I use, and how do I call it" gets an answer assembled from what the model already learned and what the agent can fetch right now. A robots.txt that blocks AI crawlers on your docs domain removes you from the first source and, depending on which user agents you block, from the second too. This article covers what each crawler token actually controls (verified against each vendor's own documentation), three copy-pasteable recipes, and exactly what the [robots.txt AI directives check](/signals/robots-txt) in the Discry methodology credits. ## The AI crawler tokens, verified Three vendors account for the tokens that matter most, and each splits its traffic into distinct user agents with different jobs. Blocking one is a different decision than blocking another. **OpenAI** documents its crawlers at [platform.openai.com/docs/bots](https://platform.openai.com/docs/bots): - **[GPTBot](/glossary/gptbot)** crawls content that may be used to train OpenAI's generative AI foundation models. Disallowing GPTBot signals that your content should not be used for training. - **OAI-SearchBot** surfaces websites in ChatGPT's search features. OpenAI states that sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers. - **ChatGPT-User** fetches pages when a ChatGPT user asks about them. OpenAI notes that because these fetches are user-initiated, robots.txt rules may not apply to them. **Anthropic** documents its crawlers in a [support article](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler): - **[ClaudeBot](/glossary/claudebot)** collects web content that could contribute to training Anthropic's models. Anthropic states its bots honor robots.txt directives. - **Claude-User** retrieves pages when a Claude user directs it to; disabling it prevents retrieval in response to user queries. - **Claude-SearchBot** indexes content to improve search result quality. **Google** documents [Google-Extended](/glossary/google-extended) on its [crawler reference page](https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers). It is the odd one out: Google-Extended has no user-agent string of its own. Crawling happens under existing Google user agents, and `Google-Extended` works purely as a robots.txt control token governing whether crawled content may be used for training Gemini models and for grounding. Google states it does not affect a site's inclusion or ranking in Google Search — which also means blocking it costs you nothing in classic SEO and gains you nothing in agent visibility; it is strictly an AI-use control. The pattern across all three vendors: training crawlers, search crawlers, and user-triggered fetchers are separate levers. A robots.txt that treats "AI" as one thing is making three decisions at once, usually without meaning to. ## Protecting content and being discoverable are different decisions The corpus makes the tension concrete. [SubDownload's](/api/subdownload) robots.txt disallows ClaudeBot, GPTBot, and Google-Extended outright — on a product built for AI agents. [Pexels](/api/pexels) blocks the training crawlers with a blanket disallow but explicitly permits the user-triggered fetchers like Claude-User, a deliberate split: no training on our content, but an agent acting for a live user may read it. And [Adyen's](/api/adyen) docs subdomain returns no robots.txt at all, so a crawler arriving there finds no guidance either way. Each of these is a check-level observation, and each represents a different posture. The Pexels split is coherent for a stock-media business whose images are the product. The same split on an API's documentation domain is self-defeating, because the thing being "protected" — reference pages, auth guides, error tables — is material you publish precisely so that others build on it. Every model-training crawl you block is a future model that knows your competitor's endpoints and hallucinates yours. The practical resolution is scoping. Set restrictive rules on the domains where content is the product. Set open rules on the domain where the docs live. If both live on one domain, use path-scoped rules — that is what the second recipe below does. ## GPTBot robots.txt recipes you can paste All three recipes are valid per [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html), the Robots Exclusion Protocol standard. Rules are grouped by `User-agent`; a crawler follows the group that names it specifically, falling back to the `*` group. **Recipe 1 — open docs domain (the default we recommend for documentation).** Explicitly naming the AI tokens is optional when nothing blocks them, but it documents intent and survives a later engineer adding a restrictive wildcard group: ```txt # docs.example.com/robots.txt — documentation is public; agents welcome User-agent: * Allow: / User-agent: GPTBot Allow: / User-agent: ClaudeBot Allow: / User-agent: Google-Extended Allow: / Sitemap: https://docs.example.com/sitemap.xml ``` **Recipe 2 — docs-only carve-out.** For a single domain hosting both product content you want protected and documentation you want discovered. The AI training crawlers are blocked everywhere except the docs paths and the agent-discovery files: ```txt # example.com/robots.txt — protect app content, keep docs discoverable User-agent: GPTBot Disallow: / Allow: /docs/ Allow: /api-reference/ Allow: /llms.txt Allow: /llms-full.txt User-agent: ClaudeBot Disallow: / Allow: /docs/ Allow: /api-reference/ Allow: /llms.txt Allow: /llms-full.txt User-agent: Google-Extended Disallow: / Allow: /docs/ Allow: /api-reference/ Allow: /llms.txt Allow: /llms-full.txt User-agent: * Allow: / ``` **Recipe 3 — per-bot split: no training, keep the live-answer surfaces.** This blocks the training crawlers while leaving search and user-triggered fetchers open, the Pexels posture. It is a defensible choice for a marketing or content domain. Understand what it costs on a docs domain: the models powering tomorrow's agents will not have crawled your documentation, and the Discry robots.txt check will record all three AI tokens as blocked: ```txt # robots.txt — opt out of model training only User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: OAI-SearchBot Allow: / User-agent: Claude-User Allow: / User-agent: Claude-SearchBot Allow: / User-agent: * Allow: / ``` One durability note: user-agent tokens change as vendors add crawlers. Verify names against the vendor pages linked above rather than copying lists from year-old blog posts — the corpus contains robots.txt files carefully blocking crawlers that no longer exist while missing ones that do. ## What the Discry robots.txt check credits Discry's discovery scan measures whether agents can find and understand your API from its public documentation surface — the concept is discoverability; the measurement is a set of live fetches against the domain your docs live on. The [robots.txt AI directives signal](/signals/robots-txt) works like this: - The scanner fetches `robots.txt` from the scanned docs domain. No robots.txt means the check fails; the scanner treats absence as a missing signal rather than a neutral default. - The file is parsed per RFC 9309, comments stripped, groups assembled by `User-agent`. - For each of three tokens — GPTBot, ClaudeBot, and Google-Extended — the scanner finds the group that names the token specifically, falling back to the wildcard group. The token counts as blocked when that group contains `Disallow: /` with no `Allow` rule. - None blocked: the check passes. Some blocked: partial credit. All three blocked: the check fails. Two consequences worth knowing. First, a minimal robots.txt with just a wildcard allow passes — the check credits "agents are not turned away," and explicit welcome is optional. Second, `Allow` lines rescue a disallow group, which is why the docs-only carve-out in Recipe 2 retains credit: the group blocks broadly but affirmatively opens a path. Full semantics are on the [methodology page](/methodology). The check also catches subtler self-sabotage than a blanket block. [Ahrefs](/api/ahrefs) passes the AI-directives check — no AI token is blocked — but its robots.txt disallows `/*.txt$`, a pattern that would stop compliant crawlers from reading an [llms.txt](/glossary/llms-txt) even if one were added. A rule written years ago for tidiness can silently fence off the files agents look for first. ## The gate, then the map robots.txt is the gate: it determines whether crawlers may read your docs at all. It says nothing about whether an agent that gets through can find the pages that matter — that is the job of the rest of the discovery layer, starting with an [llms.txt index](/signals/llms-txt) and the other signals covered in the [agent-readiness pillar](/resources/what-is-agent-readiness). The corpus shows the two travel together at the top: [Storybook](/api/storybook), for instance, pairs a robots.txt that explicitly allow-lists the major AI crawlers with a comprehensive llms.txt. If you have just fixed your gate, the next steps are the map: [what llms.txt is and why your API needs one](/resources/what-is-llms-txt), and the [prioritized agent-ready checklist](/resources/make-your-api-agent-ready) for the signals after that. An open robots.txt is the cheapest discovery fix in the entire stack — one static file, no build step, verifiable in a single fetch. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. --- ## Token-Efficient API Docs: Why Verbosity Costs You Agent Traffic URL: https://index.discry.ai/resources/token-efficient-api-docs > Agents read your API docs inside a finite context window. Verbose docs get truncated, skimmed, or skipped. Here's how to cut token weight, not facts. An AI agent pays for your documentation by the [token](/glossary/token). Every page it fetches gets tokenized and loaded into a finite [context window](/glossary/context-window) — working memory the docs share with everything else the agent is doing: the user's request, the conversation so far, the code it is writing, the output of every other tool in play. Documentation that spends ten pages saying one page's worth of facts is spending the agent's memory, and a budget-constrained reader responds predictably. It truncates, it skims, or it skips you entirely. Human readers hide this problem from you. A developer skims a bloated page, forgives it, and finds the fact eventually. A model has a hard ceiling, and everything past the ceiling might as well never have been written. This is why token-efficient documentation is an [agent traffic](/glossary/agent-traffic) concern and a core part of [agent-readiness](/resources/what-is-agent-readiness): the concept is how much reading an agent must do before it can operate your API; the measurement behind it is what the Discry methodology calls [tokens-to-comprehension](/glossary/tokens-to-comprehension). The scan artifacts behind the Discry Index surface this pattern constantly, and the failure modes are specific enough to edit against. ## How an agent actually consumes your docs The pipeline has three steps, and token weight taxes every one of them. **Fetch.** An agent arrives over plain HTTP, without executing JavaScript, and looks for machine-readable entry points: an llms.txt, an AGENTS.md, an OpenAPI spec. Whatever renders on that plain fetch is what exists, as far as the agent is concerned. **Fit.** The fetched material has to fit into the context window alongside the actual task. The docs are a guest in that window, and the window has other tenants. An agent (or the harness driving it) decides which pages to load, how much of each, and what to drop when the budget runs out. Nothing about that selection process rewards thoroughness; it rewards density. **Answer.** The model works from whatever survived the fit. If your rate-limit rules sat at the bottom of a page that got truncated, the agent doesn't know it's missing them — it answers from what it has, confidently, and the resulting bad request lands as a support ticket that blames your API. Everything in that pipeline happens before a single API call, which is exactly the territory the Discry Score measures: whether an agent can find a usable version of your docs, and whether it can operate your API from what it found. ## What verbosity costs Three distinct failure modes show up in scan artifacts, and they compound. **Truncation.** When the material an agent needs won't fit, something gets cut, and the agent doesn't get to choose wisely — it can't weigh a fact it never read. The monolith is the classic case: [Alpha Vantage](/api/alphavantage) publishes its entire reference as a single page that weighed roughly 780KB at scan time, with no llms.txt and no smaller entry point. An agent that needs one endpoint's parameters must ingest — or truncate — the whole thing. **Wrong-page selection.** Bloat in the index is worse than bloat in the pages, because it corrupts the agent's map. [ClickHouse](/api/clickhouse) passes the llms.txt discovery check — the file exists — but at scan time it was a ~92KB site-wide dump that mixed legal pages, blog newsletters, and campaign links into the same list as the API reference, costing an agent on the order of twenty thousand tokens of link-scanning before the documentation even started. An index like that actively routes agents to the wrong pages; a missing index at least fails honestly. **A higher model tier required.** Routing routine work to lower-cost models is standard industry practice — cost-based routing and model cascades are how production agent fleets control unit economics. Dense, well-organized docs let a small model find and apply the facts it needs. Bloated docs demand a model that can hold more and filter harder, which raises what the Discry methodology measures as the [capability floor](/glossary/capability-floor): the lowest tested model tier that reliably operates your API from its docs, labeled small-model ready, advanced-model required, or frontier required. The argument follows directly: if only frontier models can find the signal in your noise, you are invisible where the volume is. A team whose docs are small-model ready gets chosen by the cheap, high-volume tier of agents; a team whose docs demand frontier attention competes for a much smaller pool. ## What token-efficient looks like in the corpus The APIs that handle this well share a shape: a small, curated entry point that orients the agent fast, with heavier material one deliberate hop away. [Spotify](/api/spotify)'s llms.txt was 668 bytes at scan time — a concise file that links directly to the OpenAPI spec and a building-with-AI tutorial. [Supabase](/api/supabase) ships an llms.txt that delivers structured progressive disclosure in well under two thousand tokens, linking out to per-SDK references. [Cloudflare](/api/cloudflare) layers it: a compact root index linking to per-product llms.txt files, each of which links to a product-scoped llms-full.txt, so an agent only ever pays for the product it came for. The heavier end of the corpus makes the same point from the other direction. [Snowflake](/api/snowflake)'s llms-full.txt weighed about 52MB at scan time, spanning tens of thousands of sections — thorough by any human standard, and past what an agent's budget can practically consume in one pull. Completeness and token weight are different axes; a bundle can score full marks on the first and still fail an agent on the second. Two APIs in the corpus treat the budget itself as a documented interface. [Paddle](/api/paddle) splits its llms.txt into per-section files specifically to stay under truncation limits, alongside an LLM-specific sitemap and markdown twins for its pages. [Payabli](/api/payabli) goes further: its llms-full.txt endpoints accept query parameters to strip the embedded OpenAPI spec or filter SDK examples to a single language, with the response-size tradeoffs documented per endpoint. That is documentation written by a team that understands its reader pays per token. ## Editing moves that cut weight without cutting facts None of these require new tooling. They are editorial decisions, applied to the surfaces agents actually fetch. **Put the answer first.** Open every page and every section with the fact — the endpoint's purpose, the auth scheme, the limit — and let context and narrative follow. Agents (and the retrieval systems feeding them) weight the top of what they load; a page that spends four paragraphs on philosophy before naming the base URL charges the agent four paragraphs of rent for nothing. This mirrors how good docs open for humans, so nothing is lost. **Tables over prose for parameters.** "The `limit` parameter, which is optional, controls the number of results returned per page, up to a maximum of 100, with a default of 25" costs multiples of what a four-column table row costs, and the table is easier to extract facts from mechanically. Parameters, error codes, rate limits, and enum values all belong in tables. Your [OpenAPI spec](/resources/openapi-agent-readable) already holds this material in structured form; the prose docs should match its density, and the spec itself should stay fetchable. **One canonical example, not five variants.** A single copy-pasteable request with realistic values teaches an agent your API's shape. Five near-identical variants teach the same shape five times and charge for each. Keep one canonical example per operation on the main path, and move language-specific variants behind links or filters the way Payabli does — the agent that wants Python should be able to pay for Python alone. **Treat llms-full.txt as a curated bundle, not an export.** [llms-full.txt](/signals/llms-full-txt) exists so an agent can load your core documentation in a single request — which only works if the bundle is curated to what an integration needs: auth, core resources, request shapes, errors, limits. Piping your entire site through an exporter produces the Snowflake problem; leaving the file as a copy of your link index produces a bundle with no content at all, a pattern the corpus also contains. Across the APIs we scan, only 31% publish a working llms-full.txt, against 64% for llms.txt itself — so a tight bundle is still a differentiator, and a bloated one squanders it. **Keep agent surfaces free of marketing and navigation.** The llms.txt failure pattern we see most often is the site-wide dump: every URL on the domain, blog posts and legal pages included. Your agent-facing index should contain your API documentation, grouped by task, one line of description per link — the format the [llms.txt guide](/resources/llms-txt-for-apis) walks through. The same discipline applies inside pages: one API in the corpus expands a glossary tooltip into a full inline definition at every occurrence of common words, so an agent pays a repeated token tax on every page it reads. ## Weigh your docs before an agent does Token weight is measurable in an afternoon, with the same tokenizers agents use. For OpenAI-family models, [tiktoken](https://github.com/openai/tiktoken) tokenizes any text locally: fetch a docs page as it renders on a plain HTTP request (curl, then strip to text), run it through the encoder, and read the count. For Anthropic models, the API exposes a [token-counting endpoint](https://docs.anthropic.com/en/docs/build-with-claude/token-counting) that reports exactly what a prompt costs before you send it. As a rough planning heuristic, a token is on the order of four characters of English text — a 100KB page is in the neighborhood of 25,000 tokens before an agent has done any work with it. Weigh three things: your llms.txt (an agent's first fetch — per the [llmstxt.org](https://llmstxt.org/) spec it should be a curated index, and its weight should reflect that), your llms-full.txt bundle, and the two or three pages an integration cannot avoid — auth, your core resource, errors. Then ask the editorial question: how many of those tokens carry a fact an agent needs, and how many are navigation, repetition, or narrative? The ratio is your editing backlog, and shorter multi-step guides compound the win — an agent sequencing a [multi-step workflow](/resources/documenting-workflows-for-agents) pays the weight of every page in the chain. ## The cheapest fix on the page Token efficiency is unusual among agent-readiness work: it requires no new infrastructure, no protocol adoption, and no engineering sprint. It is editing — the kind your docs likely need for human readers anyway, applied with the knowledge that your fastest-growing readership has a meter running. The teams treating agents as a first-class documentation audience are already structuring for it, and the corpus shows agents reward them for it. What grade does an AI agent give your API? [Discry your API — free](/scan) — 60 seconds, no signup. # Terms for machine clients - Use of every machine surface above, and of the Index Data it returns, is governed by the [API, MCP and Data License Terms](https://index.discry.ai/legal/api-terms) (markdown mirror at https://index.discry.ai/legal/api-terms.md). The Index Data is licensed CC BY 4.0; the Terms state what attribution requires. There is no sign-up or key: sending a request accepts them. # Notes for agents - Slugs are lowercase; unknown slugs 404, not an error object. - Scores carry a rubricVersion/harnessVersion stamp — v1.2 and the current behavioral instrument are different instruments, never mixed or trended together. - The full corpus is scored under the locked behavioral instrument, and band edges are ratified (no longer provisional). Rows without a score are labeled with their reason (docs unreachable, blocked, or insufficient coverage) rather than a fabricated tier. The Index grows continuously as new APIs are scanned under the same locked instrument. - Everything above is generated from the same data and copy that renders the HTML pages — nothing here is hand-duplicated or stale by design (methodology and resource text share source modules with the site; corpus stats are read live).