Structured benchmark suite comparing MCP server implementations (Gradio and FastMCP) under identical workloads across HTTP/REST API and MCP protocol transports.
This is a benchmark suite with 5 tools, all clearly defined with schemas and descriptions. However, the quality gaps are significant. All tools have descriptions (good), but most are under 100 characters and lack key context about when/why to use them. Parameter schemas are present and typed (critical), but descriptions are minimal or missing for some parameters. Output schemas are documented in docstrings but not formally in the tool registration. Error handling is absent, tools do not guide recovery or explain constraints. Tool names are verb-driven and clear (echo, fibonacci, json_transform, async_sleep, payload_echo), which is a strength. The server is designed for benchmarking, not production agent use, which explains the sparse descriptions, but by rubric standards, this is still a deficit. Average per-tool score: 68/100.
Simulate an async I/O operation (e.g., database query, API call). Tests the framework's ability to handle concurrent async operations without blocking the event loop.
Echo a message back. Measures raw framework overhead.
Calculate the nth Fibonacci number recursively. CPU-bound workload.
Transform JSON data — uppercase all string values, sum all numeric values. Tests JSON parsing, traversal, and serialization overhead.
Echo a large payload back. Tests throughput with varying payload sizes.
Tool descriptions are too brief (10 - 70 characters) and lack context on when to use them or what constraints apply. Rubric baseline: 10 - 1024 chars, typical A+ tool: 50 - 200 chars with WHAT/WHEN/HOW detail. Current examples: 'Echo a message back. Measures raw framework overhead.' (62 chars, no context on use case or constraints); 'Calculate the nth Fibonacci number recursively. CPU-bound workload.' (69 chars, mentions 'CPU-bound' but does not say 'pass n ∈ [0, 35] to avoid timeout').
Parameter descriptions are missing or minimal. Rubric requires: 'Every input parameter needs a description explaining what it controls.' Examples: echo tool accepts 'message' with description 'The message string to echo back.' (28 chars, barely adequate); fibonacci 'n' has 'Position in the Fibonacci sequence (0-35).' (41 chars, lacks guidance on computational cost); json_transform 'data' says 'A JSON-serializable dictionary to transform.' (47 chars, does not mention nesting depth limits or expected structure); async_sleep 'duration_ms' says 'How long to sleep in milliseconds (0-5000).' (43 chars, lacks info on resolution/granularity); payload_echo 'payload' says 'A string payload of arbitrary size.' (35 chars, does not warn about size limits or memory implications).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 51 | 2025-03-26+ | v1 |
No input validation or error handling in tool definitions. Rubric: 'Error responses must tell the LLM what to do next' and 'Include the invalid value and the constraint it violated.' Current tools do no validation, they assume valid input. fibonacci silently clamps n to [0, 35] but does not document this; async_sleep accepts 0 - 5000 ms but has no bounds checking in the tool definition itself (clamping happens in shared_tools.py, invisible to the LLM); json_transform has no depth limit or size check documented; payload_echo has no size limit documented. An LLM might pass n=999 to fibonacci and receive clamped output without knowing why.
Output schemas are documented only in docstrings (shared_tools.py), not exposed in tool registration. Rubric: 'Document the output schema. LLMs need to know what fields to expect so they can plan downstream tool calls and extract the right data.' The fastmcp_server.py file decorates tools with @mcp.tool() but does not include explicit output schema metadata. An LLM consuming this server cannot see that echo returns {'message', 'timestamp_ns'}, fibonacci returns {'n', 'result', 'compute_time_ns'}, etc. This is a critical gap for chaining tools.
Tool names could be more specific per composition patterns. 'json_transform' is vague, does it validate, filter, enrich, or reshape? More specific names like 'json_uppercase_and_sum' or 'json_transform_strings_sum_numbers' would clarify intent. Similarly, 'payload_echo' says 'echo' but does not hint at the purpose (throughput testing); 'echo_with_size_metrics' would be clearer.
No pagination or batching support documented. json_transform accepts a single 'data' object; payload_echo accepts a single 'payload' string. If an agent needs to transform multiple JSON objects or echo multiple payloads, it must call the tool N times. Rubric: 'Offer batch variants for tools agents call in loops.' This is acceptable for a benchmark suite but would be a gap in production tooling.