Skip to main content
Glama

Approve a request

approve_request
Destructive

Record this user's approval on a request that is waiting on their decision. This is a decision of record with real financial and operational consequences: always show the user what they are approving and get explicit confirmation in the same turn before calling. Fails if the user is not the current approver. Two-step: call with confirmed=false (the default) first for a preview with NOTHING recorded yet; call again with confirmed=true to record it. A confirmed=true call with no matching preview from this connection in the last 10 minutes is run as the preview instead, and writes nothing. One preview admits one attempt, so a call that fails needs a new one. If the server cannot reach its preview store it does not hold the call back, so always preview first regardless. A preview also lapses once the request changes, someone else's decision on it included, so the next call previews it again.

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": {
      "ar_identifier": "<ar_identifier>"
    },
    "name": "approve_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional note recorded alongside the approval.
confirmedNofalse (default) returns a preview of what would be approved and does NOTHING. true approves it. Preview, show the user, wait for their yes, then call again with true.
ar_identifierYesThe approval request to approve — friendly number like 'AR-15' / '15' or the internal integer id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description discloses failure when the caller is not the current approver, the 10-minute preview window, the silent fallback that downgrades an orphaned confirmed=true call to a preview, the one-preview-per-attempt rule, the preview-store outage behavior, and preview invalidation when the request changes. These are exactly the non-obvious traits an agent needs to avoid an unintended write.

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 purpose, then the safety instruction, then mechanics, and nearly every sentence carries unique operational information. It loses a point for redundancy and density: 'always preview first regardless' restates the earlier two-step instruction, and the final sentence about preview lapse is a long run-on that would read better as two.

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 destructive, open-world, non-idempotent mutation with no output schema, the description covers confirmation, failure, preview lifecycle, and outage handling thoroughly. It stops short of saying what a successful approval does downstream (e.g., whether the request advances or the workflow continues) and what the preview response contains, which would fully close the loop.

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%, so the baseline is 3, and the description earns an increment by explaining the operational semantics of confirmed beyond the field text: previews expire in 10 minutes, a preview admits only one attempt, and a stale confirmed=true call degrades to a preview. The comment and ar_identifier semantics are left entirely to the schema, which is acceptable given full coverage.

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 ('Record ... approval'), the resource ('a request waiting on their decision'), and the actor scoping ('this user's'), which cleanly separates it from reject_request and the read-only describe/list siblings. An agent knows exactly what this tool accomplishes without opening the 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?

It states the precondition (the request is waiting on the user's decision), the mandatory pre-call ritual (show the user and get explicit confirmation in the same turn), and the precise two-step invocation path (confirmed=false, then confirmed=true). The only alternative not named is reject_request, but the 'when to use' condition is fully specified on its own terms.

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