Skip to main content
Glama
Invoice Query MCP Server

Invoice Query MCP Server

Get invoice by ID

get_invoice

Fetch a single invoice by its ID to retrieve individual invoice details for review or validation.

Instructions

Fetch a single sample invoice by invoice_id (e.g. INV-1003).

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_idYesInvoice ID such as INV-1001

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the entire behavioral burden, and it discloses almost nothing. It never says what happens if the ID is unknown, whether the read is safe/non-mutating (only implied by 'fetch'), or what the response contains; the word 'sample' hints at synthetic data but is unexplained.

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?

One short sentence, front-loaded with the verb and resource, with the key example placed inline. No filler to trim.

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

Completeness3/5

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

For a one-parameter lookup this is close to sufficient, but with no output schema and no annotations the description leaves the return shape and not-found behavior entirely unknown. A brief note on what a fetched invoice contains would make it complete.

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 coverage is 100% with a single required string, so the schema already defines the parameter. The description restates the same example format (INV-1003 vs INV-1001) without adding case sensitivity, format constraints, or lookup-failure semantics.

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 (fetch) and resource (a single invoice) plus the lookup key (invoice_id), which separates it from the list-style siblings such as list_invoices and overdue_invoices. It stops short of naming those siblings explicitly.

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: an agent can infer this is the tool for a known invoice ID rather than a browsing/summary query, but there is no explicit when-to-use or when-not-to-use statement and no pointer to invoice_summary or list_invoices.

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