Skip to main content
Glama

Review an approval request

review_approval
Destructive

Approve, reject or withdraw one pending approval request.

When to use:

  • This connection's person is an approver and a request is waiting (list_items kind approvals; read it with get_items kind approvals).

  • Cancelling a request that is no longer wanted, or one left behind by a person who has gone: withdraw.

When NOT to use:

  • Editing the content: use update_items (an edit opens a new request).

What to know:

  • approve airs the content where it is assigned, at once; reject keeps it off screens; withdraw closes the request with no decision and puts the content back to draft. Each is final.

  • approve and reject need this connection's person to be an approver in the request's chain; withdraw needs the requester or such an approver. Otherwise the call is refused.

Parameters:

  • approvalId: an ar_… id from list_items kind approvals.

  • reason: required with reject and shown to the requester word for word; with approve, an optional note; ignored with withdraw.

  • Example: {approvalId:"ar_12", decision:"reject", reason:"Price on slide 2 is wrong."}.

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": {
      "approvalId": "<approvalId>",
      "decision": "<decision>"
    },
    "name": "review_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoA note for the person who asked. They see it with the decision. A rejection needs it; left out of an approval, the decision carries no note.
decisionYesThe outcome for the request. Each outcome is final.
approvalIdYesThe approval request to act on. Ids come from list_items kind approvals.

Output Schema

NameRequiredDescriptionDefault
noteNoThe requester's note.
stateNoIts state now: pending (more levels must approve), approved, rejected or withdrawn.
levelsNoEvery level the request must pass, in order.
nodeIdNoId of the location the request belongs to.
changesNoWhat the request would change, as the requester sent it.
nodeNameNoName of that location.
contentIdNoId of that content.
decidedAtNoISO 8601 time of the last decision.
decisionsNoThe decisions made so far, in order.
approvalIdNoThe approval request that was decided.
contentKindNoKind of the content the request is about.
contentNameNoName of that content.
requestedAtNoISO 8601 time it was asked for.
currentLevelNoThe approval level that decides next, counted from 0.
decisionNoteNoThe reason or note given with the last decision.
decidedByNameNoWho made the last decision.
requestedByNameNoWho asked for the approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / decision / description
      Previous value: -"What happens to the request: approve it, reject it, or withdraw it."New value: +"The outcome for the request. Each outcome is final."
    • changedInput schema / properties / reason / description
      Previous value: -"A note for the person who asked. They see it with the decision."New value: +"A note for the person who asked. They see it with the decision. A rejection needs it; left out of an approval, the decision carries no note."
  2. Changed22 schema fields changed
    • changedInput schema / properties / approvalId / description
      Previous value: -"Approval request id."New value: +"The approval request to act on. Ids come from list_items kind approvals."
    • changedInput schema / properties / decision / description
      Previous value: -"Approve, reject or withdraw."New value: +"What happens to the request: approve it, reject it, or withdraw it."
    • changedInput schema / properties / reason / description
      Previous value: -"Why."New value: +"A note for the person who asked. They see it with the decision."
    • addedOutput schema / description
      Added value: +"The request as it is after the decision."
    • addedOutput schema / properties / approvalId
      Added value: +{
      +  "description": "The approval request that was decided.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / changes
      Added value: +{
      +  "description": "What the request would change, as the requester sent it.",
      +  "type": [
      +    "object",
      +    "array",
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / contentId
      Added value: +{
      +  "description": "Id of that content.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / contentKind
      Added value: +{
      +  "description": "Kind of the content the request is about.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / contentName
      Added value: +{
      +  "description": "Name of that content.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / currentLevel
      Added value: +{
      +  "description": "The approval level that decides next, counted from 0.",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / data
      Removed value: -{
      -  "description": "The request with its new state and who decided.",
      -  "type": "object"
      -}
    • addedOutput schema / properties / decidedAt
      Added value: +{
      +  "description": "ISO 8601 time of the last decision.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / decidedByName
      Added value: +{
      +  "description": "Who made the last decision.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / decisionNote
      Added value: +{
      +  "description": "The reason or note given with the last decision.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / decisions
      Added value: +{
      +  "description": "The decisions made so far, in order.",
      +  "items": {
      +    "properties": {
      +      "decidedAt": {
      +        "description": "ISO 8601 time.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "decidedById": {
      +        "description": "Id of the person.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "decidedByName": {
      +        "description": "Their name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "level": {
      +        "description": "The level decided.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "note": {
      +        "description": "Their note.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / levels
      Added value: +{
      +  "description": "Every level the request must pass, in order.",
      +  "items": {
      +    "properties": {
      +      "approverIds": {
      +        "description": "Ids of the people who may decide.",
      +        "items": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "approverNames": {
      +        "description": "Their names.",
      +        "items": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "nodeId": {
      +        "description": "Location of the level.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "nodeName": {
      +        "description": "Its name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / nodeId
      Added value: +{
      +  "description": "Id of the location the request belongs to.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / nodeName
      Added value: +{
      +  "description": "Name of that location.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "The requester's note.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / requestedAt
      Added value: +{
      +  "description": "ISO 8601 time it was asked for.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / requestedByName
      Added value: +{
      +  "description": "Who asked for the approval.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / state
      Added value: +{
      +  "description": "Its state now: pending (more levels must approve), approved, rejected or withdrawn.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / decision / description
      Previous value: -"Approve or reject."New value: +"Approve, reject or withdraw."
    • changedInput schema / properties / decision / enum
      Previous value: -[
      -  "approve",
      -  "reject"
      -]New value: +[
      +  "approve",
      +  "reject",
      +  "withdraw"
      +]
  4. Changed3 schema fields changed
    • changedInput schema / properties / approvalId / description
      Previous value: -"Approval request id (ar_…), from list_items kind approvals."New value: +"Approval request id."
    • changedInput schema / properties / decision / description
      Previous value: -"approve or reject."New value: +"Approve or reject."
    • changedInput schema / properties / reason / description
      Previous value: -"Why. Required to reject (shown to the requester); optional note to approve."New value: +"Why."
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true and non-idempotent, but the description adds substantive behavior: approve airs content immediately, reject keeps it off screens, withdraw returns content to draft, each is final, and the exact authorization chain required per decision with refusal otherwise. That is precisely the context annotations cannot carry.

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?

Labeled sections make it front-loaded and scannable, and the worked example is compact. There is mild redundancy between the 'When to use' bullet about list_items kind approvals and the approvalId parameter note, but no filler sentences.

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?

An output schema exists, so return values need not be described; what remains — preconditions, per-decision effects, authorization, finality, and a call example — is fully covered for a three-parameter destructive mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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. The description does add a little beyond the schema — that reason is ignored with withdraw and that the id format is ar_… from list_items — but most of the reason/decision semantics are already stated in the schema field descriptions.

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?

Opens with a specific verb triple plus resource and scope: 'Approve, reject or withdraw one pending approval request.' It also names the sibling it is not (update_items) for the adjacent editing case, so an agent can route without opening a 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?

Provides explicit 'When to use' and 'When NOT to use' sections, including the precondition (the connection's person is an approver, request waiting) and the concrete alternative for editing content. The withdraw case is called out for abandoned or unwanted requests.

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