Skip to main content
Glama

Approve or reject intent

stack_decide_intent
Destructive

Approve or reject an intent an agent submitted and that waits for the owner (ia_*). approve releases the held action for the agent to carry out at once. An intent that can move money (an onchain transaction, or a wallet or gas cost) is approved only in the browser: the call fails once with an approval link, and an intent STACK cannot read is shown as its raw JSON and judged by the same fields read from it (one that is not a JSON object, or whose type or cost fields cannot be read, counts as money). reject refuses it at once and revokes the agent's Passport; with block_future it also blocks the agent itself, so no new Passport is issued to it until a person unblocks it, which needs an approval. Read what is asked first with stack_get_intent_approval and review true. An approval created for a fleet policy can be decided only from the Console. The owner, an admin or a standard member. When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours.

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

Input Schema

NameRequiredDescriptionDefault
notesNoNotes kept with the decision
decisionYesapprove or reject
approval_idYesIntent approval id (ia_*) from stack_list_pending_intents
block_futureNoreject only: also block the agent itself, so no new Passport is issued to it until a person unblocks it. Given with approve it is ignored, and the answer lists it under ignored
governance_approval_idNoapprove only: approval id (gvr_*) from the first call, after the person approved it in the browser; ignored on reject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Goes well beyond the annotations (destructiveHint=true) by disclosing that reject revokes the Passport, that block_future blocks future Passports until a human unblocks, that approvals are single-use, payload-bound and expire in 24 hours, and that money intents require a browser round-trip. That is substantial value added on top of the annotations, though the elicitation/fallback narrative is dense enough that the operative consequences are partly buried.

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

Conciseness3/5

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

Front-loaded with the core action, but the body is a run-on chain of clauses mixing approval mechanics, JSON-parsing rules for unreadable intents, Passport revocation, elicitation behavior and expiry. Almost every sentence carries information, yet the unreadable-intent parenthetical and the elicitation paragraph are hard to parse on first read.

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 does cover the key return contract (GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, plus the retry payload). For a destructive, two-stage approval tool it is close to complete; only the shape of a successful decision result is left implicit.

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 coverage is 100% and the schema already documents notes, decision, approval_id, block_future and governance_approval_id, including that block_future is ignored on approve and governance_approval_id ignored on reject. The description's main addition is the two-call flow that produces a gvr_* id, but it largely restates the schema's own field semantics rather than adding new constraints.

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 (approve/reject) and the exact resource (an agent-submitted intent awaiting the owner, id prefix ia_*), which is enough to separate it from stack_get_intent_approval and the review tools 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?

Explicitly instructs reading first with stack_get_intent_approval and review=true, names the Console-only case for fleet-policy approvals, and describes the alternative browser path that applies to money-moving intents. Both when-to-use and when-this-will-fail are 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.