MCP server that loads and serves patient data from eICU dataset via HTTP, supporting both Pandas and Polars DataFrames with filtering, schema inspection, and data retrieval capabilities
This MCP server provides three data analysis tools built on the PandasMCPServerBuilder framework. While the tools are nominally functional for DataFrame operations, they suffer from significant definition quality gaps: weak naming that does not follow verb_noun conventions, vague descriptions that lack context about when/why to use each tool, and critically, no visible input schemas or output schema documentation in the source code. The tools operate on a hardcoded medical dataset loaded at startup, which limits composability and discovery. The descriptions are present but generic (averaging ~80 chars, below the 194 char baseline for A+ tools). No parameter descriptions are visible for the 'value' and 'operator' parameters in filter_rows, violating the requirement that every parameter must have a description. The server uses a custom PandasMCPServerBuilder abstraction that obscures the actual tool registration logic, we cannot verify that schemas are properly declared in the MCP protocol layer.
Filter DataFrame rows by column, operator, and value with support for multiple comparison operators and conditional logic
Retrieve the first N rows of the DataFrame
Retrieve the schema of the DataFrame including column names and data types
Output schemas not documented for any tool. LLMs cannot plan downstream calls or extract correct fields without knowing what get_schema, get_head, and filter_rows return. This violates pattern:tool (Document the output schema) and pattern:response-shaper (Return structured objects).
filter_rows 'operator' parameter should be an enum, not a free-form string. Current approach invites hallucinated operators (e.g., 'LIKE', 'regex') that the tool does not support. Enums are self-documenting and constrain LLM choices.
get_head parameter 'n' lacks bounds. No minimum or maximum specified. LLM could pass n=1000000, causing memory exhaustion or timeout. Numeric parameters must declare ranges (e.g., n: 1 - 1000).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-21 | F | 11 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 49 | - | v1 |
filter_rows 'value' parameter typed as 'any', which is dangerously permissive. Should be union[string, number, boolean, list] to match the supported operators. Current typing invites type confusion.
Tool naming lacks clarity about tool relationships. 'filter_rows' implies it filters a DataFrame, but the descriptions do not explain: is this the only way to filter? How does it relate to get_head and get_schema in a typical workflow? Lack of composition guidance (pattern:tool-chain) forces LLM to infer the proper sequence.
No error handling documentation. What happens if filter_rows is called with a non-existent column? An invalid operator? These should return clear, actionable errors guiding the LLM to self-correct (pattern:recovery-guide).
Tool descriptions are generic and lack LLM-optimized context. Average ~85 chars (below 194 baseline). Descriptions do not answer: What does it do? When should the LLM call it instead of a similar tool? What does it return? This forces LLMs to guess and increases wrong tool selection errors.