AI Agents & MCP

AI agent tools vs MCP: which one should you build?

A tool definition is what the model sees. MCP is a protocol for delivering those definitions from a separate process. Here is when each shape is worth the trouble.

On this page
  1. What a tool definition is, underneath
  2. What MCP adds on top
  3. When hand written tools are still the right answer
  4. When MCP earns its keep
  5. Email testing wants both shapes
  6. Where InboxDome is the wrong choice
  7. Deciding in one pass

AI agent tools vs MCP is not a fight between two competing technologies. A tool definition is what the model actually sees: a name, a description, and a JSON Schema for the arguments. MCP is a protocol for delivering those definitions from a separate process that you did not have to write. So the real question is ownership. Hand written tools win when one application owns the agent. MCP wins when several clients need the same capability and none of them should have to ship code to get it.

What a tool definition is, underneath

Every tool your agent can call reduces to three fields. Anthropic’s Messages API takes a tools array where each entry carries name, description and input_schema. The model replies with a tool_use block, your code runs the function, and you send a tool_result back. Other vendors use different field names for the same three parts.

{
  "name": "get_weather",
  "description": "Get the current weather for a given location.",
  "input_schema": {
    "type": "object",
    "properties": { "location": { "type": "string" } },
    "required": ["location"]
  }
}

That is the whole contract. The description is what the model reads when deciding whether to call the tool, which is why a vague one breaks more agents than a bug in the handler.

What MCP adds on top

MCP does not replace that contract, it standardises the delivery. The specification defines a JSON-RPC 2.0 exchange between three roles: a host, which is the AI application; a client, which is one connection inside that host; and a server, which is the thing exposing the capability. Servers can expose tools, resources and prompts. The client calls tools/list to learn what exists and tools/call to run one. Transport is stdio for a local process or Streamable HTTP for a remote one.

The model still sees a name, a description and a schema. What changed is that you did not write them, they can change while the session is open, and any MCP client can consume them. Claude Code, Claude Desktop and VS Code are all hosts in exactly the same sense. For the connection sequence in detail, see how the MCP handshake actually works.

When hand written tools are still the right answer

Reach for a plain tool definition when:

  • One application owns the agent. If the agent and the tools deploy together, a protocol between them is an extra process for nothing.
  • The tool is already a function you maintain. Wrapping an internal function in a schema is a few lines. Wrapping it in a server is a service to run and authenticate.
  • The schema has to be exact. Strict schema options live on the tool definition, and you own every field of it.
  • You are counting context. Every tool description is sent with the request. A connected server with twenty tools you never call is paying rent on every turn.
  • You want one failure mode. No transport, no auth header, no capability negotiation. When something breaks, it is your function.

When MCP earns its keep

The AI agent tools vs MCP decision flips as soon as more than one consumer appears:

  • Several clients, one capability. Build it once and use it from a terminal agent, an editor, and whatever your team adopts next, with no rewrite per client.
  • Somebody else maintains it. A vendor run server tracks its own API changes instead of you discovering them from a failing test.
  • The tool list is not fixed. Servers can announce that their tools changed and clients refresh the list, which a hard coded array in your repo cannot do.
  • The user is not going to ship code. Adding a line to a config file is a different job from opening a pull request.

The cost is real. You have added a hop, an auth header, and a process that can be down, and a broken connection usually shows up as the agent quietly not using the tool rather than as an error. Common enough to have its own post: when Claude cannot see your MCP tools.

Email testing wants both shapes

Email is a clean example, because the capability genuinely belongs in both places.

InboxDome exposes a REST API and a hosted MCP server. The server carries seven tools: create_inbox, wait_for_email, list_messages, get_message, run_assertions, delete_inbox and list_domains. Connecting it is one line, per the MCP setup guide:

claude mcp add --transport http inboxdome https://inboxdome.com/mcp \
  --header "Authorization: Bearer idk_live_..."

