Skip to main content
Glama

Redeploy a commit

redeploy
Destructive

Restart a deployment (by job_id) without rebuilding — re-installs the release if the last deploy failed, otherwise rolls the pod. Requires a read-write token.

Input Schema

NameRequiredDescriptionDefault
job_idYesthe deployment job id (from list_deployments)

Output Schema

NameRequiredDescriptionDefault
okYes
statusNopresent, and always "pending_approval", only when this call was parked instead of run immediately because the project's (or kad-back's own) plan-mode setting requires a human to approve it first
messageYes
plan_idNopoll get_plan_status with this id for the eventual outcome
approve_atNothe kad.dev dashboard URL a human approves or rejects this plan from
expires_in_sNothe plan can no longer be approved after this many seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds real context beyond them: the two divergent execution paths (re-install release on last-deploy failure vs. roll the pod) and the read-write token requirement. It doesn't state whether a restart can interrupt in-flight traffic or what the returned job state looks like, but that is largely covered by the output schema.

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?

One front-loaded sentence that conveys the action, the non-rebuild constraint, the branch behavior, and the auth requirement with no filler. Nothing could be removed without losing information.

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 single-parameter tool with an output schema and full annotation coverage, the description supplies the essential additions: token scope and the conditional restart semantics. The one material gap is sibling ambiguity with restart_app, which the description should resolve but doesn't.

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% and the single parameter is documented as "the deployment job id (from list_deployments)," so the schema carries the load. The description restates "by job_id" without adding format or sourcing detail, which lands at the baseline 3.

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?

Specific verb + resource ("Restart a deployment") plus the mechanical detail that it happens "without rebuilding," which tells the agent what actually changes. It falls short of a 5 because it never distinguishes itself from the similarly purposed sibling restart_app, nor from rollback_commit, both of which could plausibly be chosen for a stuck deployment.

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?

Usage is implied (restart a deployment by job_id) and one hard prerequisite is given—"Requires a read-write token." But there is no explicit when-to-use/when-not guidance and no routing to the obvious alternatives (restart_app, rollback_commit, stop_commit), so the agent must infer selection from the surface-level wording.

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