Skip to main content
Glama

Unpublish a dynamic route

undeploy_dynamic_route
Destructive

Clears only the current active version pointer. The draft and immutable version history are preserved. Optional expected_route_uuid and expected_active_version_number protect the identity and live pointer; zero means already unpublished. A positive expected version conflicts when the route is now unpublished. Use a fresh idempotency_key per new operation and retry identical arguments only; replays return the original affected version without clearing any newer deployment. data is the current observational route detail. 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": "undeploy_dynamic_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRoute name
idempotency_keyNoUnique undeploy operation identifier. A replay returns the original affected version without clearing a newer deployment.
expected_route_uuidNoOptional route identity precondition; a recycled route name does not satisfy it.
expected_active_version_numberNoOptional active version precondition; zero means already unpublished. A stale positive version returns 409 even when the route is now unpublished.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations it discloses what is NOT destroyed (draft and immutable history), the zero-means-already-unpublished semantics, the 409 conflict condition, replay behavior of idempotency_key, and the required `dynamic_routes:write` scope. The idempotency-key dedupe story is compatible with idempotentHint=false (the key must be supplied rather than the call being inherently idempotent), and pointer-clearing is consistent with destructiveHint=true.

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?

It is dense and front-loads the key effect, but the sentences are telegraphic and require parsing ('A positive expected version conflicts when the route is now unpublished'), and 'data is the current observational route detail' is unclear filler that does not earn its place.

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

Completeness4/5

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

For a precondition-guarded mutation with an output schema, the description covers the mutation's scope, identity safeguards, idempotency, error condition, and auth scope. The main gap is the relationship to sibling operations (what happens to an existing deployment, when to delete instead).

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 already 100%, so the baseline is 3. The description reinforces the two precondition parameters and the replay rule, but adds little meaning that the schema descriptions do not already contain, and the closing line about `data` is vague rather than explanatory.

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 opening sentence states a concrete effect: 'Clears only the current active version pointer,' with draft and version history preserved, which distinguishes it from a hard delete. It never states plainly 'unpublishes the route' and relies on the title to connect pointer-clearing to unpublishing, but the operational effect is unambiguous.

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?

The 'history preserved' sentence implies this is the non-destructive alternative to delete_dynamic_route, and the expected_* preconditions imply a guarded/conditional use case. However, no sibling is named and there is no explicit statement of when to choose this over delete_dynamic_route, rollback_dynamic_route, or redeploying.

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