Skip to main content
Glama

call_mock_api

Destructive

Call a hosted mock route or mutate its CRUD records. Uses the same caller access, limits and revision checks as HTTP. Management tokens do not grant caller access. Owned OAuth providers also accept protocol paths, form fields in body and a userinfo bearer accessToken; authorization redirects include location.

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": {
      "id": "<id>",
      "method": "<method>",
      "path": "<path>"
    },
    "name": "call_mock_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesMock resource UUID.
runNoUnique run ID for isolated scenario state, sent as X-Kivel-Mock-Run.
bodyNo
pathYesRelative collection or route path, optionally with query parameters.
methodYes
revisionNo
accessTokenNoPrivate caller access token, supplied separately from the URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / run
      Added value: +{
      +  "description": "Unique run ID for isolated scenario state, sent as X-Kivel-Mock-Run.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already flag destructive and non-idempotent, but the description adds real behavior beyond them: caller-level access/limits/rate constraints, revision checks, the management-vs-caller token distinction, and that authorization redirects include a location. Missing: what specifically a mutation destroys and whether a failed revision check is an error or a no-op.

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

Conciseness3/5

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

The primary action is front-loaded, but the final sentence about OAuth provider protocol paths, form fields and userinfo bearer tokens is a compressed run-on covering several unrelated edge cases, and it sits before any explanation of the core call semantics.

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?

For a destructive, open-ended request-proxy with 7 parameters and no output schema, the description covers auth and revision behavior but says nothing about the response shape, error behavior on failed revision checks, or the effect of the 'run' isolation parameter. Adequate but with visible gaps.

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

Parameters3/5

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

Schema coverage is 57%, so compensation is required. The description clarifies the body (form fields for owned OAuth providers), the path (protocol paths allowed) and accessToken (a userinfo bearer), but leaves 'run', 'revision' and 'id' entirely to the schema, and never explains how revision interacts with the call.

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 ('Call') on a specific resource ('hosted mock route') and adds a secondary mode ('mutate its CRUD records'), which is enough to separate it from create_mock_api / delete_mock_api / inspect_mock_api by implication. It stops short of 5 because 'hosted mock route' is domain jargon and the two modes (read route vs. mutate records) are not tied to the method parameter.

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

Usage Guidelines3/5

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

Provides preconditions ('Management tokens do not grant caller access') but never states when to choose this tool over a sibling such as inspect_mock_api or over a raw HTTP request. Usage is only implied by the presence of method/path/body parameters.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.