ASP.NET Core MCP Server with SSE and Stdio transport support for exposing tools via Model Context Protocol
This MCP server exhibits severe quality issues across all dimensions. Only 2 tools are defined, both identical (GetCurrentTime), and they lack critical schema information, proper parameter documentation, and comprehensive error handling. The server uses a framework (ModelContextProtocol.AspNetCore) that partially abstracts tool definition through attributes, but the source code reveals fundamental gaps in how tools are specified. The duplicate tool entry suggests either a configuration error or incomplete implementation. Parameter descriptions are present but minimal (4-5 words). No input schema is explicitly visible in the provided code, only string type inference from method signature. Output is unstructured free-text. Tool annotations, error classification, and recovery guidance are entirely absent.
Get the current time for a city
Get the current time for a city
Duplicate tool definition: Two identical GetCurrentTime tools are registered. This violates the composition principle (pattern:tool) that each tool should have a unique, well-scoped purpose. Duplication wastes LLM reasoning and creates ambiguity about which to invoke.
No explicit input schema visible in code. Tool definition uses attribute-based registration (@McpServerTool) with only a string parameter 'city' inferred from method signature. No JSON Schema with type declarations, constraints (enums, min/max), or format specifications is evident.
Minimal parameter documentation. The 'city' parameter has a 4-word description: 'The city name to get current time for'. This falls short of the LLM-optimized baseline (72 chars average). No guidance on valid values (geographic constraint, format, example options), whether lookup is case-sensitive, or fallback behavior if city is not found.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 17 | - | v1 |
Tool description is generic and lacks context. 'Get the current time for a city' (45 chars) is functional but does not explain WHEN to use this tool instead of alternatives, what format the time is returned in (24-hour? 12-hour?), timezone assumptions, or whether the city lookup is by name or code. LLM-optimized descriptions should be 50-200 chars and answer 'What does it do? When to use it? What does it return?'
No output schema or structure documented. The implementation returns a hardcoded string: 'It is {hour}:{minute} in {city}.' This is unstructured free-text. No schema tells the LLM what fields to expect (time, timezone, city_confirmed, etc.), which breaks downstream tool chaining. LLMs need to know what fields to expect so they can plan downstream tool calls.'
No error handling or recovery guidance. Implementation provides no validation of the 'city' parameter, no check for invalid/unknown cities, no timeout handling, and no error response that tells the LLM what to do if a city is not recognized. Try list_available_cities() first."'
No tool annotations for safety and idempotency. The ReadOnly risk hint is declared in metadata, but the tool lacks explicit schema-level annotations (readOnlyHint, destructiveHint, idempotentHint) that conform to the current MCP spec (2026-07-28). Per spec alignment: 'Reward when present: tool annotations (readOnlyHint/destructiveHint/idempotentHint)'.
Missing pagination support (not applicable here, but indicates incomplete tooling). Tools that might return variable-length results should support limit and offset. This tool returns a scalar, but the framework shows no guidance for multi-item tools to include pagination.