Title100/100
Search expenses
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Search and filter the user's expenses. Returns matching expense rows from their spreadsheet. Filter by category, merchant, date range, amount, or tags. Results are paginated: when hasMore is true, call again with nextCursor and the same filters. Do not split a date range into repeated overlapping searches. Use the optional query parameter for deterministic natural-language recall over merchant, city/location, Notes (including receipt items, delivery source, payer, and Business purpose), Tag, and category. Each matching result includes matchedFields and a short matchReason so you can explain why it was selected. When several rows plausibly match, a disambiguation list is returned; each option carries the exact expenseId. Structured filters (categories, merchants, dateRange, tags, minAmount, maxAmount) combine with the query using AND semantics. Each result includes expenseId, the exact durable Receipt ID required by update_expense.
The description explains the capability, when to use it, and what to expect.
Inputs60/100
15 of 23 inputs have descriptions. Add descriptions to the missing inputs, including where to obtain IDs and how to supply values.
clientEmail
Client account email. Accountants may use this only for an accepted ExpenseBot client.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
query
Optional natural-language recall over the user's existing expense fields (merchant, city/location, Notes including receipt items, delivery source, payer, and Business purpose, Tag, category). Deterministic case-insensitive matching — no embeddings or model classifiers. Combine with structured filters using AND semantics. Examples: 'Tribeca restaurant', 'Bodewell project hardware store', 'client dinner note'.
Clear enough to supply this argument.
categories
Filter by expense categories (e.g., ['Travel', 'Meals'])
Clear enough to supply this argument.
merchants
Filter by merchant names (e.g., ['Uber', 'Starbucks'])
Clear enough to supply this argument.
dateRange › oneOf › 0 › type
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 0 › month
Month name or 1-12 (e.g., 'March' or '3')
Clear enough to supply this argument.
dateRange › oneOf › 0 › year
4-digit year (e.g., 2026)
Clear enough to supply this argument.
dateRange › oneOf › 1 › type
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 1 › quarter
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 1 › year
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 2 › type
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 2 › year
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 3 › type
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 3 › start
ISO date YYYY-MM-DD (inclusive)
Clear enough to supply this argument.
dateRange › oneOf › 3 › end
ISO date YYYY-MM-DD (inclusive)
Clear enough to supply this argument.
dateRange › oneOf › 4 › type
Not provided
Missing description. Explain what this value means and how to supply it.
dateRange › oneOf › 4 › value
Relative range phrase, e.g., 'last month', 'YTD', 'this quarter', 'last 7 days'
Clear enough to supply this argument.
minAmount
Minimum expense amount
Clear enough to supply this argument.
maxAmount
Maximum expense amount
Clear enough to supply this argument.
tags
Filter by tags
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
hasReceipt
When true, return only expenses with a receipt link. When false, return only expenses without one.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
limit
Results per page (default 20, maximum 50)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
cursor
Opaque nextCursor returned by the previous search_expenses page. Reuse the same filters; never construct or edit this value.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
Annotations75/100
Declare idempotentHint based on the tool’s actual behavior.
{
"title": "Search expenses",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}Output schema82/100
The output schema explains the structured result.
View output schema
{
"type": "object",
"required": [
"expenses",
"count",
"total"
],
"properties": {
"count": {
"type": "integer",
"description": "Rows matched by the filters."
},
"total": {
"type": "number",
"description": "Sum of the matched set in home currency."
},
"hasMore": {
"type": "boolean"
},
"message": {
"type": "string"
},
"expenses": {
"type": "array",
"items": {
"type": "object",
"required": [
"expenseId",
"date",
"amount",
"tag",
"updateEligible"
],
"properties": {
"tag": {
"type": "string",
"description": "Column K group (client/project/trip)."
},
"date": {
"type": "string"
},
"amount": {
"type": "number",
"description": "Functional/home-currency amount."
},
"dateIso": {
"type": "string",
"description": "Canonical YYYY-MM-DD when available."
},
"category": {
"type": "string"
},
"currency": {
"type": "string",
"description": "Home currency code when available."
},
"location": {
"type": "string"
},
"merchant": {
"type": "string"
},
"expenseId": {
"type": "string",
"description": "Durable Receipt ID (Column Q). The only identity accepted by update_expense."
},
"matchReason": {
"type": "string"
},
"matchedFields": {
"type": "array",
"items": {
"type": "string"
}
},
"originalAmount": {
"type": "number"
},
"updateEligible": {
"type": "boolean"
},
"originalCurrency": {
"type": "string"
}
},
"additionalProperties": true
},
"description": "Matching expense rows, newest first, paginated."
},
"pageInfo": {
"type": "object",
"additionalProperties": true
},
"nextCursor": {
"type": [
"string",
"null"
],
"description": "Opaque signed continuation; reuse with identical filters."
},
"queryApplied": {
"type": "string"
},
"totalMatched": {
"type": "integer",
"description": "Present for free-text searches."
}
},
"additionalProperties": true
}