Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Market Cap Comparison

workflow.run_market_cap_comparison
Read-only

Compares two tokens' live market caps (Solana or any of 5 EVM chains; the two tokens can be on different chains) and projects what an investment would be worth if the first token's market cap matched the second's. Narrative-agnostic ("if X reaches Y's market cap"): works for any token pair, not tied to one hype cycle or one chain. A snapshot ratio, not a forecast: assumes fixed supply on both sides. Edge cases: investmentUsd above zero; each token is a chain (solana, ethereum, base, bsc, arbitrum or polygon, default solana) plus an address; a token whose market cap cannot be read returns comparable false with an error. The projection is arithmetic: price times the ratio of market caps. Not covered: supply changes, dilution, liquidity to actually sell at that price, a forecast that the cap will be reached, and tokens whose market cap is self-reported. Use when user asks "what if this token reaches [other token]'s market cap?". Returns: multiplier, projectedValueUsd, projectedPriceUsd, profitUsd, comparable (false + error if either market cap can't be resolved).

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": {
      "tokenMint": "<tokenMint>",
      "compareToMint": "<compareToMint>",
      "investmentUsd": "<investmentUsd>"
    },
    "name": "workflow.run_market_cap_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenMintYesAddress of the token you hold or are evaluating (base58 for Solana, 0x... for EVM chains)
tokenChainNoChain of the token you hold. Default solana.
compareToMintYesAddress of the token whose market cap to compare against
investmentUsdYesInvestment amount in USD
compareToChainNoChain of the comparison token. Default solana. Can differ from tokenChain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / compareToChain
      Added value: +{
      +  "description": "Chain of the comparison token. Default solana. Can differ from tokenChain.",
      +  "enum": [
      +    "solana",
      +    "ethereum",
      +    "base",
      +    "bsc",
      +    "arbitrum",
      +    "polygon"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / compareToMint / description
      Previous value: -"Mint address of the token whose market cap to compare against"New value: +"Address of the token whose market cap to compare against"
    • addedInput schema / properties / tokenChain
      Added value: +{
      +  "description": "Chain of the token you hold. Default solana.",
      +  "enum": [
      +    "solana",
      +    "ethereum",
      +    "base",
      +    "bsc",
      +    "arbitrum",
      +    "polygon"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / tokenMint / description
      Previous value: -"Mint address of the token you hold or are evaluating"New value: +"Address of the token you hold or are evaluating (base58 for Solana, 0x... for EVM chains)"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds substantial context beyond them: the fixed-supply assumption, the failure mode (comparable=false plus error when a market cap can't be resolved), and an explicit not-covered list (supply changes, dilution, exit liquidity, self-reported caps). That is exactly the kind of modeling-limits disclosure an agent needs before presenting results.

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?

Front-loads the core operation, then edge cases, then returns — a sensible order. There is mild redundancy between "Narrative-agnostic" and "works for any token pair, not tied to one hype cycle or one chain," and the closing returns list partially repeats the earlier projection explanation.

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?

No output schema exists, yet the description enumerates the returned fields (multiplier, projectedValueUsd, projectedPriceUsd, profitUsd, comparable) and the error path. For a 5-parameter read-only calculator with rich annotations, nothing material is left unexplained.

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; the description earns above that by adding a constraint not in the schema (investmentUsd must be above zero), restating the per-token chain+address pairing, and noting the two chains may differ. It stops short of explaining address format nuances beyond what the schema already says.

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: compares two tokens' live market caps and projects investment value if the first matched the second. It distinguishes itself from siblings like run_target_sell_price or run_value_migration by naming the exact mechanism (market-cap ratio, cross-chain, narrative-agnostic).

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?

Gives an explicit trigger phrase ("what if this token reaches [other token]'s market cap?") plus a clear statement of scope (any token pair, any of the supported chains). It does not name a competing sibling tool to route away from, which keeps it short of a 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.