Skip to main content
Glama
udaysrinu

ExpensifyAI

by udaysrinu

Search Notes

search_notes

Search expense descriptions and notes using fuzzy matching to catch typos, abbreviations, and buried amounts, returning a relevance score and match location.

Instructions

Fuzzy search over expense descriptions AND notes/details in the local mirror.

Use when exact search misses — catches typos, abbreviations (vizag/vskp/vtz), and amounts or words buried inside a bundled expense's note (e.g. a '5552' line inside a multi-item details field). Returns matches with a score (100 = exact substring) and whether it hit the description or the note. Run sync_all first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
min_scoreNo
include_deletedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses the local-mirror dependency, the sync prerequisite, and the return semantics ('score (100 = exact substring)' and 'whether it hit the description or the note'). It stops short of describing ordering or filtering behavior, but the output schema covers return structure.

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?

The description is front-loaded with the core purpose, then gives use guidance, concrete examples, return behavior, and a prerequisite in three compact sentences. No sentence is filler.

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 search tool with one required parameter and an output schema, the description covers the key invocation context: fuzzy behavior, the local mirror, sync requirement, and the two match targets. It could name search_expenses explicitly, but the 'exact search misses' phrasing makes the alternative clear.

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 0%, so the description must add meaning. It clarifies the query semantics thoroughly (typos, abbreviations, buried amounts/words) and explains the score scale, which gives meaning to min_score. However, limit and include_deleted are left to inference from their names/defaults.

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?

The opening line names a specific verb and resource: 'Fuzzy search over expense descriptions AND notes/details in the local mirror.' It differentiates from siblings by explicitly framing this as the fallback when 'exact search misses' and by covering note details as well as descriptions.

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 trigger condition: 'Use when exact search misses — catches typos, abbreviations...' and gives examples of buried matches. It also states a prerequisite ('Run sync_all first'), so the agent knows the required precondition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.