Skip to main content
Glama

Transfer Between Accounts

transfer_between_accounts
Destructive

Records a funds transfer between two capital accounts, excludes both legs from reports to protect P&L, and reverses the outflow if the inflow leg fails.

Instructions

Record a transfer of funds between two capital accounts. Both legs are marked exclude_from_reports=true so they don't skew P&L. If the inflow leg fails after the outflow succeeds, the outflow is automatically reversed to keep account balances consistent. For full atomicity, a future migration will wrap both legs in a single DB transaction.

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>",
      "from_account_id": "<from_account_id>",
      "to_account_id": "<to_account_id>",
      "category_id": "<category_id>"
    },
    "name": "transfer_between_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesTransfer date in YYYY-MM-DD format.
amountYesAmount to transfer (positive number).
category_idYesCategory to assign (typically a 'Transfer' income/expense category).
descriptionYesDescription of the transfer.
to_account_idYesAccount to transfer to.
from_account_idYesAccount to transfer from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description discloses high-value behavior: both legs are forced to exclude_from_reports=true so P&L is unaffected, and a failed inflow leg triggers an automatic reversal of the outflow. It also honestly flags that the two legs are not yet wrapped in a single DB transaction, which tells the agent exactly how partial failure is handled.

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?

Three sentences, front-loaded with the action and then the two most decision-relevant facts (report exclusion, reversal-on-failure). The closing sentence about a future migration is forward-looking rather than actionable, but it is short and does inform the agent about current non-atomicity.

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 6-required-parameter mutation tool with no output schema, the description covers the critical failure-mode behavior and reporting side effects. It omits what the tool returns on success and any permission requirements, but the essential calling context is present.

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 coverage is 100%, and the schema already documents every parameter including the date pattern, positive amount constraint, and the 'typically a Transfer category' hint for category_id. The description adds only the implicit exclude_from_reports behavior, which is not a parameter, so it does not meaningfully extend parameter meaning beyond the schema.

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 a transfer of funds between two capital accounts'), which is clearly distinct from the sibling add_transaction / list_transactions tools. It does not explicitly name the nearest alternative (add_transaction), so it stops short of full sibling differentiation.

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 the phrase 'between two capital accounts' – an agent can infer this is the tool for moving funds rather than recording ordinary income/expense. However, there is no explicit statement of when to prefer this over add_transaction or what prerequisites (both accounts must exist, category should be a Transfer category) are required.

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