Skip to main content
Glama
Prime MCP Server

Prime MCP Server

by MikahDev

prime_update_ap_invoice_status

Update the status of an accounts payable invoice by providing its invoice ID and new status ID. Use this to move AP invoices through approval or payment workflows.

Instructions

Update the status of an accounts payable invoice.

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": {
      "invoice_id": "<invoice_id>",
      "status_id": "<status_id>"
    },
    "name": "prime_update_ap_invoice_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
status_idYesNew status ID
invoice_idYesThe invoice ID to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about side effects, whether the status change is reversible, what validation applies to status_id, or what happens if the invoice is locked or posted. For a mutation tool with zero annotation coverage this is a meaningful gap.

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?

A single well-formed sentence with the action and target front-loaded and zero filler. It is efficient, though its brevity reflects under-specification rather than disciplined economy.

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

Completeness2/5

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

The tool is structurally simple (2 required parameters, no nesting, no output schema), but as an unannotated mutation the definition should at least mention valid status values, idempotency or reversibility, and error conditions. None of that is present, leaving the agent to guess at operational behavior.

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 description coverage is 100%: both invoice_id and status_id are documented with format and intent, so the schema does the heavy lifting. The description adds no further meaning, such as which status values are valid or where to obtain them, so baseline 3 applies.

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 ("Update") and resource ("status of an accounts payable invoice"), which clearly separates it from siblings like prime_update_ap_invoice (field edits) and prime_update_ar_invoice_status (receivables side). It stops short of naming those alternatives, so it does not fully differentiate at the level a 5 requires.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus prime_update_ap_invoice or the AR counterpart, and no stated prerequisites such as required permissions or whether the invoice must be in a particular state. The only cue is the implied meaning of "update status."

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

Deploy Server

Other Tools