Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

getInvoiceById

getInvoiceById

Retrieve details for a specific invoice by ID, including amounts in major units and optional line items.

Instructions

Retrieve details for a specific invoice by its ID. Invoice amounts are in major units (25 means $25.00).

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "getInvoiceById"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesThe unique ID of the invoice to retrieve.
__userContextNoInternal user context for multi-tenant authentication and approval workflow
include_line_itemsNoWhether to include line items in the response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses a non-obvious data convention (amounts in major units, 25 = $25.00), which annotations could not convey, but it says nothing about not-found behavior, permissions, or scope of returned fields.

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?

Two sentences, front-loaded with the purpose, with the units caveat second. No filler; the only slight waste is restating "by its ID" twice across title and description.

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?

A simple single-record read with a fully documented schema and no output schema, so the description is close to sufficient. It still omits what the response contains (does it include line items by default?) and any failure modes, leaving gaps for an agent deciding whether one call suffices.

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 invoiceId, include_line_items, and __userContext are already documented in the schema. The description adds no meaning to include_line_items (e.g. when it is expensive or what it returns), so it holds at the baseline.

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 ("Retrieve details for a specific invoice") and adds the lookup key ("by its ID"), which implicitly separates it from the sibling getInvoiceByExternalId. It does not differentiate against overlap-heavy siblings such as getInvoiceSummary or getInvoicePreviewHtml, so it falls short of a 5.

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 by the lookup key: an agent can infer this is the ID-based single-invoice fetch. There is no explicit when-to-use or when-not-to-use statement, and nothing says whether to use include_line_items here or call getInvoiceLineItems instead.

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

Deploy Server

Other Tools