Skip to main content
Glama

Typebar (formerly SuperDocs)

approve_change

Used with chat_async when approval_mode='ask_every_time'. For each proposed change (with chunk_id and HTML diff), respond approved=true|false plus optional feedback for the AI to revise on. Approved changes apply atomically; denied changes are discarded; the AI may revise based on feedback in the next turn. Required for regulated workflows (legal, medical, compliance) where every AI edit must be reviewed before it touches the document. For single changes: set approved=true/false and optionally provide feedback. For batch decisions: provide a 'changes' array with per-change decisions. After approval, the job resumes processing and eventually reaches status=completed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesJob ID that is awaiting approval.
changesNoBatch decisions: array of {change_id, approved, feedback} objects. Use for 'Accept All' or 'Deny All'.
approvedYesWhether to approve (true) or deny (false) the change.
feedbackNoOptional feedback explaining why a change was denied. Helps the AI adjust future suggestions.
change_idNoSpecific change to approve/deny (for individual decisions). Get change IDs from the job's pending_changes.
session_idYes
authorizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses that approved changes apply atomically, denied changes are discarded, the AI may revise on feedback next turn, and the job resumes to status=completed. It does not explain the 'authorization' parameter or any permission requirements, so a small gap remains.

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?

Front-loaded with the trigger condition and the core decision semantics, then adds workflow context. It is somewhat long and has mild redundancy (approved/denied restated), but every section addresses a distinct invocation concern rather than padding.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by stating the downstream effect (changes apply/discard, job resumes and reaches status=completed). Combined with coverage of the single/batch modes and the regulated-workflow requirement, an agent has everything needed to call this correctly.

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 71%, so the schema already documents most parameters. The description still adds value by explaining the single-change path (approved + optional feedback) versus the batch path ('changes' array with per-change decisions), including the semantics of feedback as revision input. It does not clarify the undocumented 'authorization' parameter.

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+resource (approve/deny each proposed change) and ties it explicitly to the sibling chat_async under approval_mode='ask_every_time', so it is clearly distinguishable from the dozens of other session/job tools. An agent understands exactly what this does 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 explicit when-to-use triggers (approval_mode='ask_every_time', regulated workflows requiring every edit to be reviewed) and breaks down single-change vs batch-change invocation. The alternative paths (per-change vs 'changes' array) are named rather than left to inference.

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.