Skip to main content
Glama
drive-it
by jedbjorn

retire_script

Soft-retire an exact draft or active script revision while keeping source, metadata, and receipts; it removes the revision from default search and latest and blocks new execution.

Instructions

Soft-retire an exact draft or active revision. Source, metadata, and receipts are kept; the revision leaves default search and latest, and rejects new execution. No approval is required.

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>"
    },
    "name": "retire_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
revisionYes
scriptIdYesStable script identifier

Output Schema

NameRequiredDescriptionDefault
scriptYes
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and handles it well: it discloses what is preserved (source, metadata, receipts), the visible side effects (leaves default search and 'latest'), and the functional consequence (rejects new execution), and confirms no approval step. It stops short of stating required permissions or whether a retire can be undone.

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?

Three short sentences, front-loaded with the operation and its effect, then the retention guarantees, then the approval note. Every clause carries information an agent would otherwise have to guess.

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?

An output schema exists, so return values need not be explained, and the description gives a solid safety profile for an unannotated mutation tool. What remains missing is the reversibility path (how to un-retire) and any permission or precondition detail for the target revision.

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 only 33%, with just scriptId documented in the schema, so the description must compensate. It adds real meaning for 'revision' by implying it must identify an existing draft or active revision, but 'reason' is never mentioned and no format or length expectations are given for it.

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 names a specific verb+resource pair: 'Soft-retire an exact draft or active revision,' and clarifies the scope is a single pinned revision rather than a whole script. It implicitly separates itself from siblings like execute_script by stating the revision 'rejects new execution', but it never names an alternative tool outright.

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?

'Soft-retire' plus 'exact draft or active revision' tells the agent the operation applies only to existing non-retired revisions, and 'No approval is required' removes a common gating question. However, there is no explicit when-to-use/when-not guidance relative to governance siblings such as promote_script, nor any statement about restoring a retired revision.

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