Skip to main content
Glama

Decide Invoice Approval Request

decide_invoice_approval_request

Record the current human user's explicit approve/reject decision for a invoice. Requires exact-change review and being an assigned current-step approver. Amount ceilings restrict approvals, not rejections; subsequent approval steps still apply. MCP approval requirements are configurable by the organization administrator; business workflow approvals always apply.

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": {
      "requestId": "<requestId>",
      "data": "<data>"
    },
    "name": "decide_invoice_approval_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
requestIdYes

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare the generic mutation profile (not read-only, not destructive, not idempotent). The description adds substantive behavioral context beyond that: approver-assignment requirement, ceiling-vs-rejection asymmetry, that 'subsequent approval steps still apply', and configurable MCP approval requirements. This is meaningful disclosure, though it omits error/failure behavior.

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?

Roughly four sentences that are front-loaded with the core action, then conditions, then approval-rule nuance. Dense but each clause carries information; no 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?

An output schema exists, so return values needn't be described, and the behavioral prerequisites are well covered. The one gap is parameter-level explanation, which is left entirely to the bare schema; otherwise the definition gives an agent enough to call it correctly.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and does not. It implies the approve/reject enum via 'approve/reject decision' but never explains requestId (a UUID identifying the request) or the notes field, leaving both required/nested parameters undocumented in prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Record ... decision') and resource ('invoice approval request') with a clear approve/reject scope. It distinguishes the action from the adjacent submit_/cancel_/find_ invoice-approval siblings by emphasizing recording an actual decision, though it never names those alternatives explicitly.

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?

It gives concrete prerequisites: 'being an assigned current-step approver' and 'exact-change review', and clarifies that amount ceilings restrict approvals but not rejections. This supplies clear when-to-use context, though it does not explicitly route to sibling tools (e.g. submit vs cancel vs find) for other situations.

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