Skip to main content
Glama

Log expense

log_expense

Record ONE purchase, bill, or receipt. Negative amount = refund to the same category. NEVER use this for bank-statement rows or any batch of 3+ records: use import_transactions with the whole array instead (one-by-one logging hits the per-turn tool limit).

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": {
      "amount": "<amount>"
    },
    "name": "log_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate as YYYY-MM-DD. Omit for today.
noteNo
itemsNoReceipt line items, when logging from a receipt photo.
amountYesAmount spent in the original currency. Negative = refund.
entityNoOverride the account's default scope, e.g. a personal dinner paid with the business card.
accountNoAccount name (see get_accounts). Default: Manual.
categoryNoOmit only if nothing fits; defaults to 'other'.
currencyNo3-letter ISO currency code (EUR, USD, UAH, AED, ...). Omit to use the user's base currency.
merchantNoStore/service name, e.g. 'Silpo', 'Netflix'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, non-destructive, non-idempotent write, and the description adds the per-turn tool-call limit as a practical constraint plus the refund-handling rule. What it doesn't disclose is duplicate/retry behavior, which matters given idempotentHint=false — logging the same receipt twice would create two records and the description is silent on that.

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?

Three short sentences, front-loaded with the core action and scope, then the negative-amount rule, then the hard exclusion and alternative. No filler; each sentence carries a distinct rule an agent needs before calling.

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 9-parameter mutation tool with 89% schema coverage and no output schema, the description covers scope, refunds, and the batching alternative well. The remaining gap is idempotency/duplicate handling and any note on what a successful call returns, though the annotations and schema absorb most of that burden.

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 89%, so most parameter meaning is already documented. The description still contributes one thing the schema does not: that a negative amount credits back to the SAME category, which is a semantic rule about how the refund lands rather than a restatement of the amount field's text.

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 gives a specific verb and resource ("Record ONE purchase, bill, or receipt") and explicitly scopes it to a single record, which immediately separates it from the batch-oriented sibling. An agent can tell from the first sentence that this is a single-transaction write, not a bulk import.

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 names the exclusion condition precisely ("NEVER use this for bank-statement rows or any batch of 3+ records") and routes to the concrete alternative, import_transactions, with the reason (per-turn tool limit). It also states that negative amounts are refunds, closing the main ambiguity an agent would face at call time.

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.