Having an API endpoint doesn't automatically mean an AI application needs a corresponding MCP tool.
Exposing too many similar operations can make tool selection more complicated, increase the information presented to the model, and introduce unnecessary complexity into an integration.
Instead of focusing on how many endpoints an API has, developers should think about what the AI application actually needs to accomplish.
Let's have a look at a better approach to MCP tool design.
1. Why One-to-One Endpoint Mapping Can Be a Problem
Imagine an e-commerce application with the following REST endpoints:
GET /orders/{order_id} GET /orders/{order_id}/items GET /orders/{order_id}/status GET /orders/{order_id}/delivery POST /orders/{order_id}/cancel POST /orders/{order_id}/refund A developer could expose each endpoint as a separate MCP tool.
The resulting tool catalogue might contain:
get_orderget_order_itemsget_order_statusget_order_deliverycancel_orderrefund_order
Each tool has a specific purpose, so this approach isn't inherently wrong.
However, consider what will happen when a customer asks:
"Can you help check whether my order has been shipped and tell me when it will arrive?"
The AI application may need to identify and invoke multiple tools to retrieve the order status and delivery information.
Depending on the implementation, that could introduce additional tool calls and require the model to coordinate their results.
As the number of available operations grows, the tool catalogue can become harder to navigate.
But the problem isn't necessarily the number of tools alone. It's whether those tools are designed around meaningful tasks and whether their descriptions make their purposes clear.
2. Design Tools Around User Intent
A more intentional approach is to consider what users actually want to accomplish.
Still using the e-commerce example, customers are unlikely to think in terms of HTTP methods or database operations.
They ask questions such as:
- Where is my order?
- What items did I purchase?
- Has my order been shipped?
- Can I cancel my order?
These are user intentions, not API endpoint names.
An MCP server could expose a task-oriented tool such as:
get_order_summary
Instead of asking the AI application to coordinate several narrowly scoped retrieval operations, this tool could retrieve the relevant order details through the existing backend services.
Example:
{ "order_id": 1024, "status": "shipped", "items": [ "Wireless headphones", "USB-C cable" ], "estimated_delivery": "2026-11-21" } The AI application can then use the returned information to answer the customer's question.
This doesn't mean every operation should be combined into one large tool.
A tool should have a clear responsibility and a predictable result. Combining unrelated operations into an overly broad tool can create a different set of problems.
3. Keep the Tool Catalogue Focused
An MCP server exposes available tools through the tools/list operation, and each tool has a name, description, and input schema.
This information helps an MCP client understand which tools are available and what information they require.
Example:
{ "name": "process_order", "description": "Processes an order." } What does processing mean here?
Does the tool retrieve an order, update its status, cancel it, or issue a refund? It's not clear
The description doesn't provide enough context.
Example:
{ "name": "get_order_summary", "description": "Retrieves an order's current status, purchased items, and estimated delivery information. Use this tool when a customer asks for an overview or update on an existing order." } Comparing the two examples, this gives the model a clearer understanding of the tool's purpose and when it should be used.
A useful tool definition should communicate:
- What the tool does.
- When the AI application should use it.
- What inputs it requires.
- What information it returns.
- Any important limitations or conditions.
Clear descriptions and well-defined input schemas make tools easier to understand and use.
4. Separate Read Operations from Write Operations
Not every tool carries the same level of risk.
Retrieving an order summary is different from cancelling an order or issuing a refund. A read-only operation retrieves information without changing the application state.
A write operation can create, update, or delete information. This difference influences how MCP tools are designed and exposed.
Example:
| Read operations | Write operations |
|---|---|
| Retrieve order details | Cancel an order |
| Check delivery status | Update delivery details |
| View purchased items | Issue a refund |
Developers should apply the principle of least privilege by exposing only the operations required for the intended use case.
MCP tool annotations can provide hints about a tool's behaviour, including whether an operation is read-only or potentially destructive. Actual permissions and safeguards must be implemented by the application and backend.
The AI application should not receive unrestricted access simply because the underlying REST API supports the operation.
5. Don't Confuse Fewer Tools with Better Tools
There is a big difference between reducing unnecessary tools and combining everything into one.
Example:
-
get_order_summary: Retrieves relevant order information. -
cancel_order: Requests cancellation of an eligible order. -
request_refund: Initiates a refund request subject to the required checks.
These tools are easier to describe, reason about, and secure.
The goal isn't to have the fewest tools possible. It's to expose the right tools for the job.
A Practical Framework for Designing MCP Tools
Before exposing an existing API operation through MCP, ask a few questions:
1. What user problem does this tool solve?
Start with the task the AI application needs to accomplish instead of the HTTP endpoint you want to expose.
2. Does this operation need to be a separate tool?
Consider whether it represents a distinct capability or whether it can be incorporated into a related, well-defined operation.
3. Are the inputs and outputs clear?
Use meaningful parameter names, appropriate data types, and descriptions that explain what the tool expects.
4. What permissions does it require?
Differentiate read-only operations from actions that modify data or affect external systems.
5. Can the tool be tested independently?
Test expected inputs, invalid arguments, error conditions, permissions, and side effects before making the tool available to an AI application.
These questions help prevent an MCP server from becoming a simple collection of API wrappers without a clear integration strategy.
What Should Backend Developers Take Away?
Building an MCP server is not just about exposing existing REST endpoints to an AI application.
It requires developers to think about how AI applications discover, understand, and use backend capabilities.
OpenAPI can describe the existing HTTP API, but that description doesn't automatically determine which operations should become MCP tools.
The design decision still requires an understanding of user intent, tool responsibilities, input schemas, permissions, and expected behaviour.
A well-designed MCP integration doesn't have to expose every operation available in the backend.
Further Reading
- MCP Documentation — Tools
- MCP Specification — Server Tools
- Writing Effective Tools for AI Agents — Anthropic
- AWS Prescriptive Guidance — MCP Tool Strategy
What do you think?
When designing an MCP server around an existing REST API, would you expose individual endpoints as tools or create task-oriented tools around what the AI application needs to accomplish? Share your thoughts in the comments.
