Skip to main content
Glama
Invoice Ninja MCP Server

Invoice Ninja MCP Server

by TETRA-2023

List expenses

in_list_expenses
Read-only

Retrieve and filter expenses by free-text search, status, and pagination to review active, archived, or deleted records with document counts.

Instructions

List expenses. filter is a free-text search across number, amount, notes and vendor/category/client names: compare number exactly yourself. Each row carries state (active/archived/deleted) and documents_count; status=all mixes the three states.

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": "in_list_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination.
sortNoSort directive, e.g. 'date|desc'.
filterNoFree-text search across the entity's searchable columns.
statusNoRecord state (default 'active'). 'all' also returns archived and deleted records.
per_pageNoRows per page (capped server-side, default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already covers safety; the description adds real value by disclosing the row payload (state and documents_count) and the mixing behavior of status=all. It does not cover pagination caps or ordering defaults, which are left to the schema.

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?

Front-loaded with the purpose, then two compact clauses on filtering and row shape. Dense but every clause carries information; semicolon chaining is slightly terse but not wasteful.

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?

Covers the two parameters whose behavior is non-obvious (filter, status) and the return-row contents, given no output schema. Page, per_page and sort are adequately documented in the schema, so nothing critical 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 already 100%, yet the description still adds meaning: it enumerates the columns filter searches (number, amount, notes, vendor/category/client names) versus the schema's generic "searchable columns," and flags that number requires exact comparison by the caller.

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: "List expenses." It is clearly distinguishable from the get_* siblings by being a list operation, though it never names a sibling alternative 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?

Gives practical guidance on how to use filter (free text, but compare `number` exactly yourself) and what status=all does. It does not say when to prefer in_get_expense for a single record or mention other list tools, so usage routing is only implied.

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