Skip to main content
Glama

list_ehour_expenses

Read-only

Expenses of one user on one day, with category, amount, VAT and receipt info (GET /api/v2/expenses/{userId}/{day}). Required: user_id, day (YYYY-MM-DD, UTC). For expense totals over a period use get_ehour_report with columns such as EXPENSE_CATEGORY_NAME,EXPENSE_COST. Read-only.

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": {
      "user_id": "<user_id>",
      "day": "<day>"
    },
    "name": "list_ehour_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYesYYYY-MM-DD
user_idYesID of the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered and the trailing "Read-only" is largely redundant. The description earns credit for disclosing the actual payload shape (category, amount, VAT, receipt info) and the underlying endpoint, which no annotation conveys; it says nothing about behavior when the user or day has no expenses.

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?

Three short sentences, front-loaded with the scope before the alternative route. Minor waste in restating "Required: user_id, day" (already in the required array) and "Read-only" (already in annotations), but the density is otherwise high.

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?

For a two-param read with no output schema, the description covers scope, the timezone nuance, and the return fields, which is enough to call it correctly. It stops short of stating whether multiple expense rows come back or how an unknown user_id is surfaced, which are the only remaining ambiguities.

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%, and both parameters carry descriptions, so the baseline is 3. The description adds meaning beyond the schema by pinning day to UTC, whereas the schema only says "YYYY-MM-DD", which resolves a real ambiguity for an agent computing dates.

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?

"Expenses of one user on one day" states a specific resource with an exact scope, and the parenthetical endpoint plus the enumerated return fields (category, amount, VAT, receipt info) make the tool's contract unambiguous. It also names the sibling get_ehour_report for the aggregate case, so an agent can distinguish it without opening a schema.

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?

It gives an explicit alternative and the condition that selects it: use get_ehour_report for period totals, including which columns to pass (EXPENSE_CATEGORY_NAME,EXPENSE_COST). The required scope (one user, one day) is stated up front, leaving nothing to inference.

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.