Skip to main content
Glama

list_invoices

Filter and retrieve stored invoices by vendor, category, date range, validity, or limit to answer spending questions and review invoice records.

Instructions

List stored invoices with optional filters. Dates are ISO strings (yyyy-mm-dd).

Categories: office_supplies, it_services, utilities, catering, logistics, maintenance, other.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
vendorNo
date_toNo
categoryNo
date_fromNo
only_invalidNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It never states that the operation is read-only, what the default limit of 50 implies for pagination, what only_invalid means, or whether results are ordered — all material for a listing tool.

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 short blocks, front-loaded with the core function and followed by the constraint details; the category enumeration earns its length because it substitutes for a missing schema enum. No filler sentences.

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?

An output schema exists, so return values need no explanation, and the date/category constraints are covered. For a six-parameter tool with zero schema coverage and no annotations, leaving only_invalid and limit behavior undefined makes it adequate but incomplete.

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 coverage is 0% across six parameters, so the description must compensate, and it partially does: it fixes the ISO yyyy-mm-dd format for date_from/date_to and enumerates the legal category values that the schema leaves as an unconstrained string. However, limit, vendor, and especially only_invalid receive no explanation at all, which is a significant residual gap.

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 gives a specific verb and resource ('List stored invoices') plus the filtering capability, so the intent is unambiguous. It does not distinguish this tool from the overlapping siblings query_invoices_sql or get_invoice, leaving the agent to infer the boundary.

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?

There is no explicit when-to-use statement and no named alternative, despite query_invoices_sql and get_invoice sitting in the same namespace. Usage is only implied by the phrase 'with optional filters', and no exclusion or prerequisite is given.

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