Skip to main content
Glama

Approve or Deny a Spend Request

ledger_approval_decide
DestructiveIdempotent

Approve or deny a pending spend permit — workspace owner only.

The agent's own agent_secret can REQUEST an approval but can never decide one: a credential that can approve its own requests is not a control. decision must be 'approve' or 'deny'; only pending permits can be decided. An approved permit is consumed by the agent's next ledger_track within its amount — it is a one-shot exception, not a raised cap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesthe agent that requested the permit
decisionYes'approve' or 'deny'
approval_idYesthe apr_ id from ledger_request_approval / ledger_approvals
workspace_keyYesthe key of the workspace that owns the agent

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only flag non-read-only, idempotent and destructive; the description adds substantive context beyond them: the decision is a one-shot exception consumed by the next ledger_track rather than a raised cap, only pending permits are decidable, and the credential separation model. It does not contradict idempotentHint — re-deciding an already-decided permit is a no-op.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each carrying distinct content: the action and its scope, the authority separation, and the consumption semantics. The key constraint (owner-only) is front-loaded in the first line.

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?

Output schema exists, so return values need no explanation here. For a destructive, non-idempotent-looking mutation the description covers authorization, valid inputs, state requirements and post-decision consequences — everything an agent needs before invoking it.

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

Parameters3/5

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

Schema description coverage is 100%, so agent_id, approval_id, decision and workspace_key are already documented with their meanings. The description restates the 'approve'/'deny' enum for decision and adds the 'pending permits only' constraint, but contributes no format or sourcing detail beyond the schema. Baseline 3 is correct when the schema does the heavy lifting.

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?

States a specific verb pair and resource ("Approve or deny a pending spend permit") and immediately scopes it ("workspace owner only"). It also implicitly separates itself from the sibling ledger_request_approval by explaining that requesting and deciding are different authorities, so an agent can pick the right tool without opening schemas.

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?

Explicitly names the precondition (only pending permits can be decided), the authorization requirement (workspace owner only), and the alternative path (agent_secret can REQUEST via ledger_request_approval but never decide). When/when-not and the alternative are all present.

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.