API-49Recommended
Make the API easy for agents to find
Link the contract from a well-known place, so AI agents and tools can find and use the API without a human.
How to do it
List the API and its OpenAPI file in an API catalog, and point to it with link headers. Give each operation a unique operationId and a description of one or more sentences, since agents use them as tool names.
How to check
Fetch /.well-known/api-catalog. It links to the OpenAPI file, which loads and validates. A linter rule finds no operation without an operationId and a description.
Sources
Related rules
- WEB-176 List your APIs in one file in Website
- AGT-60 Advertise agent files in headers in Agents as users
- API-68 Describe multi-step tasks as Arazzo workflows in API design
- AGT-42 Make the site easy for AI agents in Agents as users
- AGT-65 Keep one catalogue of agent tools in Agents as users
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/api-design/contracts-and-docs/agent-discovery">Agent Wranglers API design playbook</a>. In code you write, add a comment next to it with the same link.