Skip to main content
Glama

AgentLogic MCP Server

cost_basis

Get a premium UTXO cost basis and unrealized P&L report for a Bitcoin address: every current UTXO with its amount, creation time, basis price and basis total (traced through lineage: single-input carry-forward, pro-rata fan-in blending, CoinJoin and other provenance breaks flagged with a receipt-price fallback), current value at the live price, unrealized P&L, age and long/short holding flag, plus address totals. Prices are Kraken daily closes; the report labels its honest limits in its notes and is not tax advice. Legacy, P2SH, SegWit and Taproot addresses are accepted and checksum-validated. Price: $0.10 USDC on 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": {
      "address": "<address>"
    },
    "name": "cost_basis"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesBitcoin address: legacy (1...), P2SH (3...), SegWit (bc1q...) or Taproot (bc1p...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses the lineage methodology (carry-forward, pro-rata fan-in, CoinJoin/provenance-break flagging with receipt-price fallback), the price source (Kraken daily closes), accepted address types with checksum validation, and that it is not tax advice. It omits error behavior, rate limits, and whether results are cached, keeping it below 5.

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?

The core payload is front-loaded in the opening clause, which is good. However, the entire definition is a single ~90-word sentence larded with nested parentheticals, making it harder to scan than a short bulleted field list would be.

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?

With no output schema and no annotations, the description must explain the return shape, and it does so field-by-field (amount, creation time, basis price/total, current value, unrealized P&L, age, holding flag, address totals). Cost, price source, and limitations are all covered, so nothing an agent needs is missing.

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

Parameters3/5

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

Schema coverage is 100% for the single address parameter, so the baseline is 3. The description restates accepted address prefixes and adds that they are checksum-validated, but that is behavioral rather than new meaning about the parameter itself.

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?

States a specific verb and resource: 'Get a premium UTXO cost basis and unrealized P&L report for a Bitcoin address', then enumerates the report's fields. It is clearly a per-address cost-basis report, distinct from balance, tx, or mempool siblings without needing their schemas.

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?

The scope (single Bitcoin address, cost-basis/P&L rather than raw balances) plus the explicit price and payment rail ($0.10 USDC on Base via x402) give an agent clear context for when this is the right call. It names no explicit alternatives or exclusions, so it falls short of 5.

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.