Skip to main content
Glama
AdvancedExpenseTracker

AdvancedExpenseTracker

add_expense

Record a new expense with date (YYYY-MM-DD), amount, and category to track spending and support budgeting or cashflow analysis.

Instructions

Add a new expense. Date must be YYYY-MM-DD.

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": {
      "date": "<date>",
      "amount": "<amount>",
      "category": "<category>"
    },
    "name": "add_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
noteNo
tagsNo
amountYes
categoryYes
subcategoryNo
payment_methodNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior1/5

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

With no annotations, the description carries the entire behavioral burden, yet it discloses only the date format. It says nothing about whether category values are validated against existing metadata, whether the expense affects budgets or cashflow reports, whether duplicates are rejected, or what permissions are needed for this mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the operation and then the one hard constraint, with no filler. The brevity is efficient, though it edges toward under-specification rather than optimal density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with zero annotation coverage and zero schema descriptions, the definition is far too thin; only one of seven parameters is explained. The presence of an output schema excuses it from describing return values, but the input side is largely undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate and largely fails to do so. It usefully pins the date format to YYYY-MM-DD, but amount, category, subcategory, payment_method, tags, and note carry no meaning beyond their bare names and defaults.

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?

"Add a new expense" states a specific verb and resource, which is unambiguous about the operation. It does not, however, distinguish itself from close siblings such as add_recurring_expense or add_income, so an agent must infer the boundary from the names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus add_recurring_expense, add_income, or update_expense, and no stated prerequisites or exclusions. The only conditional statement concerns date formatting, not tool selection.

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