Skip to main content
Glama

Flag expenses missing a receipt

flag_missing_receipts

Flag every expense with no slip attached in a period (default: last month), skipping duplicates and anything under a threshold, and tell the owner once with a single notification. A second run over the same period flags again but sends no repeat notice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "flag_missing_receipts"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD. Defaults to the last day of last month.
fromNoFirst day, YYYY-MM-DD. Defaults to the first day of last month.
thresholdNoSmallest total to chase, in the business's currency. Leave it out for every expense (R0); 5000 is the R5,000 preset — only the large ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, but the description adds substantial behavior beyond them: duplicate skipping, a minimum threshold filter, a one-time single notification to the owner, and idempotent re-run semantics ('a second run flags again but sends no repeat notice'). It does not state required permissions or what the notification channel/response looks like.

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 sentences, front-loaded with the core action and scope, then the repeat-run caveat. Every clause carries distinct information about defaults, filtering, or notification behavior.

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 3-optional-parameter mutation tool with no output schema, the description covers defaults, filtering, notification side effects, and re-run idempotency. Minor gaps remain: no indication of required permissions or what the tool returns (counts, flagged records).

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 already 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining default behavior (last month) and the threshold's intent (chase only large ones, R5,000 preset), which helps the agent reason about omitting parameters.

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 description states a specific verb and resource ('Flag every expense with no slip attached') plus the scope (a period, default last month). It also distinguishes itself from siblings like delete_expense or list_expenses by describing an active flagging action rather than a CRUD operation.

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?

Usage is implied through the default period and threshold description ('leave it out for every expense', '5000 is the R5,000 preset'), which tells the agent how to narrow scope. However, there is no explicit when-to-use versus alternatives guidance and no note on prerequisites or permissions.

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