Skip to main content
Glama

Add Transaction

add_transaction

Record income or expense transactions and automatically update the account balance; enter a positive amount and the category type applies the sign.

Instructions

Record an income or expense transaction. Automatically updates the account balance. Provide a positive amount — the sign is applied based on the category type.

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>",
      "description": "<description>",
      "amount": "<amount>",
      "category_id": "<category_id>",
      "account_id": "<account_id>"
    },
    "name": "add_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesTransaction date in YYYY-MM-DD format.
tagsNoTags for categorization and cleanup, e.g. ['demo-financial'].
amountYesTransaction amount (positive number — sign is derived from category type).
account_idYesUUID of the capital account to debit/credit.
category_idYesUUID of the category (income or expense).
customer_idNoUUID of the customer this transaction is attributed to (e.g. a client payment). Optional.
descriptionYesDescription of the transaction.
exclude_from_reportsNoSet true to exclude from P&L reports (e.g. owner draws). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-idempotent, non-destructive write. The description adds genuinely useful behavior beyond that: it discloses the side effect ('Automatically updates the account balance') and the sign-derivation rule. It does not warn that retries can duplicate entries despite idempotentHint=false, which is the main remaining gap.

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, each carrying distinct information: what is recorded, the balance side effect, and the amount-sign rule. The most important constraints are front-loaded with no filler.

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 an 8-parameter mutation tool with full schema coverage and no output schema, the description covers purpose, side effect, and the trickiest input rule. It leaves out duplicate/retry behavior and whether the account balance update is transactional with the insert, which would round it out.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented, including the positive-amount and sign-derived-from-category rules. The description's 'Provide a positive amount' restates the schema rather than adding new meaning. A 3 baseline is appropriate when the schema does the heavy lifting.

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?

The description opens with a specific verb and resource: 'Record an income or expense transaction.' This clearly separates the tool from list_transactions, remove_transaction, and transfer_between_accounts in the sibling set. It does not explicitly name an alternative, so it stops short of a 5.

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 by 'Record an income or expense transaction' and by the note that the account balance is updated automatically, but there is no explicit when-to-use or when-not-to-use guidance. Nothing tells the agent when to prefer transfer_between_accounts or how to handle an already-recorded transaction (remove vs re-add).

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

Deploy Server

Other Tools