Skip to main content
Glama

Wash Window Check

wash_window_check
Read-onlyIdempotent

Flag loss disposals with a repurchase of the same asset inside the window. FREE.

Typical input {"disposals": , "acquisitions": [{"asset": "ETH", "ts": "2026-02-10T10:00:00Z", "qty": "2"}]} returns {"flags": [{"row": "cb7", "asset": "ETH", "loss": "-410.00", "repurchases": [...]}], "rule_status": "..."}. The 30-day window before and after the sale is the one IRC 1091 uses for stock or securities; as checked on the verification date that statute had not been extended to digital assets that are not securities, so the output is a heads-up for planning, not an adjustment. Use when reviewing loss harvesting. Not a determination that any rule applies. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "disposals and acquisitions must be lists"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
disposalsYesrows from build_lots (uses asset, disposed_at, gain, row).
window_daysNodays before and after the loss disposal to scan (default 30).
acquisitionsYespurchases/income rows with asset, ts, qty (ledger rows work as-is).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it states that the tool is free, explains the IRC 1091 window rationale, warns that the statute was not extended to non-security digital assets, and discloses that invalid input returns an error object rather than a protocol error. It also confirms read-only/idempotent retry safety, which reinforces rather than contradicts 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.

Conciseness5/5

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

Front-loads the purpose, then gives a compact example, legal context, usage note, error behavior, and retry safety. The content is dense but every section adds decision-relevant information for an agent.

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

Completeness5/5

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

Complete for this tool: annotations cover safety, the schema covers all parameters, and an output schema exists. The description additionally supplies legal caveats, error behavior, input provenance, and retry guidance, leaving no major gap for correct invocation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds useful meaning by showing a typical input shape, linking disposals to build_lots rows, and illustrating the output flags, which goes beyond the schema's parameter descriptions.

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 and resource: flags loss disposals with same-asset repurchases inside a window. The scope and relation to build_lots are clear, but it does not explicitly differentiate itself from sibling tools such as match_transfers or reconcile_1099da.

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?

Says to use it when reviewing loss harvesting and clarifies that the output is a planning heads-up, not a legal determination or adjustment. It gives clear context but does not name alternative tools or explicit when-not-to-use conditions beyond the legal caveat.

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.