Which one you want depends on who is driving. In a Playwright or CI suite, the test code is the agent, and the Email Testing API is the better fit: deterministic, model independent, and loud when it fails. When a coding agent is building the signup flow in your editor, the MCP server is better, because it can create an address, wait for the OTP and assert on the message without you writing a harness first. Same account, same free tier of 100 inbox tests a month. What the seven MCP email tools return covers each one, and choosing an email MCP server compares the field.

Where InboxDome is the wrong choice

Plainly:

  • You need to capture what your own app sends. InboxDome addresses are receive only. Mailtrap Email Sandbox captures SMTP traffic from staging and development environments, and Ethereal Email is a fake SMTP service where, in its own words, messages never get delivered. Point your app at one of those instead; check their pages for limits and plans.
  • Your build has no outbound internet. A hosted inbox needs the public internet in both directions. A local SMTP sink does not.
  • You need a mailbox that lasts. A consumer inbox holds mail for 24 hours by default, extendable to at most 7 days, then it is destroyed.
  • You want spam scoring or rendering previews. Mailtrap advertises spam score checks and HTML validation; InboxDome asserts on content, OTPs, links and SPF, DKIM and DMARC results, which is a different job.

Deciding in one pass

Run the AI agent tools vs MCP question through three checks, in order. How many clients will call this capability? If the answer is one, and it will stay one, write the tool definition and stop. Who fixes it when the upstream API changes? If that is not your team, a maintained server is worth the hop. And is a model in the loop at all? CI does not need one to press the buttons, so a plain API is usually right there, while an interactive coding agent gets more out of a server it can discover on its own.

Most real projects land on both: one set of credentials, one path for the tests, one path for the agent.

Disclosure: InboxDome publishes this blog and makes the products it mentions. We describe what they do rather than promise results.

Key takeaways

  • A tool definition is three fields: a name, a description and a JSON Schema. MCP does not change that, it changes who ships them.
  • Hand written tools win when one application owns the agent, when context tokens matter, and when you want exactly one failure mode.
  • MCP wins when several clients need the same capability, when a vendor maintains it, or when the tool list changes at runtime.
  • InboxDome ships both shapes: a REST API for CI suites and a hosted MCP server with seven tools for coding agents.
  • InboxDome is receive only, so if you need to capture what your own app sends, an SMTP sink such as Mailtrap or Ethereal is the right tool.

Sources

  1. Model Context Protocol specification — Defines MCP as a JSON-RPC 2.0 protocol between hosts, clients and servers.
  2. MCP architecture overview — Covers tools/list discovery, tools/call execution, and the stdio and Streamable HTTP transports.
  3. Anthropic docs on tool use with Claude — Shows a tool defined by name, description and input_schema in the Messages API.
  4. Mailtrap Email Sandbox — Vendor page for the SMTP capture product named below.

Links last checked September 12, 2026.

Frequently asked questions

Is MCP just function calling with extra steps?

Partly, and that is not an insult. The model still receives a name, a description and a JSON Schema either way. MCP standardises where those come from, so one server can serve many clients and change its tool list without anyone redeploying. If only one application will ever call the tool, the extra steps buy you nothing.

Can I use hand written tools and MCP in the same project?

Yes, and most teams end up there. A CI suite calls a REST API directly because tests should be deterministic and model independent, while the coding agent in the editor reaches the same account over MCP. Same key, same limits, two entry points.

Does adding an MCP server slow the agent down?

It adds a network hop and it adds tokens. Every tool a server exposes is described to the model, so a large tool surface costs context on every turn even when the agent calls nothing. Connect the servers you actually use.

What happens when an MCP server is unreachable?

Usually the tools stop appearing and the agent improvises instead of failing loudly, which is why a silently missing capability is the classic symptom rather than an error message. Check the client tool list first, then the auth header.

InboxDome TeamEmail infrastructure builders

The InboxDome team runs the temporary-email service and email-testing API this blog belongs to. We write about disposable inboxes, email privacy and testing transactional email, based on operating the infrastructure ourselves.