Skip to main content
Glama

Answer an agent's approval card

answer_agent_approval
DestructiveIdempotent

Answer a deployed agent's approval card to allow one call, always permit an action, or decline it; confirm only after the user responds.

Instructions

Answer a deployed agent's approval card. When the agent calls a Connector action whose permission is Ask (by default every Create and send and Change and delete action in chat), the action does not run: Wiro shows a card with the exact request, and the agent waits for a person's answer. send_agent_message, get_agent_message and get_agent_conversation list these cards under approvals, with messageguid and cardid, and get_agent_connector_permissions lists the ones a scheduled task or the agent's own work asked for. answer allow runs this one call once; always runs it and also lets the action run without asking from now on, in the columns that ask for it now (a column set to Block stays blocked, and an action the connector has not listed yet is allowed only this once), and needs an agent admin: the person who deployed the agent or a team admin of its team; decline turns down this one call, and the next call asks again. Without confirm it shows the card, its request and what the answer does, and changes nothing: show it to the user and ask. With confirm: true, only after the user answered, it answers. After an approval the agent goes on in a new turn of the chat the card is in, and get_agent_message with the returned message id reads its answer. A yes or no the user types in the agent's chat answers a card too. A card waits 24 hours, and an approval is used within an hour. Studio and the Workflow Agent never ask.

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": {
      "agent": "<agent>",
      "messageguid": "<messageguid>",
      "cardid": "<cardid>",
      "answer": "<answer>"
    },
    "name": "answer_agent_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesThe deployed agent's guid, from list_my_agents.
answerYesallow (this call once), always (this call, and the action runs without asking from now on; an action the connector has not listed yet is allowed only this once; agent admins only) or decline (turn down this call).
cardidYesThe card's id: cardid of the approval.
confirmNofalse (default) shows the card and what the answer does, and changes nothing. true answers it: set it only after the user answered.
messageguidYesThe message the card is on: messageguid of the approval, from send_agent_message, get_agent_message, get_agent_conversation or get_agent_connector_permissions.

Output Schema

NameRequiredDescriptionDefault
agentYes
answerYes
cardidYes
resumeNo
messageYes
outcomeYespreview: the card is shown and nothing changed. answered: Wiro took the answer. not_waiting: the card was already answered or expired. refused: Wiro did not take the answer, for the reason in message.
summaryNoWiro's summary of the answer, such as "Allowed once."
approvalNoThe card, as it is now.
nextActionNo
messageguidYes
permissionsNoAfter always: the action's permissions in Chat and Autopilot now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations, it discloses that answering causes the action to run, that "always" persists future behavior except in columns set to Block, that admin rights are required, and that cards expire in 24 hours while an approval must be used within an hour. These are substantive behavioral facts not derivable from destructiveHint/openWorldHint, though the exact side effects of the underlying connector action are only described generically.

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?

The purpose and the confirm rule are front-loaded, but the body is a dense block of run-on sentences that pack several distinct rules into single lines, and parts of the allow/always/decline text duplicate the schema's enum description. It is informative but heavier than it needs to be.

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?

For a mutating, permission-sensitive tool this covers the essentials: required identifiers and their sources, the confirm safety gate, authorization, expiry, and what happens after the answer (the agent continues in a new turn, readable via get_agent_message). With an output schema present, it correctly omits return-value detail.

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, but the description adds meaning the schema only partially carries: the per-column Block caveat for "always", the unlisted-connector one-time allowance, and the admin requirement behind that answer. It also reinforces confirm as a two-step safety gate rather than a plain boolean.

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 states a specific verb and resource ("Answer a deployed agent's approval card") and the body explains exactly what a card is and what the tool does to it. It also names the sibling tools that surface cardid/messageguid, so an agent can locate the input and distinguish this tool from the read-only listing tools.

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 when to call (a card exists and a person must answer), the alternative path (a typed yes/no in the chat also answers a card), and the prerequisite for the elevated answer (agent admin). The confirm workflow is spelled out explicitly: without confirm show the card and ask the user, with confirm: true only after the user answered.

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