Skip to main content
Glama

Log transaction

log_transaction

Record an expense (negative amount) or income (positive) on an account, in that account's currency. Category is auto-suggested from the merchant when omitted. Lands in the review queue. Money that leaves or arrives but is not really spending or income (a payout on someone's behalf, a reimbursement, a refundable deposit) goes in with excluded=true: it moves the balance but stays out of insights and budgets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoISO datetime; default now
noteNo
placeNo
amountYesMajor units; negative = expense
excludedNoNot spending/income: keep out of insights and budgets (balance still moves)
merchantNo
raw_textNoThe bank SMS/email/alert this came from, verbatim. Kept private (never returned by default); lets unparsed_alerts / save_parse_rule teach the app to read this bank on its own.
account_idYes
category_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
dateYes
noteNo
placeNo
amountYesFormatted in the row's currency, e.g. '₹1,200.00'
sourceNo
currencyYes
excludedNoMoves the balance but is not counted as spending or income
merchantNo
account_idYes
confidenceNo
category_idYes
is_reviewedNo
transfer_idNo
amount_minorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The description discloses meaningful side effects beyond the generic annotations: entries land in the review queue, category is auto-suggested from the merchant when omitted, and excluded transactions still move the balance but stay out of insights and budgets. Since annotations only carry false flags, the description carries the behavioral burden and mostly meets it.

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?

Four compact sentences, all substantive: core purpose, category behavior, review-queue side effect, and the excluded nuance. There is no filler or unnecessary prose.

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?

Covers the purpose, the required amount semantics, the review-queue side effect, and the non-obvious excluded behavior; the output schema can cover the return shape. It does not mention transfer/group alternatives or failure behavior, which keeps it from being fully complete.

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?

The description adds important meaning beyond the schema: amount sign semantics, account currency, optional category_id auto-suggestion from merchant, and concrete excluded examples. This compensates for the low 44% schema coverage, though note, place, and merchant are left to inference.

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?

States a specific action ('Record') with an explicit resource ('an expense (negative amount) or income (positive) on an account') and even gives the sign convention for amounts. The scope clearly differentiates it from transfer and group-expense siblings without needing to name them.

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

Usage Guidelines4/5

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

Gives clear conditions for what belongs here: real expenses/income, with excluded=true for balance-only movements such as reimbursements or refundable deposits. It stops short of explicitly directing the agent to create_transfer for transfers or add_group_expense for group spending, so it lacks a full when-not-to-use statement.

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.