Skip to main content
Glama

Invoice shipped

o2c_invoice_shipped
Destructive

Issue an invoice for everything shipped on this order and not yet billed. We bill what shipped, never what was ordered. That single rule is what keeps AR reconcilable: every invoice line traces to a delivery line, and an order that shipped in three parts produces three invoices, not one guess.

The due date comes from the customer's terms. Do not pass a due date; if the terms are wrong, fix the terms. Effects: invoice created; order_line.qty_invoiced increased; order.status -> closed when fully billed.

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": {
      "order_id": "<order_id>"
    },
    "name": "o2c_invoice_shipped"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order to bill. An existing order 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?

Annotations already flag destructiveHint=true and non-idempotent, but the description goes further by enumerating the concrete state changes: invoice created, order_line.qty_invoiced increased, and order.status set to closed when fully billed. It also documents the derived due-date behavior and redirects the agent to fix customer terms rather than override the date, which is real operational context an agent could not infer from annotations.

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?

Purpose is front-loaded in the first sentence, followed by the rationale, the due-date rule, and an effects block that is easy to scan. The AR-reconcilability sentence is slightly discursive but earns its place by explaining why multi-part shipments yield multiple invoices.

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 one-parameter mutation with no output schema, the description covers scope, derived fields, side effects, and the key constraint on due dates. The one gap is that it never says what is returned (e.g., the new invoice id), which matters for a tool whose whole purpose is to produce an invoice.

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% and the single order_id parameter is already documented, so the baseline is 3. The description adds genuine meaning by specifying what the order_id drives (shipped-not-billed lines only) and by explicitly warning not to pass a due date, which is a semantic constraint the schema does not express.

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?

The description states a specific verb (issue), resource (invoice), and scope (everything shipped on this order and not yet billed), then reinforces it with the rule 'we bill what shipped, never what was ordered.' That scope statement is precise enough to distinguish this from order-based or draft-invoice siblings without naming them.

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 a clear condition for use — bill only shipped, unbilled quantities — and explains the consequence (an order shipped in three parts produces three invoices). It also gives an explicit negative instruction about the due date. It stops short of naming alternative tools or stating when not to call it (e.g., nothing shipped yet).

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.