Responses API
The model calls Routeur directly; no tool code of your own.Python
allowed_tools is worth setting: Routeur exposes a tool per endpoint as well, and a short list keeps the model on the five that answer questions.
Agents SDK
Python
cache_tools_list=True avoids listing the tools on every turn. Listing is free; the calls are what count against your key.
ChatGPT connectors
In ChatGPT, add a custom connector under Settings → Connectors → Add, with the URLhttps://api.routeur.app/mcp. Where the connector form asks how to authenticate, choose a custom header and send Authorization: Bearer <your key>.
Connector support for header-authenticated MCP servers varies by plan and keeps changing; if your account only offers OAuth connectors, use the Responses API or the Agents SDK above, or
mcp-remote locally. Routeur’s server authenticates with API keys today — see what OAuth would be for.Cost control
find_opportunities reads up to four endpoints and market_snapshot five, so each such call spends that many requests from your key’s quota. Give an agent a budget in its instructions (“at most three Routeur calls per answer”), and prefer search_markets then one market_snapshot over sweeping every category.