Skip to main content
Glama

Approve review gate (bills credits)

run_gate_approve

Approve a review gate. Continuing downstream steps BILLS CREDITS — without confirm:true this only returns what continuing will cost (up to max_credits) and continues nothing. Omit block_ids to continue over ALL blocks the run processed; pass a subset to continue only those; pass [] to close the gate WITHOUT running (or billing) anything further (no confirm needed). No downstream steps → error no_continuation (use run_gate_acknowledge).

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": {
      "job_id": "<job_id>"
    },
    "name": "run_gate_approve"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe run whose review gate is pending (gate_pending true in run_get).
confirmNotrue to continue and spend credits; omit to get the price only.
block_idsNoBlocks to continue over: omit for all the run’s blocks, a subset for only those, [] to close the gate without running anything.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / block_ids / description
      Added value: +"Blocks to continue over: omit for all the run’s blocks, a subset for only those, [] to close the gate without running anything."
    • addedInput schema / properties / confirm / description
      Added value: +"true to continue and spend credits; omit to get the price only."
    • addedInput schema / properties / job_id / description
      Added value: +"The run whose review gate is pending (gate_pending true in run_get)."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only mark it non-read-only and non-destructive; the description goes much further by disclosing that approval spends credits, that omission of confirm returns only a cost preview up to max_credits and performs no continuation, that [] is a free no-op close, and the specific no_continuation error. That is exactly the cost/side-effect context an agent needs before a billing action.

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?

Front-loads the action and the billing warning in the first two sentences, then branches through block_ids and the error case with no filler. The capitalized emphasis and dash-chained clauses make it dense but still readable; slightly crowded phrasing keeps it off a 5.

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?

Covers cost behavior, the no-op close path, the failure mode, and the sibling to use instead, which is enough for a 3-parameter billing gate with no output schema. It does not describe the shape of the successful approval response beyond the price-only path, a minor residual gap.

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 100% and the schema already documents all three parameters, so 3 is the baseline. The description adds value by foregrounding the tri-state meaning of block_ids (omit = all, subset = some, [] = close only) and the cost-preview semantics of confirm, reinforcing the non-obvious empty-array case even though it largely mirrors the schema text.

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?

Names a specific verb and resource ('Approve a review gate') and immediately distinguishes itself from the sibling fallback by naming run_gate_acknowledge for the no-continuation case. An agent can tell what this does and which tool handles the adjacent scenario without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to/when-not-to guidance: use confirm:true to actually continue, omit it to price only, pass a block subset to continue selectively, pass [] to close without billing, and use run_gate_acknowledge when there are no downstream steps. Every branch an agent must choose between is stated.

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.