Skip to main content
Glama
Mercury Multiorg MCP

Mercury Multiorg MCP

List an invoice's attachments

list_invoice_attachments
Read-onlyIdempotent

List all file attachments for one invoice, returning each attachment's ID and verbatim file name. Use it to inventory invoice files; no download URLs are provided.

Instructions

Inventory one invoice's attachments (id and file name). File names are verbatim third-party text; no download URLs.

    Use this for the files attached to one invoice; use `get_invoice` for
    the invoice itself and `list_tax_docs` for recipients' tax forms.
    Unpaginated; every attachment is returned.
    

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": {
      "entity": "<entity>",
      "invoice_id": "<invoice_id>"
    },
    "name": "list_invoice_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityYesExact `entity` key from `list_entities`, not its `display_name`. Required; there is no default.
invoice_idYesInvoice id from `list_invoices`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / entity / description
      Previous value: -"Entity key from `list_entities`. Required; there is no default."New value: +"Exact `entity` key from `list_entities`, not its `display_name`. Required; there is no default."
  2. First observedv0.1.4

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered; the description adds real value beyond that by warning that file names are verbatim third-party text and that no download URLs are returned, plus that the result is unpaginated. The only gap is undefined behavior for a nonexistent or inaccessible invoice_id (empty list vs. error).

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?

Front-loads the output shape first, then alternatives, then the pagination note; each of the three sentences carries distinct information with no repetition of the schema or title.

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?

An output schema exists, so return values need no explanation, and the description supplies the remaining essentials: what is listed, what is not included (download URLs), and that all results come back in one response. Nothing needed to call it correctly is missing.

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% and both parameters (`entity` sourced from list_entities, `invoice_id` sourced from list_invoices) are already documented in the schema. The description adds no further meaning about the 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — inventory one invoice's attachments — and immediately bounds the output to id and file name. It is clearly distinguishable from get_invoice and list_tax_docs, which it names.

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?

Explicitly says to use this for files attached to one invoice, and routes the agent to `get_invoice` for the invoice itself and `list_tax_docs` for recipients' tax forms. Both alternatives and the selecting condition are stated.

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