Skip to main content
Glama

List expenses

list_expenses
Read-only

List expenses (including amortizable fixed assets) across your accessible properties, newest first. Narrow with propertyId and/or year. Requires a plan that includes the expenses feature. Paged: if the result has a non-null nextCursor, call again with it as cursor for more. Always pass lang with the language of the user's message. The user sees the result as a screen: call this again whenever they ask to see these, even if you already have the data.

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_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoThe language of the user's message, so the view shown with the answer uses it (not sent to the API)
yearNoOnly this fiscal year, e.g. 2026
limitNoPage size, 1-200 (default 100)
cursorNo`nextCursor` from the previous page, to get the next one
propertyIdNoOnly expenses of this property

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the plan/entitlement requirement, the newest-first ordering, the cursor pagination loop, and the fact that results render as a screen the user can re-request. These are real behavioral traits an agent could not derive from the annotations.

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?

Four tight sentences, front-loaded with purpose and scope, then filtering, then prerequisites, then pagination and UI behavior. No sentence is filler; each carries a distinct instruction.

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?

With no output schema and five optional parameters, the description covers everything an agent needs: what is returned, ordering, how to page, how to narrow, the entitlement gate, and the required lang value. Nothing material is left to guesswork.

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 100%, so the baseline is 3, but the description adds operational meaning: 'Always pass lang with the language of the user's message' and the cursor round-trip rule ('call again with it as cursor'). It adds little on propertyId/year beyond the schema's own examples.

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'), plus scope ('across your accessible properties'), content ('including amortizable fixed assets') and ordering ('newest first'). It does not name the closest sibling, list_recurring_expenses, so the agent must infer that boundary, which keeps it below 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 Guidelines4/5

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

Gives concrete narrowing guidance ('Narrow with propertyId and/or year'), a prerequisite ('Requires a plan that includes the expenses feature'), and an explicit re-invocation rule for when the user asks to see the data again. It stops short of naming alternatives such as list_recurring_expenses, so the when-not-to-use case is left implicit.

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.