Skip to main content
Glama

Agent Financial Advisor

Tax lot selection and wash-sale check

tax_lot_plan

Act as the tax advisor for a sale: compares FIFO, LIFO, HIFO and minimum-tax lot selection, splits short- and long-term gains, estimates tax, flags wash sales, and notes lots about to turn long-term. With mode=harvest it scans positions for tax-loss harvesting. Price: $0.02.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lots": [
        {
          "lot_id": "a",
          "quantity": 10,
          "acquired_date": "2024-01-10",
          "cost_basis_per_share": 200
        },
        {
          "lot_id": "b",
          "quantity": 10,
          "acquired_date": "2026-09-01",
          "cost_basis_per_share": 450
        }
      ],
      "sell": {
        "date": "2026-10-12",
        "price": 420,
        "quantity": 10
      },
      "symbol": "MSFT"
    },
    "name": "tax_lot_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotsYes
modeNosell
sellNomode=sell
as_ofNomode=harvest: date, default today
pricesNomode=harvest: {SYMBOL: current price}
symbolNo
api_keyNoOptional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial.
tax_ratesNo
min_harvest_lossNomode=harvest: ignore losses smaller than this (USD), default 100.
recent_transactionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Optional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "lots": [
      +      {
      +        "acquired_date": "2024-01-10",
      +        "cost_basis_per_share": 200,
      +        "lot_id": "a",
      +        "quantity": 10
      +      },
      +      {
      +        "acquired_date": "2026-09-01",
      +        "cost_basis_per_share": 450,
      +        "lot_id": "b",
      +        "quantity": 10
      +      }
      +    ],
      +    "sell": {
      +      "date": "2026-10-12",
      +      "price": 420,
      +      "quantity": 10
      +    },
      +    "symbol": "MSFT"
      +  }
      +]
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the computations performed and the $0.02 price, but omits whether the tool is read-only, how api_key affects access, what assumptions drive the tax estimate, and what the response contains. That is substantive but incomplete disclosure.

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?

Two sentences, front-loaded with purpose and mode behavior, and the price note is compact. The feature list is dense but not wasteful; it could be better organized around modes, yet it is concise.

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 complex 10-parameter tax-analysis tool with nested objects, no output schema, and no annotations, the description is not complete enough. It covers the high-level purpose and harvest mode but leaves parameter usage, assumptions, authentication, and return values largely unexplained.

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 coverage is only 50% on a 10-parameter tool, and the description explains only mode=sell/harvest and the fact that multiple lot-selection methods are compared. It does not explain the required lots structure, tax_rates, recent_transactions, prices, as_of, or min_harvest_loss, leaving key inputs dependent on bare schema names.

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?

The description names a specific resource (tax lots) and a concrete set of analyses: FIFO/LIFO/HIFO/minimum-tax comparison, gain splitting, tax estimation, wash-sale flags, and long-term transition notes, plus a distinct harvest mode. It does not distinguish itself from siblings such as pre_trade_check or suitability_check, so it lands at 4 rather than 5.

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?

It gives clear contexts: use it 'for a sale' and use mode=harvest to scan positions for tax-loss harvesting. It does not name alternatives or state when not to use it, but the scenario guidance is explicit enough for a 4.

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.