Skip to main content
Glama

Wash Sale Check

wash_sale_check
Read-onlyIdempotent

Screens a pasted broker transactions export for losing sales with the same ticker bought within 30 days before or after, listing each sale, its loss and the repurchases. Example questions: "Did I trigger any wash sales?"; "Is my TSLA loss a wash sale?"; "Check my trades for the 30-day rule"

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": {
      "transactions_csv": "<transactions_csv>"
    },
    "name": "wash_sale_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactions_csvYesThe transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds value beyond that by disclosing the core mechanic (30-day window measured both before and after the sale) and what the response contains – each sale, its loss, and the repurchases – which matters since there is no output schema.

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 core mechanic is front-loaded in a single dense sentence, followed by example queries that earn their place as routing aids. Slightly long for one parameter, but there is no filler or restatement of the tool name.

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 read-only single-input tool this is nearly complete: it explains the rule applied, the input format, and the shape of the results without needing an output schema. It omits edge-case behavior (rows that fail to parse, sales with no matching repurchase) that an agent might want before calling it on messy exports.

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?

Only one parameter and schema coverage is 100%, so the schema already explains the expected CSV formats and columns. The description reinforces that the export must be pasted as text ('a pasted broker transactions export'), but adds no parsing rules, encoding constraints, or tolerance for malformed rows beyond what the schema says.

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?

States a specific verb ('Screens') and a precisely bounded rule – losing sales with the same ticker bought within 30 days before or after – applied to a pasted broker export. That is far more specific than a generic 'check trades' tool and lets an agent distinguish it from reporting siblings like realized_pnl or tax_loss_harvest_candidates, though it never names an alternative directly.

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 three example questions ('Did I trigger any wash sales?', 'Is my TSLA loss a wash sale?', 'Check my trades for the 30-day rule') act as concrete invocation triggers, which is strong practical guidance. It stops short of stating when NOT to use it or which sibling to prefer for adjacent questions such as harvesting candidates.

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.