Tool count becomes a selection problem
Thirty-two endpoints become thirty-two competing definitions. Tool choice degrades long before the API runs out of routes.
A practical field guide
OpenAPI describes programmer operations. An agent needs a smaller, clearer set of capabilities it can select, explain, and safely execute.
The API-to-MCP translation layer, explained
01 / The mismatch
The model is asked to infer the right task, compose a route chain, hold opaque identifiers, and understand the risk. None of that lives in an endpoint definition.
Thirty-two endpoints become thirty-two competing definitions. Tool choice degrades long before the API runs out of routes.
A customer asks to order dinner; the agent receives POST /cart/items, then a chain of stateful calls.
getOrderTracking says what a programmer can call, not when an agent should reach for it.
Agents need examples, exclusions, guardrails, and a decision boundary in the tool itself.
02 / Tool anatomy
Keep raw API primitives in the system. Publish an agent surface that speaks in tasks, carries a response contract, and has a clear policy boundary.
operationIdgetOrderTrackingparametersorder_id: stringresponsefull_order_payload
tooltrack_and_resolve_orderuse whenCustomer needs order statusreturnsstatus, ETA, next_best_action
Agent context budget / curated surface
The response is the context bill
Responses should help the next decision, not recreate the backend payload inside the conversation.
03 / Publishing strategy
Not every API deserves the same presentation. Pick the serving model from the task shape, operation volume, and risk of getting it wrong.
A small, transparent surface for simple domains.
Best when the API already maps cleanly to agent intent.
Bundle route sequences behind a task-level outcome.
Best when workflow orchestration belongs server-side.
Publish 5–8 governed task tools; compile primitives beneath them.
Best for consequential workflows and a clear evaluation surface.
Search, describe, then invoke curated primitives on demand.
Best for large catalogs that must not tax every turn.
04 / Layer the answer
Put common jobs on the shortest, safest path. Let the unusual work reveal more capability only when it needs it.
Task-level tools such as place_order and track_and_resolve. Testable, reviewable, governable.
Search, describe, and invoke surfaces expose the uncommon catalog without expanding every conversation.
A flat curated mode gives architects a direct view when trust and diagnostics require it.
05 / Build sequence
Actions with consequences, shaped around a result.
Reference data and raw evidence, retrieved deliberately.
Reusable workflows that make the right process visible.
Human confirmation exactly where risk enters the flow.
The operating principle
The difference is task fit, predictable context, and a policy boundary that can be understood by people as well as models.
Back to the model