Skip to main content
Glama

get_invoice

Retrieve a single stored invoice by ID, including its line items and validation issues, to inspect extracted data and Saudi VAT compliance results.

Instructions

Get one stored invoice with its line items and validation issues.

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

Input Schema

NameRequiredDescriptionDefault
invoice_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the return payload (line items and validation issues), which is more than a bare getter would, but it says nothing about behavior on a missing or invalid invoice_id, permission requirements, or whether the result is cached/stale.

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?

A single front-loaded sentence with zero filler; the scope (one invoice) and the payload (line items, validation issues) are both stated immediately.

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 single-parameter read tool with no output schema, the description covers what is returned, which is the main thing the schema omits. What remains missing is edge-case behavior and alternative-route guidance, which is a modest gap rather than a blocking one.

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 one parameter with 0% schema description coverage, so the schema only contributes type and required status. The phrase "one stored invoice" implies the id selects the record, but the description adds no format, source (stored vs ingested), or error semantics for the id.

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?

"Get one stored invoice" gives a specific verb and resource, and "one" distinguishes it from the list_* and query_* siblings by implying single-record retrieval by identifier. It stops short of naming a sibling explicitly, but an agent can tell it apart from list_invoices or spending_report.

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?

Usage is only implied: the fact that it takes an invoice_id and returns a single record suggests it is the follow-up to a list/query call, but the description never states when to prefer it over query_invoices_sql or what to do when the invoice is unknown. No prerequisites or exclusions are given.

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