Skip to main content
Glama

Get a synced Xero invoice

get_xero_invoice
Read-onlyIdempotent

Return one sales invoice from the signed-in owner’s latest completed SHVL Xero sync plus aggregate recorded-payment evidence. Read-only. Excludes Xero IDs, payment IDs, email addresses and message content.

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

Input Schema

NameRequiredDescriptionDefault
invoice_idYesSHVL invoice_id returned by search_xero_invoices for this business, not a Xero provider ID or invoice number.
workspace_idYesSelected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business.

Output Schema

NameRequiredDescriptionDefault
sourceYes
invoiceYes
paymentsYes
data_noticeYes
organisationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / invoice_id / description
      Added value: +"SHVL invoice_id returned by search_xero_invoices for this business, not a Xero provider ID or invoice number."
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Exact workspace_id returned by list_shvl_workspaces and selected by the user. Never infer a different client workspace."New value: +"Selected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business."
    • addedOutput schema / description
      Added value: +"invoice contains the SHVL invoice ID, customer summary, dates, currency and amounts in minor units. payments contains recorded_count, recorded_total_minor and latest_paid_at from synced records, not bank verification. source identifies the completed sync. Provider payment IDs and contact addresses are excluded."
  2. Added

TDQS

A3.8/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 description is not carrying the safety burden. It still adds genuine context beyond them: the data reflects only the latest completed sync (a freshness caveat) and the response deliberately redacts Xero IDs, payment IDs, email addresses and message content.

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?

Three short sentences, each carrying distinct information: scope and source, safety posture, and redaction rules. No filler and the core scope statement is front-loaded.

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?

An output schema exists, so return values need no explanation, and the description covers source freshness and redaction. The only minor gap is what happens when the invoice is absent from the latest sync (error versus empty result), which an agent would want to know.

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 both parameters are already documented, including the warning that invoice_id is a SHVL ID rather than a Xero provider ID and the instruction not to infer workspace_id. The description adds nothing further about parameters, so the baseline of 3 applies.

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 ('Return one sales invoice') and narrows scope to the signed-in owner's latest completed SHVL Xero sync plus aggregate recorded-payment evidence. The singular 'one' implicitly distinguishes it from search_xero_invoices, but no sibling is named 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: retrieving a single invoice presupposes an already-known invoice_id, and the schema notes that the ID comes from search_xero_invoices. The description itself offers no explicit when-to-use, when-not-to-use, or alternative-tool routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources