Skip to main content
Glama

Create transaction

create_transaction
Destructive

Create a manual account transaction (evidence; newest-first eviction at 1000 per account). Bank/crypto synced txs cannot be created. Description/merchant ≤100 chars; amount ±1e6. currency must match the account currency (defaults to it). Optional merchant (persisted only when distinct from description). Optional originalAmount/originalCurrency for foreign charges (both required together, must differ from settlement). Optional applyToBalance (default true).

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": {
      "budgetId": "<budgetId>",
      "accountId": "<accountId>",
      "amount": "<amount>",
      "postedAt": "<postedAt>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
budgetIdYes
currencyNo
merchantNo
postedAtYes
accountIdYes
descriptionNo
applyToBalanceNo
idempotencyKeyYes
originalAmountNo
originalCurrencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare the write/destructive profile, and the description adds substantive behavior beyond them: per-account eviction at 1000 records with newest-first policy, the fact that merchant is only persisted when distinct from description, and that applyToBalance defaults to true. These are non-obvious side effects an agent could not recover from annotations or schema, which is exactly what the description should carry.

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?

Information-dense and front-loaded: the core action and the synced-transaction exclusion come first, followed by field constraints and defaults. The semicolon-chained style and the bare parenthetical 'evidence' are terse to the point of ambiguity, but no sentence is 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 a destructive 11-parameter mutation with no output schema and zero schema documentation, the description covers most of what an agent needs to call it correctly, including defaults and paired-field rules. The notable remaining gap is idempotencyKey, whose retry/deduplication contract is central to a create tool yet goes unmentioned.

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?

With 0% schema description coverage and 11 parameters, the description compensates well: it constrains description/merchant to 100 chars, amount to ±1e6, explains currency defaulting to the account currency, the paired requirement of originalAmount/originalCurrency, and the applyToBalance default. It leaves budgetId, accountId, postedAt format, and idempotencyKey semantics unexplained, so a few high-stakes parameters remain undocumented in both places.

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?

States a specific verb and resource ('Create a manual account transaction') and immediately scopes it by excluding bank/crypto synced transactions, which is the key ambiguity for a create tool in this domain. It does not explicitly differentiate itself from the sibling 'create_transactions' (bulk) tool, so an agent must infer the singular/plural split from 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 Guidelines3/5

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

Gives a useful negative condition ('Bank/crypto synced txs cannot be created'), which prevents a whole class of wrong calls. However, it never routes the agent to an alternative (e.g. bulk create_transactions or update_transaction) nor states prerequisites such as account existence or budget membership, so the when-to-use guidance is implied rather than explicit.

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