Skip to main content
Glama

Simulate a request through the route

simulate_dynamic_route
Read-only

Omit version_number or set it to null to simulate the current draft, including an unpublished route. To simulate history, supply a positive version_number from list_dynamic_route_versions. Zero is invalid and does not mean draft. Minimal draft call: {"name":"support","version_number":null}. Optional input and metadata supply request context; overrides.model_outcomes maps model/pool node IDs to success or fallback, and overrides.classifier_cases maps classifier node IDs to case IDs. For example {"name":"support","version_number":null,"overrides":{"model_outcomes":{"primary":"success"}}} tests the documented example graph. May call a live classifier when no override is provided; does not deploy or invoke the selected final model. Inspect data.status and data.path for the routing verdict. Fix draft issues with update_dynamic_route_draft before deployment. Requires the dynamic_routes:write scope.

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": {
      "name": "<name>"
    },
    "name": "simulate_dynamic_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRoute name
inputNoThe request body a conditional or classifier node reads; in the shape of the compat endpoint you call the route from (for chat completions: messages).
metadataNoRequest metadata a conditional node can test (tags; headers; the caller's project).
overridesNoForced outcomes per node id: which conditional case matches; which percentage bucket is drawn; whether a model succeeds or fails; which classifier case is picked.
request_idNoSeeds the percentage-split draw so a run is reproducible.
version_numberNoOmit or set null to simulate the current draft; supply a positive existing deployed version to simulate history. Zero is invalid.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, openWorldHint, non-idempotent), it discloses that a live classifier may be called when no override is supplied, that the final selected model is never invoked, that nothing is deployed, and that a `dynamic_routes:write` scope is required — all valuable behavioral context. Minor gap: it does not explain how request_id interacts with percentage_buckets reproducibility beyond the schema's own note.

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?

The draft-versus-history rule and the invalid-zero warning are front-loaded, which is the right prioritization. It is dense and example-heavy, but nearly every clause carries operational meaning; a small trim of the second example would make it tighter.

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?

For a simulation tool with nested overrides and a live output schema, the description covers the full picture: how to select draft vs. version, what overrides force, what side effects may occur, required auth scope, and where to read the verdict (data.status and data.path). Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by giving concrete payload examples and clarifying the semantics of overrides.model_outcomes (success/fallback per model node) and overrides.classifier_cases (node ID to case ID). It adds usable meaning rather than restating field descriptions.

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 specific verb and resource — simulating a request through a dynamic route — and immediately splits behavior into draft simulation (omit/null version_number) versus historical simulation (positive version_number). It is clearly distinguishable from siblings such as deploy_dynamic_route or get_dynamic_route_version, which do different things.

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

Usage Guidelines5/5

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

It gives explicit when-to-use rules: omit or null for the current draft including unpublished routes, positive integer from list_dynamic_route_versions for history, and zero is invalid. It also routes the agent to update_dynamic_route_draft to fix issues before deployment, covering the alternative path.

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