Skip to main content
Glama

approval_decide

Destructive

Decide a pending approval gate by accepting or declining it, optionally adding a note; accept may require a one-time confirmation link.

Instructions

Decide a pending approval gate: accept or decline, with an optional note. Decline takes effect at once. Accept takes effect at once only for a token holding approval:grant, on a gate below the workspace's confirmation threshold (by default every gate is at or above it). Otherwise you get {status: confirmation_required, confirmation_url}: a one-time link the person opens in the Maidan console and confirms, signed in as themselves. Clients that declare URL-mode elicitation are shown the same link through elicitation. You cannot confirm for the person; do not retry, poll get_approval_gate. Nobody accepts a gate they requested. The decision records which client you used and that a model asked.

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

Input Schema

NameRequiredDescriptionDefault
noteNooptional note kept on the gate with the decision, at most 2000 characters
gate_idYesthe pending gate to decide
decisionYesaccept or decline; cancelling stays with whoever opened the gate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.3/5.0
Behavior3/5

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

The annotations declare destructiveHint=true and idempotentHint=false, and the description adds substantial context beyond that: decline is immediate, accept may return confirmation_required with a one-time console link, self-approval is blocked, and the decision records the client and that a model asked. However, it never explains why this is destructive or what state the gate's requester sees afterwards, so the safety surface implied by destructiveHint is only partly covered.

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 front-loaded with the action and every sentence carries operational information, but it is dense, with a long parenthetical about the default threshold and several stacked clauses that slow scanning. Nothing is padding, but tighter sentence splitting would help.

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?

With no output schema, the description correctly documents the meaningful return shape (confirmation_required plus confirmation_url) and covers auth prerequisites, elicitation fallback, and no-retry behavior. Only the post-decline state for the requester and any non-confirmation success response are left unstated.

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 note length and the accept/decline enum, so the baseline is 3. The description still adds meaning the enum text does not: the differing effect timing of decline versus accept and the confirmation_required outcome, which is what an agent needs to choose a value correctly.

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 first sentence gives a specific verb and resource -- 'Decide a pending approval gate: accept or decline' -- and names the two decision outcomes. It is clearly distinguishable from the read-only sibling get_approval_gate, which it calls out by name later as something not to poll.

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 precisely when an immediate accept is permitted (token holding approval:grant, gate below the workspace confirmation threshold), what to do otherwise (surface the confirmation_url), and explicit prohibitions: do not retry, do not poll get_approval_gate, you cannot confirm for the person, and nobody accepts a gate they requested. This is as close to complete when/when-not guidance as a description gets.

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

Deploy Server

Other Tools