Skip to main content
Glama

PortalRunner — QuickBooks to Coupa AP Autopilot

Simulate Coupa PO-Flip (Dry-Run)

simulate_coupa_po_flip

Runs a dry-run penny-exact QuickBooks Online to Coupa CSP PO-flip simulation. Pass inject_drift_cents (e.g. 1 for +$0.01) to trigger the pre-submit Halt-on-Drift guardrail, or omit/set 0 to mint and verify a real Ed25519 Proof Receipt.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "simulate_coupa_po_flip"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoExecution mode: autopilot (submit) or draft_first (stage draft for 1-click approval). Default: autopilot.
po_numberNoOptional Purchase Order number (default: PO-4500912).
buyer_nameNoOptional Coupa buyer entity name (default: CommonSpirit Health — Facilities Procurement).
invoice_numberNoOptional QBO invoice document number (default: INV-1088).
inject_drift_centsNoOptional tax/rounding drift in cents to inject (e.g. 1 for +$0.01 Halt-on-Drift check). Defaults to 0 (penny-exact pass).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, closed-world, so the safety profile is covered. Beyond that, the description discloses the salient behavior an agent cannot get from annotations: the run is a dry-run, rounding is penny-exact, a positive drift triggers a pre-submit Halt-on-Drift guardrail, and a clean run mints a real Ed25519 Proof Receipt. It does not say what a halt looks like in the response, which keeps it from a 5.

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

Conciseness5/5

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

Two sentences, zero waste, front-loaded with what the tool does and then the one decision the caller must make. The 'dry-run' qualifier and the drift-vs-receipt fork are stated before any incidental details.

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?

For a five-parameter, all-optional simulation with full schema coverage and no output schema, the definition covers purpose, the two operating paths, and the artifact produced. The remaining gap is return shape — what a Halt-on-Drift response contains versus a successful receipt — which matters given there is no output schema to fall back on.

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%, so every parameter including mode, po_number, buyer_name, invoice_number, and inject_drift_cents is already documented. The description reinforces the most consequential one ('1 for +$0.01') and frames it as the guardrail trigger, but adds no syntax, format, or constraint detail beyond the schema, so the 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?

States a specific verb and resource: 'runs a dry-run penny-exact QuickBooks Online to Coupa CSP PO-flip simulation', which is concrete and unambiguous. It does not explicitly differentiate itself from the sibling verify_ed25519_receipt even though it mentions minting/verifying an Ed25519 Proof Receipt, so it falls just short of full sibling separation.

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

Usage Guidelines3/5

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

The description gives a clear parameter-level choice: pass inject_drift_cents to exercise the Halt-on-Drift guardrail, omit/0 to mint and verify a receipt. That is useful conditional usage, but it is framed around one parameter rather than when to pick this tool over the listed siblings or what prerequisites (e.g. credentials, configured Coupa/QBO connections) apply.

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