An Agent Can't Retrieve What It Can't Read
Before an AI agent can combine API endpoints into a workflow, it has to discover that each one exists, locate it, and interpret its fields. Until recently, most documentation, including ours, wasn't built to be read that way. As Cross River builds infrastructure for agentic finance, that gap matters. Our composable building blocks only work if agents can find them.
How an agent reads documentation
Most documentation is built like a car showroom: a person walks in, looks around and follows the signs. All the menus, tabs, expanding panels and search boxes assume someone is there to click them.
An agent, on the other hand, never walks the floor. It sends one request and reads whatever comes back. What it needs is a spec sheet: a plain, complete description of every part, with exact names and nothing to click.
These two can drift apart more than you'd expect. Most AI crawlers do not execute JavaScript1. So, a page that assembles itself in the browser can reach an agent as an empty showroom—a menu and a footer with nothing in between. While a person sees the page working, the agent potentially concludes the API endpoint isn't documented at all.
When a missing page looks real
A person notices a broken link and goes back. An agent reads whatever the server returns and trusts it.
Many sites answer a request for a page that doesn't exist with "OK" and a screen full of navigation. An agent can read that page, trust it, and cite it, even though it actually contains no real information. In payments, an incorrect assumption carries real cost: a field name that is off by one character causes a failed request, and across every integration an agent builds, small errors compound.
Measuring what an agent receives
A growing number of free scanners grade how well a website serves AI agents, but their results are inconsistent. They vary wildly in scope and criteria, so the same site can score near the top on one and near the bottom on another.
To establish a reliable baseline, we built an internal evaluation tool based on the well-documented community specification, AFDocs. It samples pages from every section of the portal, requests each one as an agent would, and compares the response with what a browser displays to a person.
This is the kind of thing you only find by testing: pages that render perfectly in a browser but reach an agent as just a navigation bar and footer. No content. To a person, the page works. To an agent, it doesn't exist.
We log everything so we can rerun any result, fix what breaks, and verify the fix held. We still use those outside scanners as a sanity check, because each one catches something the others miss.
What agent-ready documentation needs
Agent-ready documentation needs:
- Content in the response itself, rather than assembled in the browser.
- A clean markdown version of every page, available to any agent that requests it. Cloudflare, the global security platform, found that fewer than 4% of sites do this2.
- An accurate “not found” response for pages that do not exist.
- A complete sitemap and a stable link to every section.
- A way for an AI assistant to query the documentation directly through the Model Context Protocol (MCP).
None of this requires rewriting the documentation. It changes how the same pages are served, so that people and agents can both use them. Our developer portal supports each of these capabilities and, as of November 2026, scores between 85-92/100 across on AFDocs, a free, open-source scanner that grades documentation against the public Agent-Friendly Documentation Spec3.
Why composability raises the stakes
Picture an agent setting up a payout for a marketplace seller. It opens an account, funds it by ACH, and sends the payout over RTP. Three API endpoints. Three sets of field definitions. One wrong field stops the whole sequence.
In a world where features are getting cheap, primitives are not. But a primitive an agent can't read is a primitive it can't use.
Gilles Gade, our founder and CEO, often explains that Cross River has spent years building banking infrastructure for exactly these moments. In this one, an agent's first contact with that infrastructure is the documentation. A single read decides whether it can build on us.
Build the showroom for people. Write the spec sheet for agents.
As financial services become increasingly agent-mediated, every layer an agent touches (documentation, APIs, identity, authorization, and payment infrastructure) must be readable by machines as well as people. For partners building on Cross River, that means agents that can find, understand, and combine our APIs into financial workflows without a human guide. Building the infrastructure is only part of the job. Making it readable is what puts it to work.
References
1 Vercel and MERJ, "The rise of the AI crawler", December 2024

