Skip to main content
Glama

ChainIQ Crypto Cost Basis

quote_crypto_cost_basis

Read-onlyIdempotent

Get the free exact price in Base USDC and the next checkout step for a supplied crypto spot-trade workpaper. One fill is one buy or sell. Use declared-assets for mixed books or other symbols. PDF eligibility is checked during free preparation.

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": {
      "fills": "<fills>",
      "method": "<method>",
      "assetScope": "<assetScope>"
    },
    "name": "quote_crypto_cost_basis"
  }
}

Input Schema

NameRequiredDescriptionDefault
fillsYes
formatNo
methodYes
assetScopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior3/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 is covered. The description adds genuinely new context — the quote is free, eligibility for the PDF format is evaluated during that free preparation, and there is a downstream 'checkout step' — which hints at a staged free/paid flow. It stops short of saying what the returned quote or checkout step actually contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Four short sentences with little waste, and the fill-counting rule is a helpful early clarification. However, the opening sentence is overloaded ('free exact price ... and the next checkout step ... for a supplied workpaper'), which buries the core operation and makes the lead hard to parse.

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

Completeness3/5

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

The definition covers the input artifact and one gating condition, but with no output schema the description should say more about what a caller receives back — what a 'price in Base USDC' looks like, what the 'next checkout step' value is, and whether the response varies by chosen method. For a four-parameter tool with zero schema descriptions, this leaves meaningful gaps.

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 description coverage is 0%, so the description carries the full burden, yet it only partially compensates. 'One fill is one buy or sell' usefully pins down 'fills', and 'declared-assets for mixed books or other symbols' explains assetScope, while the PDF remark loosely touches 'format'. The critical 'method' enum (FIFO/LIFO/HIFO/OPTIMIZED_HIFO) receives no explanation at all, and the 200,000 fill cap is unaddressed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a resource ('exact price in Base USDC and the next checkout step') and the input artifact ('supplied crypto spot-trade workpaper'), but the framing as a price quote sits awkwardly against the tool name 'quote_crypto_cost_basis' — an agent cannot tell whether this computes cost basis, returns a price, or both. It also never distinguishes itself from the sibling 'get_crypto_cost_basis_example', so the specific role in the family stays ambiguous.

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

Usage Guidelines2/5

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

'Use declared-assets for mixed books or other symbols' is routing guidance for one parameter, not tool-level when-to-use advice. Nothing states when this tool is preferred over get_crypto_cost_basis_example or get_crypto_tax_reports, and no prerequisites or exclusions are given beyond the vague note that PDF eligibility is checked during preparation.

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