Skip to main content
Glama
LamPyrid
by RadCod3

Create Withdrawal

create_withdrawal

Record an expense or cash withdrawal from an asset account, optionally assigning it to a budget, category, or tags to track spending.

Instructions

Record expenses and spending.

Money leaves your asset accounts to pay for goods, services, or cash withdrawals. Can be assigned to budgets for expense tracking.

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": {
      "req": "<req>"
    },
    "name": "create_withdrawal"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest model for creating a withdrawal transaction.

Output Schema

NameRequiredDescriptionDefault
idNoTransaction ID
dateNoDate and time of the transaction
tagsNoCross-cutting labels grouping transactions across budgets/categories/time (e.g. a trip name, a project, a tax year). Multiple allowed.
typeYesType of the transaction
amountYesAmount of the transaction
budget_idNoID of the budget for this transaction
source_idNoID of the source account. For withdrawal/transfer, must be asset account. For deposits, must be revenue account.
budget_nameNoName of the budget for this transaction
category_idNoID of the category for this transaction
descriptionYesDescription of the transaction
source_nameNoSource account name
category_nameNoFiner-grained classification of the transaction (e.g. "vegetables", "personal hygiene"). One per transaction; complements the budget.
currency_codeNoCurrency code
destination_idNoID of the destination account. For deposit/transfer, must be asset account. For withdrawals, must be expense account.
destination_nameNoDestination account name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, and idempotentHint=false. The description adds useful framing that funds are debited from an owned asset account and that entries can be tied to budgets, but it says nothing about the non-idempotent behavior (duplicate submissions create duplicate transactions) or any failure conditions, which is the most consequential undisclosed trait for a write tool.

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 short sentences with the core action stated first and supporting context after; nothing is padded. Slightly more value could be packed into the same length by naming alternatives rather than restating the money-flow concept.

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?

The tool has a fully documented nested schema, an output schema (so return values need no explanation), and annotations covering the safety profile. The remaining gap is guidance on deduplication and on choosing this over transfer/deposit/bulk siblings, which is a modest rather than critical omission.

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% and the nested request object documents amount sign convention, source/destination resolution, and auto-creation of unknown tags and categories. The description only gestures at budget assignment, adding no meaning beyond what the schema already provides, so the baseline 3 applies.

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 gives a specific verb and resource ('Record expenses and spending') and clarifies the direction of money flow ('Money leaves your asset accounts'), which implicitly separates it from deposit-style siblings. It never names create_deposit, create_transfer, or create_bulk_transactions explicitly, so sibling differentiation is left to inference.

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?

The phrase 'pay for goods, services, or cash withdrawals' gives an implied usage context for a spending transaction. However, there is no explicit when-to-use/when-not-to-use guidance and no named alternative for cases like moving money between own accounts (transfer) or recording many entries at once (bulk).

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