Skip to main content
Glama

Deploy the draft

deploy_dynamic_route
Destructive

Validates the row-locked current draft and deploys it as a new immutable version, changing live routing. Optional expected_route_uuid, expected_draft_revision and expected_active_version_number bind the operation to the reviewed identity, draft and live pointer; zero active version means unpublished. A mismatch returns 409. Supply a fresh idempotency_key for each new deployment and reuse identical arguments only to retry that operation. A replay returns the original version in meta.deployed_version and current observational data without reactivating the original version or validating a later draft. meta.idempotency_replayed identifies replays. The receipt can also be recovered by the read-only deployments/{idempotency_key} endpoint. 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": "deploy_dynamic_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRoute name
noteNoRelease note recorded on the new version.
idempotency_keyNoUnique operation identifier. Reusing the same request returns its original deployed version without reactivating it. Use a fresh identifier for every new deployment.
expected_route_uuidNoOptional route identity precondition; a recycled route name does not satisfy it.
expected_draft_revisionNoOptional positive revision of the draft reviewed by the caller; a changed draft returns 409.
expected_active_version_numberNoOptional active version precondition; zero means currently unpublished. A changed live pointer returns 409.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only mark it destructive, not idempotent and closed-world; the description goes far beyond that by disclosing 409 precondition semantics, unrecoverable live-routing mutation, scope requirement (dynamic_routes:write), and precise replay behavior (returns the original version without reactivating it or validating a later draft, flagged by meta.idempotency_replayed). Note idempotentHint=false is consistent, since idempotency applies only when a key is supplied.

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?

Purpose and the live-traffic consequence are front-loaded, then preconditions, then idempotency, then scope. Every sentence carries information, but the idempotency/replay material is dense and repeated between description and schema, so it is slightly longer than strictly necessary.

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 destructive, precondition-heavy deployment tool it covers validation, immutability, live pointer change, conflict handling, retry semantics and required scope, and an output schema exists so return shape need not be spelled out. An agent has everything needed to call it safely on the first try.

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

Parameters5/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, but the description adds real meaning: expected_route_uuid guards against recycled route names, expected_draft_revision and expected_active_version_number are optimistic-concurrency guards whose mismatch yields 409, and zero active version means unpublished. That is genuine semantics beyond the field blurbs.

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?

The description gives a specific verb and resource chain: it validates the row-locked current draft and promotes it to a new immutable version that changes live routing. That distinguishes it from rollback/undeploy by implication, but it never names the closest sibling (create_dynamic_route_deployment) to rule out ambiguity.

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 clearly says when to supply the expected_* preconditions (to bind the operation to the reviewed identity, draft and live pointer) and when to mint versus reuse an idempotency_key (fresh per deployment, identical arguments only for retry). It also routes to the read-only deployments/{idempotency_key} endpoint for receipt recovery, though it states no explicit 'do not use this when' case.

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