Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
This server provides 5 generic HTTP proxy tools (api_probe, api_get, api_post, api_put, api_delete) with minimal specification. Tool descriptions are present but extremely terse (8-15 characters), providing almost no guidance on when or how to use each tool. Input schemas are partially defined but lack critical detail: parameter descriptions are minimal, no enums constrain methods or paths, and output schemas are entirely undocumented. The tools are designed as pass-through proxies rather than domain-specific tools, which is a fundamental architectural gap, they do not model user intent or provide error recovery guidance. Parameter handling is generic (headers, payload as 'unknown' type) and lacks validation constraints. Security concerns are notable: auth token injection via environment variables is correct, but the tools provide no guidance on destructive operations (DELETE is marked DESTRUCTIVE but no confirmation mechanism exists). Error handling appears limited, the HttpError class exists but no visible recovery guidance or error categorization in tool responses. The server is STDIO-only, which hard-caps protocol readiness regardless of definition quality.
Tool descriptions are critically short (8-15 chars). 'Probe an API path with any method (safe)' provides no guidance on when to call api_probe vs api_get, what return values mean, or how to handle errors. Rubric requires 10-1024 chars with WHAT, WHEN, and prerequisites.
Parameter descriptions are missing or trivial. 'path' is described as 'API path to probe', does this mean a URL path segment like '/users/123', a full URL, or a template? 'payload' has description 'Optional request body payload' but type is 'unknown', providing no schema for what the payload should contain. The 'headers' parameter lacks any description of expected format, security implications, or examples.
Expand each tool description to 100-200 characters explaining WHAT it does, WHEN to use it vs other tools, and what to expect. E.g.: 'Execute a GET request against the configured API base. Returns response body and status code. Use this for read-only probes; for specific resource types, prefer domain-specific tools like get_user() or search_tickets() if available.'
Add explicit parameter descriptions: 'path: URL path segment relative to API_BASE, e.g. "/v1/users/123" or "/api/projects". Do not include the base URL.' 'method: HTTP verb. Must be one of: GET, POST, PUT, DELETE, PATCH. Defaults to GET.' 'headers: Object with custom HTTP headers as key-value pairs, e.g. {"Accept": "application/json", "X-Custom-Header": "value"}. Do not include Authorization header (handled server-side).'
Document output schema for all tools. E.g.: 'Returns an object with: { status: number (HTTP status code), url: string (the full URL called), data: any (parsed JSON response body or raw text), headers: object (response headers) }. If response exceeds max_bytes, data will be truncated, check the response length and increase max_bytes if needed.'
Add 'method' as an enum parameter in api_probe: enum: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD'].
Replace 'payload' type 'unknown' with explicit 'object' type. Add description: 'Request body as a JSON object. Structure depends on the API endpoint. No validation is performed server-side, errors from invalid payloads come from the API, not this tool.'
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
Score history
Overall score trend
First recorded score · v2 rubric
38/100
Scored
Grade
Overall
Spec posture
Rubric
2026-09-23
F
38
<=2025-11-25
v2
Output schemas are completely undocumented. The source code shows fetch() calls but no visible tool response schema definition. LLMs cannot plan downstream tool calls or extract the right data without knowing what fields the response contains. Rubric requires 100% of A+ tools to have documented return types.
Generic proxy pattern with no domain modeling. These tools require the LLM to understand HTTP semantics, manage auth headers, handle raw JSON payloads, and interpret unstructured responses. This violates the 'chat-data-model' pattern, users say 'Get user Jack' not 'GET /v1/users?name=Jack' with custom headers. The server abstracts nothing.
Destructive operations (api_delete) have no confirmation or dry-run mechanism. Marked as DESTRUCTIVE but tool description provides no warning or guidance. Rubric requires: 'Irreversible operations should support a dry-run or confirmation step. Agents make mistakes, a confirm_before_execute pattern prevents catastrophic errors.'
'method' parameter in api_probe has description 'HTTP method to use' but no enum constraint. 'PATCH' is common but not listed as one of the 5 registered tools. An LLM could pass 'TRACE', 'OPTIONS', or 'INVALID' and get unhelpful errors. Rubric: 'When a parameter accepts one of a known set of values, declare it as an enum.'
'payload' parameter typed as 'unknown' in api_post, api_put, api_delete. This is the least informative type, it tells the LLM nothing about structure, required fields, or format. Should be 'object' with schema constraints or explicit field definitions, e.g. { type: 'object', properties: { ... }, description: '...' }.
No error classification or recovery guidance. The HttpError class exists but no visible tool response documents how to categorize errors (retryable, user-fixable, fatal) or what to do next. An LLM hitting a 404 or 403 gets no guidance on whether to retry, ask the user, or try a different tool.
'max_bytes' parameter in api_probe defaults to 4096 bytes. Response truncation could break subsequent tool calls if the response contains a required field after byte 4096. No documentation warns of this risk or explains how to increase the limit if needed.
Helper scripts (openapi_to_tools.ts, scan_to_tools.ts) generate tools.json with basic metadata but no evidence these dynamic tools are actually registered with the MCP server at runtime. If tool registration is dynamic or file-based, the main server.ts does not show it, tool definitions appear hardcoded in the source snippet provided.
api_probeapi_getapi_postapi_putapi_delete
Add confirmation mechanism for destructive operations. Option 1: Add a 'dry_run' boolean parameter (default false) to api_delete and api_put. Option 2: Add a separate 'confirm_deletion' tool that requires the full DELETE call as input before executing. Document the risk: 'DELETE operations cannot be undone. Consider calling with a test path first or in dry_run mode.'
Implement and document error recovery. Map common HTTP status codes to actionable guidance: '404 (Not Found), The resource does not exist. Verify the path and try search tools if available. 401 (Unauthorized), Auth failed. Check API_BASE, AUTH_MODE, and AUTH_TOKEN env vars. 429 (Rate Limited), Too many requests. Wait and retry; consider batching calls. 500+ (Server Error), API is down. Retry after a delay or contact support.'
Add pagination guidance to response schema: 'If the API response includes pagination fields (next, offset, limit, total), the tool does not automatically paginate. You must call the tool multiple times with different path parameters or query strings to fetch all results.'
Clarify the role of 'max_bytes'. Add to description: 'Responses larger than max_bytes will be truncated. If you need more data, increase max_bytes up to your MCP timeout limit. Large responses may exhaust context windows, consider using API query parameters to filter results server-side instead.'
Add a tool description explaining when to use the generic proxy tools vs domain-specific alternatives: 'These tools are generic HTTP proxies. Before using api_get/api_post, check if a domain-specific tool exists (e.g., create_user, send_email). Use these tools only when no domain-specific tool matches your intent, or to probe unfamiliar APIs.'
Add 'headers' parameter description with security note: 'Custom HTTP headers to send with the request. Do not include Authorization headers, auth is applied server-side based on AUTH_MODE and AUTH_TOKEN. Sensitive headers (API keys, tokens) must not be passed here; use environment variables instead.'
Document the auth mechanism in tool description: 'Authentication is configured via AUTH_MODE env var (none|bearer|header|basic|query). The tool automatically applies the appropriate auth strategy using AUTH_TOKEN and related env vars. You do not need to pass auth headers manually.'
Consider splitting api_probe into separate tools for clarity: api_get (GET only), api_options (for discovery), api_head (for metadata). The current api_probe conflates multiple responsibilities.