Skip to main content
Glama
agent-action-gate

agent-action-gate

by dwadlane

Reject an action

reject_action

Turns down a pending agent action so it can never run. A named approver rejects the request and records the reason.

Instructions

A named person turns down a pending action. It can never run.

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": "reject_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
approverYes
action_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation; the description adds genuine behavioral context with 'It can never run', which tells the agent the rejection is terminal for the action. However, it omits whether the rejection is reversible (an undo_action sibling exists), what permissions the approver needs, and what happens to the requester.

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 operation and followed immediately by its consequence; no filler. The terseness leaves gaps, but those are captured under the other dimensions rather than being wasted words.

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 a three-parameter mutation with no output schema it covers the core action and its terminal effect but leaves the reason parameter, permission model, and reversibility unaddressed. An agent could call it, but would be guessing on several details.

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 must carry all parameter meaning. 'A named person' loosely maps to the required 'approver' and 'pending action' to 'action_id', but the optional 'reason' parameter is never mentioned and no format or example is given for any of the three.

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?

States a specific verb ('turns down') and resource ('a pending action'), and 'pending' narrows the scope enough to separate it from approve_action/execute_action without opening a schema. It does not name any sibling explicitly, so it falls short of a 5.

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?

The word 'pending' implies the precondition that only actions awaiting decision can be rejected, which is real but implicit guidance. There is no explicit statement of when to reject versus approve, nor of prerequisites such as who is allowed to reject.

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