Skip to main content
Glama

Add a tax lot

add_manual_lot

Add an opening-balance tax lot with acquisition date, quantity and unitCost — the per-unit acquisition cost in the dashboard DISPLAY currency. unitCostEur is its deprecated twin, the same figure under the legacy name (never a euro conversion) — send one or the other, never both. No broker trade is placed.

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": {
      "symbol": "<symbol>",
      "date": "<date>",
      "qty": "<qty>",
      "unitCostEur": "<unitCostEur>"
    },
    "name": "add_manual_lot"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyYes
dateYes
noteNo
sourceNo
symbolYes
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
unitCostEurYesAcquisition cost per unit, in EUR — genuinely euros, not the display currency; the engine converts it at the lot's own acquisition date.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-open-world write, and the description usefully adds that no broker order is placed and that this creates an opening balance rather than a trade. It says nothing about the dashboard-control/approval flow, revision conflicts, or idempotency behavior for a mutation with 9 params. The cost-currency claim also conflicts with the schema rather than the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause and the total length is short. But the cost-alias sentence is dense, self-referential, and ambiguous, forcing the reader to reconcile it against the schema rather than settling the question.

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

Completeness2/5

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

For a 9-parameter mutation with no output schema and only 22% schema coverage, the description covers at most the cost fields and misses the dashboard targeting prerequisite, the concurrency field (expectedRevision), idempotency, and optional metadata fields. Worse, its cost-currency guidance is inconsistent with the required-parameter schema, leaving an agent without a reliable answer for how to set the required cost.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 22% and the description spends its parameter effort on a `unitCost` field that does not exist in the schema, while telling the agent that `unitCostEur` is a deprecated alias 'never a euro conversion' — which directly contradicts the schema's own note that `unitCostEur` is genuinely EUR and converted at the acquisition date. Unspecified params (dashboardId, expectedRevision, idempotencyKey, note, source) go unaddressed.

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?

States a specific verb and resource ('Add an opening-balance tax lot') and enumerates the core fields (acquisition date, quantity, unit cost). The 'opening-balance' qualifier plus 'No broker trade is placed' distinguishes it from trade-recording paths such as add_manual_asset or broker lot creation.

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 one explicit usage rule ('send one or the other, never both') for the cost fields and clarifies that no trade is executed. However, there is no guidance on when to choose this tool over sibling lot/asset tools, and the exclusivity rule references a `unitCost` parameter that the schema does not define.

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.