Skip to main content
Glama

Moneda

search_receipt_line_items

Read-only

Search across every parsed line item the user has uploaded (case-insensitive substring on description + normalized description). Returns matching items, total count, and aggregate spend grouped by currency. Optional category, startDate, and endDate further narrow the window. Use this for questions like 'how much did I spend on cappuccinos this year?'.

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": {
      "query": "<query>"
    },
    "name": "search_receipt_line_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size for the items array (default 50, max 200).
queryYesFree-text query (>= 2 chars). Matched against item description.
offsetNoNumber of items to skip for pagination.
endDateNoISO date — items from receipts dated on/before.
categoryNoRestrict to a line-item category id (e.g. 'food_dairy').
startDateNoISO date — items from receipts dated on/after.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this is a safe read (readOnlyHint=true), so the description earns credit for adding real context: the exact matching rule (substring on description plus normalized description) and the shape of the response (matching items, total count, aggregate spend grouped by currency). It doesn't discuss pagination limits or how large result sets behave, which the schema covers only partially.

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?

Three tight sentences: what it searches, what it returns, which filters narrow it, then a usage example last. No filler and nothing important buried.

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?

There is no output schema, and the description compensates by naming the return payload (items, total count, per-currency aggregate spend), which is the key thing an agent needs to decide whether this tool answers a spending question. The nesting/format of the aggregates is left unspecified, so it isn't fully complete, but it covers the essentials for a 6-param read tool.

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; the description goes slightly beyond by clarifying that the three optional parameters 'further narrow the window' and by describing the query as a normalized-description substring match rather than a plain string equals. It still doesn't restate or add to limit/offset semantics, which remain schema-only.

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 ('search across every parsed line item the user has uploaded') and spells out the match semantics (case-insensitive substring on description + normalized description). It is clearly different from get_receipt_line_items or list_receipts, but it never names those siblings, so the differentiation is left implicit.

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?

Provides a concrete usage example ('how much did I spend on cappuccinos this year?') and explains that category/startDate/endDate narrow the window, giving a clear picture of when to reach for it. It stops short of any exclusion or explicit pointer to the receipt-detail or list alternatives.

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