TL;DR: No. An API has endpoints for every operation a program might need, including pagination, internal ids and administrative actions; a model choosing among them makes more mistakes and pays for every definition on every turn. Design tools around the decisions an agent makes: merge endpoints that serve one decision, hide plumbing (pagination, auth, id lookups) inside the server, return trimmed results, leave out what agents must never do, and make writes idempotent with clear preconditions. Generating from the OpenAPI description is a fine first draft, not the product.
How to approach it
Explain why the mapping fails, then show the transformation on a concrete API, and finish with how you would check the result.
A strong answer
Why one-per-endpoint fails. A typical internal orders API has forty endpoints: list, get, search by six fields, update eleven attributes, cancel, refund, admin overrides, exports, health. Generated one-to-one, the model sees forty tools with names like get_v2_orders_by_id_lines, many overlapping, several dangerous, all costing tokens.
Design for decisions.
ENDPOINTS = ["GET /orders", "GET /orders/{id}", "GET /orders/{id}/lines",
"GET /orders/search/email", "GET /orders/search/phone",
"GET /orders/search/date",
"PATCH /orders/{id}/address", "PATCH /orders/{id}/notes",
"POST /orders/{id}/cancel", "POST /orders/{id}/refunds",
"POST /admin/orders/{id}/override", "GET /admin/orders/export"]
TOOLS = {
"orders_find": ["GET /orders", "GET /orders/search/email",
"GET /orders/search/phone", "GET /orders/search/date"],
"orders_get": ["GET /orders/{id}", "GET /orders/{id}/lines"],
"orders_update_address": ["PATCH /orders/{id}/address"],
"orders_cancel": ["POST /orders/{id}/cancel"],
"refunds_create": ["POST /orders/{id}/refunds"],
}
EXCLUDED = ["PATCH /orders/{id}/notes", "POST /admin/orders/{id}/override",
"GET /admin/orders/export"]
covered = {e for es in TOOLS.values() for e in es} | set(EXCLUDED)
print(len(ENDPOINTS), len(TOOLS), covered == set(ENDPOINTS)) # => 12 5 True
Twelve endpoints become five tools, and every endpoint is accounted for: either inside a tool or deliberately excluded. Four search endpoints become one orders_find with optional filters; order and lines merge into one orders_get that returns what an agent needs; admin overrides and exports are not exposed at all.
Inside each tool.
- Pagination, retries and id resolution happen in the server; the model passes an email, not an internal customer id.
- Results are trimmed to what the next decision needs, with a pointer to more.
- Writes take an idempotency key (or the server derives one) and fail with clear precondition messages ("order already shipped; use returns").
- Descriptions say when to use the tool and when to use its neighbour.
- Authorization uses the calling user's identity on every call.
Check it. Build a labelled set of realistic requests, measure tool-selection accuracy and task success for the generated and curated surfaces, and compare tokens per turn.
What interviewers probe next
"Generated tools keep up with the API automatically; curated ones drift." Keep the curated mapping in code next to the API, with tests that fail when an endpoint a tool uses changes, and a review when new endpoints appear.
"A power user wants the admin override through the agent." That is a separate tool for a separate role, behind approval, visible only to agents acting for users with that role.
"Should every tool have its own MCP server?" No; group by domain and owner. A server per domain with a handful of tools is easier to operate and to project.
What if?
What if · interview follow-ups
Hold your answer as the constraints change
You curated a 40-endpoint API into eight MCP tools.
Start here
What if agents keep needing a field your trimmed result leaves out?
What do traces show?
Repeated follow-up calls for the same field show the projection is too tight. Add the field, or a detail flag, based on trace evidence rather than adding everything back.
Carry it forwardLet traces tune result shapes.
Weak answerReturning the full API object again.
Constraint changes
What if two of your eight tools are still confused with each other?
Merge or separate?
If they serve one decision, merge; if not, make names, descriptions and arguments diverge, and measure confusion on a labelled set before and after.
Carry it forwardMeasure tool confusion like any other error.
Weak answerAdding examples to the system prompt and hoping.
Constraint changes
What if the API adds a bulk-cancel endpoint?
Should the agent get it?
Default excluded. Bulk irreversible actions need a separate design: limits, approval, and probably a person. Add it deliberately if a use case justifies it.
Carry it forwardNew endpoints are excluded until designed as tools.
Weak answerRegenerating tools and picking it up automatically.
Now defend it
One-line answer?
Map tools to agent decisions, not endpoints: merge, hide plumbing, trim results, exclude what agents must not do, make writes idempotent, and measure selection accuracy and tokens against the generated version.
How it's scored
Weak: Generates one tool per endpoint from the OpenAPI file.
Hire: Merges related endpoints, hides pagination and excludes admin operations.
Strong Hire: Designs around decisions with every endpoint accounted for, puts plumbing, trimming, idempotency and per-user authorization in the server, writes descriptions that separate neighbours, keeps the mapping tested against the API, treats new endpoints as excluded by default, and measures selection accuracy and tokens.
Common mistakes
- One tool per endpoint, including admin routes.
- Exposing internal ids and pagination to the model.
- Returning full API objects.
- Auto-regenerating tools so new endpoints appear without review.