Skip to main content
Glama
drive-it
by jedbjorn

promote_script

Promote an exact draft revision to active only after a successful workspace run with matching code hash, passed checks, and document kind; unmet conditions leave the draft unchanged.

Instructions

Promote an exact draft revision to active using a checked successful run of that exact revision in this workspace: status succeeded, at least one check, every check passed, matching code hash and document kind. No approval is required. Rejections leave the draft unchanged and list unmet conditions.

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": {
      "scriptId": "<scriptId>",
      "revision": "<revision>",
      "runId": "<runId>"
    },
    "name": "promote_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesRun receipt offered as promotion evidence
revisionYes
scriptIdYesStable script identifier

Output Schema

NameRequiredDescriptionDefault
unmetYes
scriptYes
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does so well: it discloses the authorization context ('No approval is required'), the failure semantics ('Rejections leave the draft unchanged and list unmet conditions'), and the exact validation criteria (succeeded status, at least one check, all checks passed, hash and kind match). It does not say what happens to the previously active revision or whether promotion is reversible, which keeps it out of the top band.

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?

Front-loaded with the action and its object, followed by the evidence requirements, then two short sentences on authorization and failure. Dense but every clause (status, check count, hash/kind match, unchanged-on-rejection) earns its place with no filler.

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 no-annotation mutation tool this covers purpose, eligibility, authorization, and rejection behavior, and an output schema exists so return values need not be described. The remaining gap is the effect on the currently active revision and reversibility, which matters for a state-changing operation.

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 67% and 'revision' has no schema description, but the description compensates by explaining that the run must be of 'that exact revision' and that a code-hash and document-kind match is enforced. 'runId' is framed as 'promotion evidence', which adds real meaning beyond the schema's 'Run receipt offered as promotion evidence' for how the three parameters interlock.

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?

States a specific verb ('Promote') and a precise state transition ('an exact draft revision to active') plus the evidence mechanism required. An agent can immediately tell this apart from save_script, execute_script, or retire_script based on the promotion/activation semantics alone.

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?

Explicitly establishes the precondition for using it: a checked, successful run of that exact revision with matching code hash and document kind. It doesn't name an alternative tool or state when-not to promote, so it falls short of full routing guidance, but the eligibility context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.