RestAPI MCP Server - SSE. An MCP server that orchestrates REST API calls with variable interpolation, session management, transaction logging, and support for base64 encoding, JQ expression evaluation, and environment variable management.
This MCP server exposes 8 tools that proxy a REST API orchestrator. While tool definitions are explicitly registered with the FastMCP decorator and schemas are present, there are significant gaps in naming clarity, parameter descriptions, and output documentation that would hinder LLM reasoning. Tool names lack consistent verb-first patterns; several parameters have minimal descriptions; error handling guidance is absent; and output schemas are not formally documented. The server is functional but falls well short of production-grade standards for agent-facing tools.
Upsert environment variables via REST API. Endpoint: PUT /api/v001/variables/upsertEnvironmentVariable Input: items: list of { "environment": str, "variable": str, "value": Any } Returns: list of upserted items (echoed from API)
Call the RestAPI Orchestrator HTTP endpoint. Endpoint: POST /api/v001/restapi/call Inputs: - method: HTTP method (GET, POST, PUT, PATCH, DELETE) - url: Target URL (supports variable/base64/jq interpolation) - action: Logical action name for transaction logging - environment: Environment name for variable resolution - session: Session identifier - request_headers: Optional HTTP headers dict - request_body: Optional request body (string or object) - request_form_data: Optional form data dict - request_files: Optional list of file objects - pre_script: Optional pre-request script - post_script: Optional post-response script - debug: Optional debug flag Returns: { status, response_headers, response_body, transaction_id }
Create a new session id. Returns: { "session": string }
Delete all variables for the given environment via REST API. Endpoint: DELETE /api/v001/variables/deleteAllByEnvironment Returns: { environment, deletedCount }
Check API health. Endpoint: GET /api/v001/health Returns: {"status": "ok"} on healthy server.
Missing or inadequate parameter descriptions. 'value' parameter in upsertEnvironmentVariable and createEnvironmentVariables is typed as 'any' with no guidance on supported data types, encoding, size limits, or examples. 'method' in createRestAPICall is a free-form string instead of an enum.
Output schemas not formally documented. All tools describe return values in text (e.g., 'Returns: { status, response_headers, ... }') but do not define structured response types with typed fields. LLMs cannot reliably parse unstructured text descriptions of outputs.
Destructive operations (deleteAllByEnvironment) lack confirmation or dry-run capability. No guidance on recovery or rollback.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 43 | - | v1 |
List all variables for the given environment. Returns: array of { environment, variable, value }
Get a specific environment variable. Returns: { environment, variable, value }
Upsert a single environment variable via REST API. Endpoint: PUT /api/v001/variables/upsertEnvironmentVariable Inputs: - environment: target environment name - variable: variable name - value: variable value (any JSON-serializable type) Returns: { environment, variable, value }
No error handling guidance. Tools do not document what errors are retryable, what indicate user input issues, or what are fatal. No recovery hints (e.g., 'If variable not found, try listAllEnvironmentVariables to discover available variables').
Tool naming inconsistencies and verbosity. 'createEnvironmentVariables' actually upserts (does not clarify intent). 'listAllEnvironmentVariables' vs 'listSpecificEnvironmentVariable' are redundant (could be get_environment_variable with optional filtering). 'deleteAllByEnvironment' is verbose. 'createRestAPICall' is generic and misleading (executes, not creates).
No pagination documentation for list tools. 'listAllEnvironmentVariables' and 'listSpecificEnvironmentVariable' do not mention limits, pagination, or result counts. Large environments could exhaust context windows.
createRestAPICall has 12 parameters with multiple under-specified ones. 'pre_script' and 'post_script' are typed 'any' with no indication of format/language. 'url' supports interpolation syntax (variable, base64, jq) but no documentation of how to use or what errors to expect. 'request_body' ambiguous (string vs. object). No guidance on timeout behavior.
Tool descriptions too terse or generic. 'createSession' (16 chars), 'health' (58 chars), 'listSpecificEnvironmentVariable' (41 chars) fall short of the 50+ char baseline for adequate context. Missing WHEN/WHY guidance.
No tool composition guidance. Unclear when to use createEnvironmentVariables (batch) vs upsertEnvironmentVariable (single). No hint that createSession should be called first for most workflows.
Mismatch between parameter naming and common LLM patterns. Tools accept internal identifiers (environment, variable, session IDs) without guidance on how to obtain them. No natural identifier support (e.g., environment name lookup).