Skip to main content
Glama
ninetails-io

gnucash-mcp

close_lot

Manually close an investment lot that is fully sold but not automatically marked closed, or close a lot with zero shares.

Instructions

Mark a lot as closed.

Use when a lot is fully sold but wasn't automatically marked closed, or to manually close a lot with zero shares.

Args: guid: Lot GUID (or 8+ char prefix).

Note: Lots are automatically marked closed when their quantity reaches zero through assigned splits. This tool is for manual cleanup.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the transparency burden. It usefully discloses that lots are normally auto-closed at zero quantity and that this tool is for edge cases/manual cleanup. However, it doesn't disclose side effects (e.g., does closing affect gain calc, reconciliation, or related splits) or whether closure is reversible.

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?

The description is well-organized with a concise intro, usage section, and note. Every sentence earns its place, explaining the purpose and the automatic behavior context without padding. No waste.

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?

With a single parameter, 100% schema coverage, and an output schema present, the tool is relatively simple. The description covers when to use, what happens automatically, and the argument format. It could add post-condition details (what changes after close) but is reasonably complete for a simple mutation tool.

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% with a clear parameter description ('Lot GUID (32-char hex or 8+ char prefix)'). The description repeats the same guidance ('8+ char prefix') without adding meaningful semantics beyond the schema. Baseline 3 is appropriate since the schema fully documents the single parameter.

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 'Mark a lot as closed' with a specific verb+resource. It distinguishes the tool from siblings by explaining it's for manual cleanup when lots aren't automatically closed, differentiating from create_lot/list_lots/get_lot/assign_split_to_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 provides clear when-to-use guidance ('Use when a lot is fully sold but wasn't automatically marked closed, or to manually close a lot with zero shares'). It explains the automatic closure behavior, but doesn't explicitly name alternative tools for other lot operations, leaving some ambiguity about when NOT to use it.

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