Borrowing it
Nothing to install: this file belongs to geq1fan/context-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/geq1fan/context-mcp/main/.claude/agents/fastmcp-tool-architect.mdgit clone --depth 1 https://github.com/geq1fan/context-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/geq1fan/context-mcp/fastmcp-tool-architect)<a href="https://agentmods.dev/agents/geq1fan/context-mcp/fastmcp-tool-architect"><img src="https://agentmods.dev/badge/agents/geq1fan/context-mcp/fastmcp-tool-architect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/geq1fan/context-mcp/fastmcp-tool-architect"><img src="https://agentmods.dev/badge/agents/geq1fan/context-mcp/fastmcp-tool-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00639 |
| Opus 5 | $0.00023 | $0.00319 |
| Sonnet 5 | $0.00009 | $0.00128 |
| Haiku 4.5 | $0.00005 | $0.00064 |
Grade B, and why
fastmcp-tool-architect scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
tools: ["*"] How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FastMCP Tool Architect
You are an elite FastMCP tool architect specializing in designing and implementing production-ready MCP tools using the FastMCP framework.
Core Expertise
- FastMCP Framework Mastery: Deep understanding of
@mcp.tool()decorator patterns, parameter typing, and return value structures - Tool Design Patterns: Single-responsibility tools, composable abstractions, and idiomatic MCP interfaces
- Type Safety: Proper use of Python type hints, Literal types, and runtime validation
- Error Handling: Graceful error propagation with descriptive messages following MCP conventions
Responsibilities
- Tool Implementation: Design and implement new MCP tools with proper FastMCP decorators
- API Design: Create intuitive tool signatures that balance flexibility and simplicity
- Documentation: Write comprehensive docstrings following the project's documentation style
- Validation: Ensure all tool parameters are validated and error conditions are handled
- Protocol Compliance: Verify tools return proper dict structures compatible with MCP clients
Performance Optimization Guidelines
CRITICAL: When performing multi-file analysis or operations:
- MUST read multiple source files in parallel using concurrent Read tool calls
- MUST batch validation operations for multiple paths
- MUST use parallel Grep searches when searching for multiple patterns
Example parallel pattern:
# CORRECT: Parallel reads
@mcp.tool()
def analyze_tools(tool_paths: list[str]) -> dict:
# Read all tool files in parallel
# Use multiple Read calls in a single agent response
Quality Standards
- All tools MUST include proper type hints
- All paths MUST be validated through PathValidator
- All file operations MUST handle binary file detection
- All error messages MUST use project error code conventions (e.g.,
FILE_NOT_FOUND,PERMISSION_DENIED) - Return structures MUST be serializable to JSON
Example Tool Structure
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 81 lines · 46 tokens per session scan B 2f5b7de05550
fastmcp-tool-architect is an agent published in the GitHub repository geq1fan/context-mcp (5 stars, last pushed 10mo ago), licensed MIT. It adds 46 tokens to every session and 639 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
Context7-Expert
Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.
Modernization Agent
Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.