Skip to main content
Glama

get_invoice

Retrieve complete invoice details including line items from FreshBooks. Use this tool to access specific invoice information for accounting and client management purposes.

Instructions

Get full details of a specific invoice including line items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoice_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The `get_invoice` tool is defined here as an asynchronous function, decorated with @mcp.tool() for registration and @_handle_errors for error management. It calls client.accounting_get to fetch invoice data and formats it using _fmt.
    @mcp.tool()
    @_handle_errors
    async def get_invoice(invoice_id: int) -> str:
        """Get full details of a specific invoice including line items."""
        result = await client.accounting_get("invoices/invoices", invoice_id)
        return _fmt(result.get("invoice", result))
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read operation but doesn't specify permissions needed, rate limits, error handling, or whether it's idempotent. The phrase 'full details' is vague about what data is included beyond line items.

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 a single, efficient sentence that directly states the tool's purpose. It's appropriately sized and front-loaded, with no wasted words, though it could be slightly more informative without losing conciseness.

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?

Given the tool's low complexity (1 parameter, no nested objects) and the presence of an output schema, the description is reasonably complete. It covers the core action and resource, though it lacks behavioral details that would be helpful without annotations.

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 0%, so the description must compensate, but it only implies the parameter 'invoice_id' without explaining its format or constraints. The baseline is 3 because the schema provides the parameter structure, but the description adds minimal value beyond that.

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 clearly states the verb 'Get' and the resource 'full details of a specific invoice including line items', making the purpose evident. However, it doesn't explicitly differentiate from siblings like 'list_invoices' or 'update_invoice', which would require 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 Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an invoice ID) or compare it to sibling tools like 'list_invoices' for browsing or 'update_invoice' for modifications.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AlexlaGuardia/MCP-Freshbooks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server