Skip to main content
Glama
shukiv

blesta-mcp

by shukiv

Get invoice

get_invoice
Read-onlyIdempotent

Retrieve complete invoice details by numeric invoice ID, including status, totals, taxes, and line items. Use this when you need a full invoice record for a known ID.

Instructions

Read one invoice by numeric invoice ID: displayed number (id_code), client_id, status, date_billed, date_due, date_closed, currency, subtotal, total, paid, due (total minus paid), taxes and line_items with descriptions, quantities and amounts. Wraps Invoices.get. Use search_invoices first if you only know the displayed invoice number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoice_idYesNumeric invoice ID (the `id` field, not the displayed number)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value by specifying exactly what is read and that it wraps Invoices.get, without contradicting the 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?

The description is efficient and front-loaded with the core action, followed by a useful field enumeration and usage note. The field list is somewhat long but earns its place since there is no output schema.

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

Completeness5/5

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

For a single-parameter read tool with no output schema, the description fully covers what it returns, how to identify the required input, and when to prefer a sibling tool. Nothing essential is missing.

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 schema already explains that invoice_id is the numeric `id` field, not the displayed number. The description reinforces this distinction and ties it to the return field list, adding practical context beyond the schema.

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 and resource: 'Read one invoice by numeric invoice ID' and enumerates the exact fields returned. It clearly distinguishes this tool from search_invoices by noting the lookup key is the numeric ID, not the displayed number.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly tells the agent when to use search_invoices instead: 'Use search_invoices first if you only know the displayed invoice number.' This gives clear routing guidance between two related tools.

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