Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
This server has 28 tools with READ_ONLY risk classification, but suffers from critical gaps in schema completeness, parameter descriptions, and output documentation. While tool names follow verb_noun conventions (good), the input schemas visible in the spec are minimal, most show only 1-2 parameters with type and description, but no output schemas are documented anywhere. The server is STDIO-only, which is a hard transport cap of 50. Descriptions exist but are brief (10-30 chars typical) and lack actionable context for LLM tool selection. No error handling guidance, no permission gates, no audit trails visible. Parameter schemas are present but terse. The composition is reasonable (28 focused domain-specific tools), but the implementation quality falls well below production baselines. This is a typical community tool with domain coverage but poor LLM-facing metadata.
No output schemas documented for any tool. LLMs cannot infer what fields to expect in responses, preventing chaining and forcing speculative downstream calls.
Add comprehensive output schemas for every tool. Example for get_bus_routes: '{"type": "object", "properties": {"routes": {"type": "array", "items": {"type": "object", "properties": {"route_id": {"type": "string"}, "route_name": {"type": "string"}, "operator": {"type": "string"}}}, "total_count": {"type": "integer"}, "page": {"type": "integer"}}}'. This enables LLMs to chain tools and extract relevant data.
Expand tool descriptions to 50-200 characters with WHEN/WHY context. E.g. 'get_bus_routes': 'Retrieve available bus routes in New Taipei City. Use this to find route numbers before querying stops or real-time arrival times. Returns paginated list of routes with operators.'
Add pagination support to list-returning tools. Include 'page' (default 0) and 'size' (default 20, max 100) parameters. Document in description: 'Returns up to 20 results per page. Use page parameter to iterate. Max result limit prevents context window overflow.'
Implement tool annotations in FastMCP registration. Mark all 28 tools as readOnlyHint=true since they are all READ_ONLY risk. Example: @self.tool(..., description='...', readOnlyHint=True).
Add parameter format constraints in descriptions. E.g. 'route_name: Route identifier (e.g. '123', '1R', 'Red1'). Accepts 1-5 alphanumeric characters.' Use enums for categorical fields (e.g. parking type: ['street', 'garage', 'lot']).
Implement error guidance in response handler. For not-found errors, return: 'Route "R123" not found. Try search_routes() with partial name or call get_bus_routes() to browse available routes.' For validation errors, echo constraint: 'Invalid page_size: 250. Must be 1-100.'
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
Tool descriptions are very brief (10-45 characters). They lack actionable context for LLM tool selection, no WHEN to use, no prerequisite explanation, no distinction from similar tools.
STDIO transport only. Not remotely accessible; cannot integrate with hosted MCP clients or remote agent runners. Hard cap of 50 points for protocol readiness.
No error handling guidance in any tool. Error responses do not tell LLMs what to do next (retry, ask user, give up). Stack traces or bare error codes provide no recovery path.
No pagination parameters (limit, offset, page_size) or documentation on result caps for list-returning tools (get_bus_routes, get_all_stops, get_parking_lots, get_youbike_stations, etc.). Large result sets may blow context windows.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present in tool definitions, even though all tools are READ_ONLY. Annotations would help agents make safer decisions.
Parameter descriptions are generic and lack format/constraint details. E.g. 'route_name' described as '路線名稱或編號' (route name or number) with no examples, regex, or accepted formats. LLMs may pass invalid values.
No audit trail or permission checks visible. Tools are public with no logging of who called what or what parameters were passed. Critical for production compliance.
Migrate from STDIO to HTTP+SSE or Streamable HTTP transport to enable remote connectivity and hosted MCP client support. STDIO is not scalable for production.
Add per-tool audit logging. Log tool name, parameters (excluding secrets), caller context, timestamp, and response summary to structured logs (JSON to stderr).
Document any prerequisites or dependencies between tools. E.g. 'get_estimated_time requires a valid route_name, call get_bus_routes() first if unsure.'
For tools with optional parameters, explain defaults clearly. E.g. 'page: Page number (0-indexed, default=0). If omitted, returns first page.' and 'size: Results per page (default=20, max=100).'
Cap results at 20-50 items and explicitly state this in descriptions. E.g. 'Returns up to 20 parking lots. Use pagination to fetch more.'
Consider batching tools for common patterns. E.g. instead of separate search_taxi_service and get_taxi_services, offer search_taxi_services(keyword?, page=0, size=20) to reduce agent call overhead.