Skip to main content
Glama

Update an approval request

update_request
Destructive

Change field values on an approval request the user submitted and that is still open. Editing a request that has already been approved is rejected by the tool. Saving DISCARDS every approval already given: the approvers are cleared and have to decide again. Pending and change-requested requests return to pending; deferred, scheduled and draft ones keep their status. The approvers are re-notified except on scheduled and draft, where the requestor gets the usual notice and approvers and watchers are not told; on a workflow with no approvers nothing re-opens and no approval notifications go out. On every save, outbound emails and webhooks set up on the workflow fire for the status it ends up in. Tell the user that before calling, not after: the preview's on_save says which applies to this request and names whose approval is reset. Two-step: call with confirmed=false (the default) first for a preview of the new values with NOTHING written yet; call again with the same ar_identifier and fields plus confirmed=true to save them. A confirmed=true call with no matching preview from this connection in the last 10 minutes is run as the preview instead, and writes nothing. One preview admits one attempt, so a call that fails needs a new one. If the server cannot reach its preview store it does not hold the call back, so always preview first regardless. A preview also lapses once the request changes, someone else's decision on it included, so the next call previews it again.

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": {
      "ar_identifier": "<ar_identifier>",
      "fields": "<fields>"
    },
    "name": "update_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesMap of field key to NEW value — ONLY the fields being changed. Prefer the field's `id` (UUID) from get_workflow_details / describe_approval_request as the key; the binding name or exact label are accepted fallbacks. Values follow the field type (numbers for amount/number, YYYY-MM-DD for dates, option values for dropdowns, resolved IDs for vendor/customer/etc. — use search_entities to resolve names to IDs first). A line-item tax cell takes the tax's id, never its percentage; the tool stores the tax's rate.
confirmedNofalse (default) returns a preview of the new values and writes NOTHING. true saves the change. Preview, show the user, wait for their yes, then call again with the same ar_identifier and fields plus true.
ar_identifierYesThe approval request to edit — friendly number like 'AR-15' / '15' or the internal integer id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Far exceeds the annotations by spelling out consequences the flags only hint at: every existing approval is discarded and approvers must decide again, status transitions differ by starting state, approvers are re-notified with explicit exceptions for scheduled and draft requests, and outbound emails/webhooks fire on every save. It also discloses the 10-minute preview window, the one-attempt-per-preview rule, the silent fallback when the preview store is unreachable, and preview lapse on external changes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the destructive warning are correctly front-loaded, but the body is a single dense block with repeated preview warnings ("always preview first regardless", "the next call previews it again") that would read better as ordered steps. Nearly every sentence carries real information, so the issue is structure and redundancy rather than filler.

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?

For a destructive, non-idempotent, open-world mutation with a nested fields object, the definition covers side effects, notification routing, state transitions, and the preview protocol. With no output schema present, it also tells the agent what the preview's on_save reveals, leaving no material gap for correct invocation.

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 adds meaning the schema does not: the confirmed=true call must reuse the same ar_identifier and fields as its preview, and previews expire after 10 minutes or on external changes. It does not add field-key or value-format guidance beyond what the schema already states.

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 ("Change field values on an approval request") plus a scope restriction ("the user submitted and that is still open"), which cleanly separates it from approve_request, reject_request and cancel_request. An agent knows exactly what operation this performs 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 Guidelines4/5

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

Gives clear when/when-not conditions: only open requests the user submitted, and edits on already-approved requests are rejected. It also prescribes the mandatory two-step preview-then-confirm procedure. It stops short of naming sibling tools as alternatives, which keeps it below a 5.

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