Skip to main content
Glama

APIMock

Simulate request

simulate_request
Read-only

Show which endpoint and which response (including response variants) a request would get, and why, without sending it or logging anything. Reports each variant's conditions as matched or not, and probabilities for weighted endpoints. Use it to check response variants after create_endpoint or update_endpoint.

Input Schema

NameRequiredDescriptionDefault
bodyNoRaw request body, e.g. JSON text.
pathYesRequest path, optionally with a query string, e.g. /api/orders/42?expand=items.
methodYesHTTP method of the request.
headersNoRequest headers. Include Content-Type when sending a body, and X-APIMock-Variant to force a variant.
workspaceYesTarget workspace slug (from list_workspaces).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is partly covered. The description goes further by confirming nothing is sent or logged and by describing the report contents: per-variant condition match status and probabilities for weighted endpoints. That is meaningful behavioral disclosure beyond the annotations.

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

Conciseness5/5

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

Two sentences, both earning their place: the first defines the dry-run preview and its reporting behavior, the second routes the agent to the relevant workflow. No repetition or filler.

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

Completeness5/5

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

There is no output schema, so the description must explain return content — and it does, covering matched endpoint, response selection rationale, variant condition match status, and weighted probabilities. Combined with full schema coverage and safety annotations, an agent has enough to call it correctly.

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 description coverage is 100% across five parameters, so the schema already documents method, path, headers, body, and workspace. The description does not add syntax or semantic detail beyond the schema (e.g., it does not explain the X-APIMock-Variant forcing header). Baseline 3 is appropriate when the schema carries parameter semantics.

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

Purpose5/5

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

The description states a precise verb and resource: preview which endpoint and response a request would resolve to, and explains the 'why'. It explicitly distinguishes this preview behavior from siblings like create_endpoint, update_endpoint, and delete_endpoint by emphasizing 'without sending it or logging anything.'

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

Usage Guidelines4/5

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

It gives clear usage context — use this to check response variants after create_endpoint or update_endpoint — and clarifies the dry-run nature. It does not name explicit when-not conditions or a full set of alternatives, but the routing guidance is concrete.

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.

Resources