A basic MCP server with math tools
Simple, well-structured server with 2 tools. Both tools have clear descriptions and properly typed input schemas. Naming follows verb_noun convention (add, random_number). Descriptions are concise and action-oriented. However, the server lacks output schema documentation, error handling guidance, parameter validation details, and composition complexity. No tool annotations, no pagination support, and missing recovery guidance for error cases. Parameter descriptions are adequate but could be more explicit about constraints (e.g., exact ranges for random_number min/max). The resource endpoint is present but not a tool. Overall, this is a straightforward utility server that meets basic definition requirements but lacks production-grade polish for complex agent interactions.
Add two numbers together.
Generate a random number between min_val and max_val.
Missing output schema documentation. Tools return integers but LLMs have no formal declaration of return types. This prevents structured downstream composition and forces LLMs to infer output structure.
No error handling or recovery guidance. Tools assume valid input but don't document what happens on invalid bounds, out-of-range values, or edge cases. Error responses should guide LLMs toward recovery.
random_number parameter descriptions lack explicit constraint documentation. Min/max default values are stated but no validation ranges, inclusive/exclusive semantics, or invalid value guidance provided.
Missing tool annotations (readOnlyHint, destructiveHint, idempotentHint). Both tools are READ_ONLY but no annotations in the schema signal this to clients. Agents cannot infer side-effect profiles.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 63 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 51 | - | v1 |
Tool naming 'random_number' uses snake_case but lacks a clear verb prefix. Pattern guidance suggests verb_noun (e.g., 'generate_random_number'). Current name is acceptable but less discoverable for LLM intent inference.