Skip to main content
Glama

summ_simulate_tlh

Read-only

Simulate hypothetical sells against the same method-ordered lot pools as summ_get_tlh_opportunities — the realized gain/loss split is exactly what the tax engine would produce if the sale happened today. NOTHING is saved.

Returns per sell: quantity sold, proceeds, realized gain split by short/long-term, and the exact lots consumed in the method's order; plus aggregate totals.

Call it for every what-if in a tax loss harvesting conversation — "what if I only sold half?", specific quantities, selling from one wallet, or a worthless disposal (priceOverride: 0). Prefer it over summ_simulate_disposal during harvest conversations: it shares lot pools with summ_get_tlh_opportunities and uses cached market prices by default, and it supports per-wallet cost-basis tracking natively. summ_simulate_disposal remains the right choice for arbitrary what-ifs at caller-supplied prices and for comparing inventory methods.

COMPLIANCE: the voice rules from summ_get_tlh_opportunities apply to every reply built on this data — facts and conditionals only, never advice, savings always ≈ and labelled an estimate.

Notes:

  • Sells are evaluated independently against the untouched snapshot — two sells of the same asset do NOT compound; to model selling more of one asset, send one sell with the combined quantity.

  • A per-sell error (UNKNOWN_CURRENCY, ACCOUNT_REQUIRED, NO_LOTS_FOR_ACCOUNT, PRICE_REQUIRED) means that sell consumed nothing — relay the reason, never guess numbers for it.

  • Requires a plan with tax loss harvesting; the error message carries the upgrade path.

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": {
      "sells": "<sells>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "summ_simulate_tlh"
  }
}

Input Schema

NameRequiredDescriptionDefault
sellsYesHypothetical sells to evaluate (max 20).
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description corroborates rather than contradicts them with "NOTHING is saved." Beyond that, it discloses behavior an agent could not infer: sells are evaluated independently against an untouched snapshot so they do NOT compound, a per-sell error means that sell consumed nothing, the plan requirement gates the call, and cached market prices are used by default. That is exactly the extra context the annotations cannot carry.

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?

It is front-loaded with the core behavior and organized into clear blocks (returns, when to call, compliance, notes), with zero filler sentences. It runs long, and the compliance paragraph about voice rules is only tangentially about invocation, which keeps it just short of a 5.

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?

There is no output schema, so the description carries the return-shape burden itself, and it does: quantity sold, proceeds, realized gain split by short/long-term, exact lots consumed in method order, plus aggregate totals. Combined with the error-code notes, the plan requirement, and the no-compounding caveat, an agent has everything needed to call this correctly and to interpret every response.

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, and much of the parameter commentary (priceOverride: 0 for worthless disposals, per-wallet cost basis) restates what the schema already documents. The description does add genuine non-schema semantics, however: to model selling more of one asset you must send a single sell with the combined quantity, which is a real constraint on how the sells array must be composed.

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?

The opening sentence names a specific verb ("Simulate") and a precise resource ("hypothetical sells against the same method-ordered lot pools as summ_get_tlh_opportunities"), and immediately clarifies the key distinction from a real sale by stating "NOTHING is saved." An agent can distinguish it from summ_simulate_disposal on scope (shared lot pools, cached prices) without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger ("Call it for every what-if in a tax loss harvesting conversation"), concrete example queries ("what if I only sold half?", specific quantities, one wallet, worthless disposal), and an explicit when-not: summ_simulate_disposal "remains the right choice for arbitrary what-ifs at caller-supplied prices and for comparing inventory methods." This is the strongest form of routing 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