Skip to main content
Glama

Confita

Confirm or cancel a held action

confirm_action
DestructiveIdempotent

For shop owners: the Confirm and Cancel buttons in Confita's confirm card call this with the one-time token the card holds. Only the card can call it.

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": {
      "action_id": "<action_id>",
      "token": "<token>",
      "decision": "<decision>",
      "request_id": "<request_id>"
    },
    "name": "confirm_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe one-time token from the held reply's _meta.
decisionYesconfirm runs the held action as it was shown; cancel withdraws it.
action_idYesThe held action, from the reply's confirmation.
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
codeNo
doneNo
nextNo
errorNo
messageNo
outcomeNo
summaryNo
decisionNo
happenedNo
timezoneNo
action_idNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the risk profile is carried by structured data. The description adds useful context beyond that: the one-time token comes from the card and the call is restricted to the UI. It does not explain what the held action contains, whether confirm is reversible, or what cancelling discards.

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?

Two short sentences, front-loaded with the audience, with no redundant wording. It could be tighter by leading with the operation rather than the button provenance, but there is no filler.

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?

The tool has an output schema, full parameter descriptions, an enum on decision, and rich annotations, so most structured context is already present. What remains thin is conceptual: what a 'held action' is and how it comes to exist, which the description leaves 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 description coverage is 100%, with clear per-field descriptions for token, decision, action_id, and request_id, so the baseline is 3. The description only echoes the token's origin ('the one-time token the card holds') without adding format, lifecycle, or expiry semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the two operations indirectly through the UI controls ("Confirm and Cancel buttons") but never states plainly that this tool confirms or cancels a held action, nor what a 'held action' is. It also gives no signal distinguishing it from siblings like decide_order, cancel_order, or cancel_pending. The intent is inferable, but the agent must do the inferring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is an explicit negative constraint: 'Only the card can call it,' plus the audience framing 'For shop owners,' which implies an agent should not invoke this tool directly. However, no alternative is offered for cases where an agent wants to act on a held or pending item, so the routing guidance is implied rather than actionable.

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