Skip to main content
Glama

Create a guarded route deployment

create_dynamic_route_deployment
DestructiveIdempotent

Fail-closed deployment contract for infrastructure clients. expected_route_uuid (nonzero), expected_draft_revision, expected_active_version_number and idempotency_key are all required. Validates the row-locked reviewed draft and publishes one immutable version only if the reviewed identity and live pointer still match. Zero active version means unpublished. Missing preconditions are rejected before mutation. The separate path is absent on older backends, so clients must not fall back to /deploy when it is unavailable. Reusing identical arguments and the same key returns the original version without reactivating it; use a fresh key for every new deployment. meta.deployed_version is the original affected version and data is current observational state. 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": {
      "expected_active_version_number": "<expected_active_version_number>",
      "expected_draft_revision": "<expected_draft_revision>",
      "expected_route_uuid": "<expected_route_uuid>",
      "idempotency_key": "<idempotency_key>",
      "name": "<name>"
    },
    "name": "create_dynamic_route_deployment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRoute name
noteNoRelease note recorded on the new version.
idempotency_keyYesRequired unique operation identifier. Reuse only for an identical retry; a fresh deployment requires a fresh key.
expected_route_uuidYesRequired nonzero identity of the route reviewed by the caller.
expected_draft_revisionYesRequired positive revision of the reviewed draft.
expected_active_version_numberYesRequired active version precondition; zero means currently unpublished.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (destructive/idempotent/write), it discloses fail-closed rejection before mutation, immutability of the published version, the zero-active-version meaning, exact retry semantics (same key returns the original version without reactivating), what meta.deployed_version versus data represent, and the required `dynamic_routes:write` scope. That is substantial behavioral context an agent cannot get from the structured fields alone.

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?

Preconditions are front-loaded, then mutation semantics, then idempotency and scope — a logical order with no filler sentences. It is dense and jargon-heavy ('row-locked', 'live pointer'), which slightly raises reading cost for an agent.

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-guarded mutation with an output schema present, the description covers failure behavior, retry semantics, auth scope, and return-field meaning. An agent has everything needed to call it correctly and to avoid unsafe fallbacks.

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 100%, so the baseline is 3. The description restates requiredness and the nonzero/zero semantics of the precondition fields, but those meanings are already present in the schema descriptions, so it adds little beyond what the schema already supplies.

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 — it validates a reviewed draft and publishes one immutable version of a dynamic route, gated on matching identity and live pointer. It implicitly separates itself from the plain /deploy path, though it never names the sibling tool deploy_dynamic_route directly, so differentiation is contextual rather than explicit.

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 states when this path applies (guarded, precondition-checked deployment) and gives a clear exclusion: do not fall back to /deploy on older backends where this path is absent. It also gives reuse guidance for idempotency_key. It stops short of naming sibling tools as alternatives, but the conditional 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