all answers

Frameworks and tooling

MCP tool reliability

The Model Context Protocol (MCP) is a standard way to give a model tools that live in a separate process or service. The agent connects to an MCP server, asks what tools it offers, and calls them. What this changes for reliability is ownership: the tools your agent depends on are now someone else's deployment, updated on someone else's schedule.

Four things go wrong because of that.

Errors come back in two shapes, and servers mix them up. A tool that ran and failed is supposed to return a normal result marked as an error, with the reason in the content, so the model can read it and try something else. A protocol problem, like an unknown tool or a malformed request, comes back as a protocol error the model never sees. When a server reports a tool failure as a protocol error, the agent has no way to recover from it.

Tool definitions change under you. Clients cache the list of tools, a server is supposed to announce when its tools change, and a client that misses that announcement builds arguments for a tool that no longer looks like that.

Slow servers become agents that never return. Every request needs a timeout, and the timeout has to hold even while the server keeps sending progress updates.

Cancellation differs by transport. Over HTTP, closing the stream is the cancel. Over stdio, it's an explicit message, and both sides have to cope with a response that arrives after the cancel anyway.

Evaluating an MCP server means testing each of these on purpose: return a failed tool result, change a schema mid-session, stall a response, cancel a call, and check what the agent does.

18 questions

Answered, plainly.

Should an MCP tool failure be a protocol error or a failed result?A tool that ran and failed should return isError: true so the model sees the reason; a protocol error is only for a request the server never attempted.answer →What happens when an MCP server changes its tool schema?A "stale catalog" error means the client cached tool schemas from an old tools/list call; the tool keeps getting called against the old version until it refreshes.answer →How do I set a timeout on an MCP tool call?Set a per-request timeout in your client SDK and cancel on expiry; the spec lets a progress notification reset the clock, but a hard maximum should still apply.answer →How do I cancel an in-flight MCP tool call?Send a notifications/cancelled message naming the request id; the server stops and skips a response, but a reply can still arrive if it crosses the cancel.answer →How do I evaluate an MCP server's reliability?Test the four ways an MCP server fails on purpose: a failed tool result, a schema that changes mid-session, a stalled response, and a cancel, each checked.answer →What's the difference between MCP and A2A?MCP connects an agent to tools that run in someone else's deployment; A2A connects one agent to another so they can delegate a task, and both usually run together.answer →What's the difference between MCP and Claude Skills?MCP gives Claude access to external tools and data; Skills teach it how to use what it has, loading procedural instructions only when a task calls for them.answer →What's the difference between MCP and a plain API call?Both fetch data or trigger an action. A direct API call uses a contract written into your code; MCP gets a tool schema from a server at runtime.answer →What's the difference between MCP and RAG?RAG retrieves material for an answer; MCP is how an agent discovers and calls a tool. A retriever can use MCP, but neither term decides who runs it.answer →What's the difference between MCP and LangChain?MCP is an open protocol for exposing tools to any compatible client; LangChain is an orchestration library that, since v1.4, ships a built-in client for consuming MCP servers.answer →Why does an agent call the wrong MCP tool even when the server passes the spec?Spec compliance doesn't cover tool descriptions. A scan of 36 MCP servers found most low scorers shipped parameters with no description at all, and models mis-picked tools.answer →What happens to an in-flight MCP tool call if the connection drops?Under the 2026-07-28 spec, nothing resumes: the request is lost, and the client must re-issue it as a brand-new request with a new id.answer →Can hidden ANSI escape codes fool a human reviewer but not the model?Yes. An MCP server can relay ANSI control codes that make text invisible or clear the screen; a human sees a clean result, the model reads every byte.answer →How should an agent handle errors from an MCP server?Pass isError results to the model. Retry -32022 with a version the server lists, add the capabilities -32021 names, and otherwise fix the request or stop.answer →Is my MCP server accepting tokens meant for another service?It is if it checks a token's signature but not its audience. Per October 5, 2026 advisories, the MCP Python and TypeScript SDKs couldn't check it, and the fix ships switched off.answer →What changed in the latest version of the MCP spec?The latest MCP update, as of October 2026, is the 2026-07-28 spec: the protocol is now stateless, with no initialize handshake or session id and per-request versions.answer →What is the Model Context Protocol?MCP is an open standard for connecting AI apps to outside tools and data over JSON-RPC 2.0. Anthropic created it; the Linux Foundation's Agentic AI Foundation holds it.answer →What are the error codes in the Model Context Protocol?MCP uses JSON-RPC's five standard error codes, -32700, -32600, -32601, -32602, and -32603, plus three of its own in the 2026-07-28 spec: -32020, -32021, -32022.answer →

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card