Skip to main content
Glama
agent-action-gate

agent-action-gate

by dwadlane

Run an approved action

execute_action
DestructiveIdempotent

Runs an approved action exactly once, returning the original result on repeat calls and refusing execution when approval, pause, rate-limit, or business-hours rules block it.

Instructions

Runs an approved action once. Calling it again returns the first result and changes nothing. Refused if the action is not approved, the system is paused, or a rate limit or business hours rule applies.

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>"
    },
    "name": "execute_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
action_idYes
executed_byNoagent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotentHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description still adds real value by spelling out the concrete consequence of idempotency (a repeat call returns the first result and changes nothing) and enumerating the gating conditions that cause refusal, which the annotations cannot express.

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, front-loaded with the operation, then the idempotency behavior, then the refusal conditions. Nothing is repeated from the title and no sentence is filler.

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?

For an irreversible, gated mutation the description covers preconditions and repeat-call behavior well, and no output schema means return values need not be explained. However, with no parameter documentation and no indication of what kinds of actions can be executed or what a refusal looks like to the caller, it is only adequate.

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

Parameters2/5

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

Schema description coverage is 0%, so the description needs to carry the burden for both parameters. It never explains what action_id refers to (presumably the ID of an approved action) or what executed_by should contain or whether it defaults to the invoking agent, leaving both fields undocumented in the schema and the prose.

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

Purpose4/5

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

The description gives a specific verb and resource ("Runs an approved action once") and implicitly scopes it against the approval lifecycle siblings by tying execution to prior approval. It stops short of naming which sibling produces the approval (e.g., approve_action), but the operation and its object are unambiguous.

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?

It states clear when-not conditions — the action must be approved, the system must not be paused, and no rate-limit or business-hours rule may apply — which gives an agent concrete preconditions to check. It also pre-empts redundant calls by saying a second call returns the first result, but names no alternative tool to use when execution is refused.

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