A successful tool call is not the same as a sound boundary
We did not point an agent at a company drive. We asked a narrower question: can a read-only handbook tool make a valid answer, an unknown document, a business refusal and a malformed request visibly different? If all four become fluent prose, the operator has little basis for deciding what the tool actually did. Our entire handbook contained two fictional entries: PUBLIC-SETUP said “Setup window: 48 h. Voltage: 280 V.” and PUBLIC-RETURN contained a return period. Neither is a real product or company policy.
On October 15, 2026, we ran FastMCP 4.1.0 on Windows 11 with Python 3.12.13 in an isolated environment. A local FastMCP client connected to one STDIO server. There was no Codex or Claude session, model API, HTTP endpoint or real file. We recorded the preset method and synthetic tool and published the six-case result table.
What the client actually saw
The tool catalog exposed lookup_doc with one required string argument, doc_id. PUBLIC-SETUP returned only its predefined text. NO-SUCH-ID returned not_found without a document body. PRIVATE-PAYROLL returned denied without a body, but this refusal came from our own explicit example rule. FastMCP did not discover a sensitive file or perform organization-wide authorization. Importantly, the tool result's is_error flag was false for this business refusal. An application that treats “no protocol error” as “approved answer” could misread the outcome.
Omitting doc_id behaved differently: call_tool raised a ToolError about the missing required argument. We also checked that the STDIO child process was running during the session and had exited after disconnect when the transport was configured with keep_alive=False. In the tested version, the default transport can keep a process available between sessions; a caller should not infer shutdown merely from leaving a client context. These are small, concrete observations, not a concurrency or failure-recovery study.
The work a framework cannot remove
The official client guide documents in-memory, STDIO and HTTP paths, while the tool-call guide covers discovery and execution. Decorators and Python type hints make an existing function discoverable quickly. They do not decide which employee may read which handbook section. Our example did not even accept a file path, so it says nothing about traversal, filesystem isolation or identity. Replacing fixed strings with arbitrary file reads would be a different security design and a different acceptance test.
A non-coder can write three questions the tool must answer and two it must refuse, then ask a developer or Codex/Claude to build a local read-only mock using the public example. Review the advertised schema and raw tool responses, not just the agent's final wording. Before connecting real documents, specify an allowlist, user identity, per-document rights and what logs may retain. Before exposing HTTP, follow FastMCP's authentication guidance. Its documentation distinguishes HTTP authentication from STDIO's inherited local execution boundary; an HTTP endpoint with default auth settings is not automatically protected.
When to choose it, and when not to
FastMCP fits a Python team that needs to define and iterate an MCP tool contract around existing functions. It is not an enterprise permission system in a box. The official Python SDK is an alternative if closer control over protocol APIs is useful; a TypeScript-heavy team can consider the official TypeScript SDK. We did not run these alternatives on the same task and cannot rank their latency, security, or code size.
The Apache-2.0 code license permits commercial use and modification under its conditions, including applicable license and notice retention. It does not grant permission to expose a customer's records or make a hosted service free. The capability ceiling established here is local STDIO tool discovery, calling and selected negative cases. Remote deployment, OAuth, real-user authorization, production isolation and model-side tool selection remain untested.