Skip to main content
Glama

Get Invoice

get_invoice
Read-only

Retrieve the invoice for a delivered shipment (line items, taxes, payment status). Auth required.

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": "get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder ID (typically the same as shipment_id)

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 readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds value beyond them by stating 'Auth required' and by previewing the return contents, which matters because there is no output schema. The 'delivered shipment' qualifier also hints at a precondition that will fail on non-delivered orders, though the failure behavior itself is not spelled out.

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 short sentences with the operation, scope, return contents, and auth requirement front-loaded. Nothing is redundant and nothing could be cut without losing information.

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 simple one-parameter read tool with full annotation coverage, the description supplies the operation, the precondition, the auth requirement, and a summary of return fields in lieu of an output schema. It stops short of describing error cases for undelivered shipments or invoice availability timing, which is the only remaining gap.

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?

There is a single parameter and schema description coverage is 100%, with the schema already noting order_id is 'typically the same as shipment_id'. The description adds no meaning beyond that, so the baseline of 3 applies for a fully documented single parameter.

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 and resource ('Retrieve the invoice') plus the scope ('for a delivered shipment') and the payload ('line items, taxes, payment status'). It does not name or contrast a sibling such as get_documents or list_bookings, but the verb+resource pairing is unambiguous on its own.

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 phrase 'for a delivered shipment' implies the applicable condition, so an agent can infer this is the follow-up to a completed booking. However, it gives no explicit when-not guidance, no mention of what to call for pending/undelivered shipments, and no pointer to any alternative invoice-adjacent tool.

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.