Skip to main content
Glama

Approvals: decide

approvals_decide
DestructiveIdempotent

Approves, rejects or closes one approval in neonloops: a run paused at an approval step or at an agent's tool call that asks first (run_id and node_id), or a question a bot asked in a conversation (approval_id). Approve or reject resumes the run on that branch, with every side effect it has, or answers the customer. Close (approval_id only) takes a bot's question off the table without replying: nothing is sent to the customer and nothing runs. It takes two calls: the first changes nothing and returns a confirmation_token; the second, with the same arguments plus that token within 5 minutes, decides it, and it cannot be undone. Only the approval's assignee, a workspace owner or admin, or whoever started a test conversation may decide. An option_id that counts as the other decision is refused. Find what is waiting with approvals_list.

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": {
      "decision": "<decision>"
    },
    "name": "approvals_decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNoWith node_id: the paused run whose approval to decide. Not with approval_id.
commentNoOptional note recorded with the decision. Send it again, unchanged, on the confirming call.
node_idNoWith run_id: the paused step's id.
decisionYesApprove resumes the run on its approved branch, or answers the question with an approving option; reject takes the rejected branch or a rejecting option. Close takes a question a bot asked off the table without replying: it needs approval_id, and nothing is sent to the customer and nothing runs.
option_idNoWith approval_id only: which of the question's options to answer with; it must count as this decision. If it counts as the other one, the call is refused and names that decision: send it as decision, or omit option_id to answer with the first option for this decision.
approval_idNoA question a bot asked in a conversation. Not with run_id or node_id.
confirmation_tokenNoOmit to PREVIEW: nothing is changed and a confirmation token is returned. Call again with that token, and the identical arguments, to perform the action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / decision / description
      Previous value: -"Approve resumes the run on its approved branch, or answers the question with an approving option; reject takes the rejected branch or a rejecting option."New value: +"Approve resumes the run on its approved branch, or answers the question with an approving option; reject takes the rejected branch or a rejecting option. Close takes a question a bot asked off the table without replying: it needs approval_id, and nothing is sent to the customer and nothing runs."
    • changedInput schema / properties / decision / enum
      Previous value: -[
      -  "approve",
      -  "reject"
      -]New value: +[
      +  "approve",
      +  "reject",
      +  "close"
      +]
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive=true and openWorldHint=true, but the description adds the details an agent cannot infer: a mandatory two-call confirmation flow where the first call changes nothing and returns a confirmation_token valid for 5 minutes with identical arguments, that the action is irreversible, that resuming a run carries every side effect of that branch, and that a mismatched option_id is refused with a naming hint. That is substantive context beyond the structured hints.

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?

It is a single dense paragraph that front-loads the verb and the two modes, with no filler sentences. It runs long and repeats some material that also appears in the schema parameter descriptions (option_id refusal, close semantics), costing it a point, but every sentence carries operational content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, two-phase, multi-identifier mutation with no output schema, the definition covers the return of the preview call (confirmation_token), the confirmation window, irreversibility, permissions, and identifier pairing. Nothing an agent needs in order to call this safely and correctly is missing.

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 100%, so the schema already defines all seven parameters, but the description still contributes the 5-minute token expiry and the requirement to resend identical arguments including the comment, which appear nowhere in the schema. It also reinforces the mutual exclusivity of run_id/node_id versus approval_id and the option_id mismatch refusal rule.

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?

The description opens with a specific verb set (approves, rejects, closes) and resource (one approval), then splits the resource into its two concrete forms: a paused run identified by run_id/node_id and a bot question identified by approval_id. That distinction is exactly what an agent needs to pick the right identifiers, and it points at the sibling approvals_list rather than leaving discovery implicit.

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?

It states when each decision applies (approve/reject resume a branch or answer a customer; close silently drops a bot question), which identifier shape each mode requires, and which is not valid with which. It also names the discovery path ('Find what is waiting with approvals_list') and the authorization condition (assignee, workspace owner/admin, or test-conversation starter).

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