Skip to main content
Glama

finance_wash_sale

Read-only

Wash sale detector — Detects IRS wash sales (26 USC 1091) in a trade list, offline: FIFO lot matching, losses disallowed when identical shares are bought within 30 days before or after a loss sale, disallowed amount added to the replacement lot's basis with holding period tacked, Form 8949 code W, short/long term, and open lots with adjusted basis. Required: trades = semicolon-separated rows date,side,symbol,qty,price[,fee] (up to 500). Price: $0.004 USDC (Base, via x402).

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": {
      "trades": "<trades>"
    },
    "name": "finance_wash_sale"
  }
}

Input Schema

NameRequiredDescriptionDefault
tradesYes2026-01-05,buy,AAPL,10,150;2026-02-02,sell,AAPL,10,120;2026-02-20,buy,AAPL,10,125

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the matching algorithm (FIFO), the 30-day before/after window, how disallowed losses are re-attributed to the replacement lot's basis with holding-period tacking, and the row limit. It also discloses a real operational trait the annotations don't cover: a $0.004 USDC charge via x402 on Base. It stops short of describing failure modes (e.g., malformed rows, non-identical-symbol handling).

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?

Front-loaded with the identity and scope of the tool, then the algorithmic detail, then the input contract. Dense and information-rich with little filler, though the long run-on clause chain makes it slightly harder to scan than a bulleted structure would.

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?

For a single-parameter, no-output-schema tool, the description covers what it computes, what the results represent (code W, short/long term, open lots with adjusted basis), the input contract, the size limit, and the cost. An agent has everything needed to decide and invoke correctly.

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% and the schema already contains a worked example, but the description still adds value: it spells out the field order (date,side,symbol,qty,price[,fee]), the semicolon row delimiter, the optional fee column, and the 500-row ceiling. That is meaningfully more than the example alone conveys.

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?

Names a specific verb+resource ('Detects IRS wash sales (26 USC 1091) in a trade list') and enumerates the concrete outputs (FIFO lot matching, Form 8949 code W, adjusted basis). This is clearly distinct from generic calculators like finance_capital_gains, though the description never explicitly contrasts with that sibling or routes the agent between them.

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?

Usage is only implied: you supply a trade list and get wash-sale detection. There is no explicit 'use this when… / not when…' guidance and no reference to alternatives such as finance_capital_gains for plain gain/loss reporting. The 500-row cap and 'offline' note are constraints, not selection guidance.

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.

Resources