Skip to main content
Glama

Search transactions

search_transactions
Read-onlyIdempotent

Search transactions by keyword, phrase or meaning (e.g. "coffee", "Netflix", "grocery shopping"). Use when the user asks about specific merchants, items, or describes a transaction. Returns every transaction whose text contains the phrase (case-insensitive) first, newest first, then up to 50 related by meaning (e.g. "caffeine" finds coffee), most related first; each row has matchedBy: "keyword" or "meaning", and keywordMatchCount / meaningMatchCount count each kind. Rows found by meaning can be loosely related, so check them before counting them in a total. If neither finds anything it tries the words of the phrase on their own. matchType says what matched (semantic when any row was found by meaning, keyword, keyword_any_word or none); with none, follow the suggestions instead of repeating the same search. Each row has source: "personal", or "circle" with circleName for a circle expense the user paid in full; circle rows are not personal spending, so never add them to spending totals. Returns at most 10 per call with totalCount and hasMore. If hasMore is true, call again with offset set to nextOffset for the next page. Keep the same query and filters when paging.

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

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by transaction type
limitNoMax transactions to return, up to 10 (default: 10)
queryYesNatural language search query, e.g. "coffee shops" or "Amazon purchases"
offsetNoNumber of rows to skip, for paging (default: 0). Use nextOffset from the previous response.
endDateNoEnd date in YYYY-MM-DD format (default: no limit)
startDateNoStart date in YYYY-MM-DD format (default: no limit)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max transactions to return, up to 10 (default: 10)",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Number of rows to skip, for paging (default: 0). Use nextOffset from the previous response.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With readOnlyHint/idempotentHint already covering the safety profile, the description still adds substantial value: it discloses result ordering, the keyword-then-meaning split, matchedBy/matchType/count fields, the 10-per-call cap with totalCount/hasMore/nextOffset, and the important warning that circle rows are not personal spending and must never be added to totals. The remaining actionable gap is that it does not explain how the top-50 meaning candidates are ranked or what the 'suggestions' consist of.

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?

Purpose is front-loaded in the first sentence, then return-shape and paging details follow in a single dense but ordered paragraph with nothing superfluous. Given the absence of an output schema, every detail about matchedBy, matchType and circle rows pays for itself.

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?

For a six-parameter read tool with no output schema, the description fully carries the burden of explaining return columns, ordering, result caps and paging, plus a material correctness caveat about circle transactions. An agent has everything it needs to call it and interpret the response correctly.

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 coverage is 100%, so the six parameters are already documented; the description only clarifies paging behavior (offset should be the returned nextOffset, keep the same query and filters while paging) and does not add anything about type, startDate or endDate. That is useful but narrow added meaning over a fully documented schema.

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 transactions by keyword, phrase or meaning") with concrete examples, and the scope is immediately graspable. It never names a sibling such as get_transactions or get_spending_by_category, so the differentiation from aggregate tools is implied by the 'specific merchant or item' framing rather than stated outright.

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 clear triggering context: "Use when the user asks about specific merchants, items, or describes a transaction." It also gives a conditional next step when nothing matched ("follow the suggestions instead of repeating the same search") and paging rules. What's missing is explicit contrast with the sibling get_* list/aggregate tools.

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