Skip to main content
Glama
MCP Server Toolkit

MCP Server Toolkit

by gupta93

call_openapi_operation

Invoke an HTTP operation from an OpenAPI 3 spec by operationId, supplying path, query, or JSON parameters to call the defined endpoint.

Instructions

Call an HTTP operation from an OpenAPI 3 spec by operationId.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operation_id": "<operation_id>"
    },
    "name": "call_openapi_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
spec_urlNo
json_bodyNo
spec_textNo
path_paramsNo
operation_idYes
query_paramsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden and discloses almost nothing. It does not say that this performs real network I/O, that the underlying operation may be a mutating POST/PUT/DELETE with side effects, whether credentials/auth are required, or how failures surface. For an unannotated generic dispatcher this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero filler and no redundancy. It is efficient, though the brevity borders on under-specification rather than tight writing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, which relieves some burden. However, for a 6-parameter, unannotated, side-effect-capable HTTP dispatcher, the definition leaves the agent without the spec-source, parameter-routing, or safety information needed to invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 6 parameters, so the description must compensate and it does not. Only operation_id is given meaning (it maps to the spec's operationId); the mutual relationship between spec_url and spec_text, and the roles of json_body, path_params, and query_params, are entirely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Call an HTTP operation') plus the source artifact ('from an OpenAPI 3 spec') and the selector ('by operationId'). An agent can distinguish this generic HTTP dispatcher from the sibling SQL/GitHub-summary tools, though the sentence is bare and gives no hint of what the call actually does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no exclusions, and no statement of prerequisites such as needing either spec_url or spec_text before an operation can be resolved. The agent must infer everything about applicability from the one-line purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.