Skip to main content
Glama

Authorize a held run

confirm_run
Idempotent

Authorizes a held run and starts it. The numbers are the ones already stored on the run — you cannot restate them, which is the point: what is authorized is the server's own projection. Example: {"run_id": "…", "expected_version": 3}. Pass expected_version from the get_run that showed you the projection, so a projection that moved in between is refused rather than silently authorized. Returns the run receipt with its new status. Only call this after a person has seen the projection and agreed to it.

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": {
      "run_id": "<run_id>"
    },
    "name": "confirm_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
expected_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, idempotent, non-destructive operation; the description goes well beyond that by explaining that the authorized numbers come from the server's stored projection and cannot be restated by the caller. It discloses the optimistic-concurrency contract (a moved projection is refused rather than silently authorized) and states the return value (run receipt with new status). The human-in-the-loop requirement is behavioral context no annotation conveys.

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?

Purpose is front-loaded in the first clause and each following sentence carries distinct information (no-restate rule, example, version sourcing, return value, human gate). The aside 'which is the point' is slightly conversational filler but costs little.

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 two-parameter mutation with no output schema, the description covers the authorization semantics, the concurrency safeguard, failure behavior, and the return value, which is nearly everything an agent needs. Idempotency, declared in annotations, is not discussed, and the failure surface (what a refusal looks like) is described conceptually rather than concretely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry parameter meaning, and it does: expected_version is explained as coming from the get_run that displayed the projection, with the consequence of a mismatch spelled out, plus an inline JSON example showing both fields. The only small gap is that it never notes expected_version is optional (schema requires only run_id).

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?

States a specific verb and resource ('Authorizes a held run and starts it'), and the qualifier 'held' narrows scope meaningfully. It does not name the nearby alternatives (approve_full_run, start_run, cancel_run) or explain how authorization differs from approval, so sibling differentiation is left to inference.

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?

Gives an explicit precondition in the strongest possible terms: 'Only call this after a person has seen the projection and agreed to it.' It also directs where to source expected_version. It stops short of saying when to prefer this over approve_full_run or start_run, so the guidance is clear but not complete.

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