Skip to main content
Glama
company-mcp-server

company-mcp-server

by jaiswalpuza2

confirm_action

Destructive

Execute a previously proposed destructive operation using a single-use approval token. Validates token expiry and logs every success or failure to the audit trail.

Instructions

STEP 2 OF 2 — Execute a previously proposed destructive operation. Requires the approval_token returned by propose_action. The token is single-use and expires after a short window (default: 5 minutes). Returns an error if the token is invalid, expired, or has already been used. Every execution (success or failure) is logged to the audit trail.

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

Input Schema

NameRequiredDescriptionDefault
tokenYesThe approval token returned by propose_action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds genuinely new behavior: the token is single-use, expires after roughly 5 minutes, and failed as well as successful executions are audited. These are operational facts no structured field conveys.

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?

Four short sentences, front-loaded with the step number and purpose, then prerequisites, failure modes, and auditing. Nothing is repeated from the annotations and no sentence is 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?

For a destructive tool with no output schema, it covers prerequisites, failure conditions, and audit side effects thoroughly. The only gap is that the success response payload is never described, though an agent can reasonably assume an execution confirmation.

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% and the single parameter is already described there, so the baseline would be 3. The description earns an extra point by tying the token to its origin, its single-use nature, and its expiry window — meaning the schema does not carry.

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 ('Execute a previously proposed destructive operation') and explicitly positions itself as 'STEP 2 OF 2', which cleanly separates it from the sibling propose_action. An agent can tell the two apart without opening either 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?

The prerequisite is explicit: a token returned by propose_action is required, which effectively rules out calling this tool first. It doesn't spell out what to do when a token is missing or expired (e.g., re-invoke propose_action), so a small inference remains.

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