Skip to main content
Glama
agent-action-gate

agent-action-gate

by dwadlane

Approve an action

approve_action

Records a named person's approval for a pending action; high-risk actions need two different approvers, and approval alone does not execute the action.

Instructions

A named person approves a pending action. High risk actions need two different people. Approving does not run 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>",
      "approver": "<approver>"
    },
    "name": "approve_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
approverYesFull name of the person approving
action_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, non-idempotent mutation, and the description adds genuinely new behavior: a two-person rule for high-risk actions and the fact that approval has no execution side-effect. It omits error/permission behavior, such as what happens on self-approval or approving an already-approved action, which keeps it from a 5.

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, all load-bearing, with the core action stated first and the two key behavioral constraints following. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 carries the burden of describing results, but it never says what is returned or what state the action enters (e.g., awaiting second approval vs. approved). For a multi-approval workflow mutation, the missing partial-approval outcome and failure modes are notable gaps.

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 only 33%, with just 'approver' documented. The description compensates partially by establishing that the approver is a named person and must be a different person for high-risk actions, but 'note' and 'action_id' receive no meaning in either place, leaving real gaps.

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 and resource ('a named person approves a pending action') and immediately bounds the behavior with 'Approving does not run it,' which separates it from the execution sibling. An agent can tell what this does and what it does not do 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 Guidelines4/5

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

Usage is clearly implied for pending actions awaiting sign-off, and the 'does not run it' clause tells the agent a follow-up execute step is needed. It stops short of explicit exclusions (e.g., pointing to reject_action for denials or execute_action for running an approved action), so it is clear context without full routing guidance.

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