Agent Wranglers

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

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.