Skip to main content
Glama

Approve an item

approve_item
Destructive

Approve one item your AI team prepared — this carries it out (it may publish a post, send an email to a customer, or change the owner's website). First read it with get_item and show the owner what it says; only call once they have clearly said to approve it, passing the contentHash get_item gave.

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": {
      "id": "<id>"
    },
    "name": "approve_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe item's id, from list_pending_approvals or get_briefing.
contentHashNoThe contentHash get_item gave for the version the owner was shown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / contentHash
      Added value: +{
      +  "description": "The contentHash get_item gave for the version the owner was shown.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true, and idempotentHint=false; the description adds real value beyond them by naming the concrete outward effects (post published, customer emailed, website changed) and the human-consent precondition. It stops short of saying what happens on a stale or mismatched contentHash (rejection error vs. silent re-approval), which is the one behavioral detail still missing.

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?

Front-loaded with the action and its consequence, then the precondition, then the parameter requirement — a logical sequence with no filler. The parenthetical enumeration of possible effects is dense information, not padding.

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?

With no output schema the description should ideally say what a successful or failed approval returns, and it does not. Everything else an agent needs — consent gate, effect scope, version pinning — is present, so the gap is minor for a two-parameter action tool.

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 explains *why* contentHash matters — it must be the hash for the exact version the owner was shown — which the schema only states as 'the contentHash get_item gave.' It also reinforces that id comes from list_pending_approvals or get_briefing.

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 (approve) and resource (one item prepared by the AI team) and immediately spells out the real-world consequence: publishing a post, emailing a customer, or changing the owner's website. That verb+resource+effect framing lets an agent distinguish it from get_item, reject_item, and the list tools 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 Guidelines5/5

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

Gives an explicit ordered workflow: read with get_item first, show the owner the content, and only call after they have clearly said to approve. This is a genuine when-to-use gate with a named prerequisite tool, not implied guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources