Skip to main content
Glama

taxrail

Compare DeFi Borrow vs Sell (FREE)

compare_borrow_vs_sell

FREE preview comparing immediate tax cost of selling appreciated crypto vs borrowing USDC on Aave v3. Returns after-tax cost comparison, projected LTV, liquidation warning, dynamic x402 quote, and a planId.

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": {
      "jurisdiction": "<jurisdiction>",
      "regime": "<regime>",
      "collateralAsset": "<collateralAsset>",
      "collateralAmount": "<collateralAmount>",
      "collateralPriceUsd": "<collateralPriceUsd>",
      "collateralCostBasisUsd": "<collateralCostBasisUsd>",
      "holdingDays": "<holdingDays>",
      "liquidityNeededUsd": "<liquidityNeededUsd>"
    },
    "name": "compare_borrow_vs_sell"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNo
regimeYes
borrowAprNo
holdingDaysYes
horizonDaysNo
pricingTierNo
jurisdictionYes
referrerWalletNo
borrowerAddressNo
collateralAssetYes
collateralAmountYes
collateralPriceUsdYes
liquidityNeededUsdYes
marginalOrdinaryRateNo
collateralCostBasisUsdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the return contents and hints at an x402 payment quote, which is useful, but it never states whether the call is read-only, whether planId creates server-side state, what permissions or payment steps are required, or how the free preview is limited.

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?

A single compact sentence that front-loads the FREE qualifier and then enumerates outputs. The return-value list is long but each item is substantive, and there is no filler.

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 15-parameter, 8-required financial tool with no annotations and no output schema, the description does list the returned fields, which partly covers the missing output schema. However, the parameter layer is entirely undocumented and the payment/state implications of x402 and planId are unexplained, leaving significant gaps for correct invocation.

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?

Fifteen parameters with 8 required and 0% schema description coverage, so the description should define them. Instead it explains no parameter at all: jurisdiction/regime enums, holdingDays vs horizonDays, marginalOrdinaryRate, borrowerAddress, referrerWallet, and borrowApr defaults are left entirely to inference, with only faint hints from 'appreciated crypto' and 'projected LTV'.

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 gives a specific verb and resource: it compares the immediate tax cost of selling appreciated crypto against borrowing USDC on Aave v3. The 'FREE preview' framing and 'planId' return signal that this is the entry point relative to the paid unlock sibling, but it never names that sibling explicitly.

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 by the scenario ('selling appreciated crypto vs borrowing USDC'), and the 'preview' framing hints that a fuller paid step follows. There is no explicit when-to-use versus check_tax_impact or unlock_tax_plan, no exclusion conditions, and no stated prerequisites such as supported jurisdictions.

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.