Skip to main content
Glama

Expenses in one category

query_expense_detail
Read-only

The individual expenses within one category for a period. The category can be given as the account code (e.g. '4000') or the account name (e.g. 'Office Supplies').

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": {
      "period": "<period>",
      "categoryCode": "<categoryCode>"
    },
    "name": "query_expense_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYesTime period to query.
categoryCodeYesAccount code (e.g. "4000") or account name (e.g. "Office Supplies") to drill into.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered and the description does not need to repeat it. What remains — that results are individual line items at the expense level rather than aggregates — is conveyed by 'the individual expenses'. Nothing is said about ordering, volume, or whether an empty result is possible, but for a simple read tool under existing annotations a 3 is appropriate.

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?

Two short sentences with no filler, front-loading the resource and scope before the parameter detail. Every clause carries information and nothing is redundant.

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-parameter read-only query with full schema coverage, complete annotations, and no output schema, the description supplies what an agent needs to select and call it. The only mild gap is that the shape of returned expense rows is only implied by 'individual expenses'.

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%, so both parameters are already documented, including the enum values for period. The description's note that the category may be an account code or an account name restates the schema's own example rather than adding new meaning, so the baseline 3 applies.

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 states a concrete verb+resource: individual expenses within one category for a period. That is specific enough to distinguish a detail-level listing from a summary or breakdown. It never names the closest sibling (query_expense_breakdown), so the differentiation is left implicit rather than stated.

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?

The phrase 'drill into' and the singular-category scope imply that this is the tool for per-item detail once a category is known. There is no explicit statement of when to prefer this over query_expense_breakdown or a summary tool, and no prerequisites or exclusions are given.

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.

Resources