Skip to main content
Glama
ninetails-io

gnucash-mcp

assign_split_to_lot

Assign a transaction split to an investment lot for cost basis tracking. Call after creating buy/sell transactions.

Instructions

Assign a transaction split to a lot.

Use after creating a buy/sell transaction to link the investment account split to its lot for cost basis tracking.

Args: split_guid: GUID of the split (from transaction's investment account). 8+ char prefix accepted. lot_guid: GUID of the lot (or 8+ char prefix).

Workflow: 1. create_lot("Assets:VTSAX", "VTSAX Jan 2026") 2. create_transaction(...buy 10 shares...) 3. assign_split_to_lot(investment_split_guid, lot_guid)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lot_guidYesLot GUID (32-char hex or 8+ char prefix)
split_guidYesSplit GUID (32-char hex or 8+ char prefix)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It explains the purpose and workflow but does not state what happens on success/failure, whether the operation is reversible, whether it can be called multiple times on the same split, or if it requires specific account types. For a state-mutating action with no annotation coverage, this is a meaningful gap.

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?

The description is well-structured with a concise one-line summary, an Args section, and a three-step workflow example. The workflow is genuinely useful and earns its space. Slightly longer than strictly necessary but organized efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 2 simple parameters, 100% schema coverage, and an output schema present, the description covers the essential workflow adequately. It explains the sequencing and parameter origins. However, absence of annotations for a state-mutating action and lack of detail on integrity constraints (e.g., can a split only be assigned once?) leave moderate gaps for a financially consequential operation.

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 both parameters are explicitly described in the schema (32-char hex or 8+ char prefix). The description adds the context that split_guid comes 'from transaction's investment account' and clarifies that both accept prefixes, which is minor value beyond schema. Baseline 3 is appropriate since the schema already documents the parameters thoroughly.

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?

The description clearly states the verb 'Assign a transaction split to a lot' and the resource (split→lot linkage for cost basis tracking). It includes a workflow example showing how it fits into a three-step process, which strongly distinguishes it from sibling tools like create_lot and close_lot.

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?

The description explicitly states when to use ('Use after creating a buy/sell transaction to link the investment account split to its lot') and provides a concrete numbered workflow showing the sequence of create_lot → create_transaction → assign_split_to_lot. No explicit when-not-to-use or alternatives, but the guidance is clear and actionable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ninetails-io/gnucash-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server