Skip to main content
Glama

getTickerByContract

Read-onlyIdempotent

Get the current price and market data of a token by its contract address (for on-chain and DeFi tokens). Use when you have a contract address (0x...) rather than a name. For history use getHistoricalTickerByContract. Read-only; platformId is the chain (e.g. eth-ethereum) and contractAddress the token address. No API key required.

Input Schema

NameRequiredDescriptionDefault
rationaleYesREQUIRED. In 1-2 sentences explain WHY you are calling this tool and what you intend to do with the result. Examples: 'User asked for BTC price; calling getTickersById to fetch current USD value.' 'Building a portfolio dashboard; need OHLCV for ETH last 7 days.' This is logged and reviewed to improve the MCP. Do not include user PII or secrets; use generic descriptions.
platformIdYes
contractAddressYes

Output Schema

NameRequiredDescriptionDefault
idNo
nameNo
rankNo
quotesNoKeyed by quote currency code (e.g. 'USD', 'BTC').
symbolNo
beta_valueNo
max_supplyNo
last_updatedNo
total_supplyNoMay be 0 as a sentinel for tokens with no supply cap. Cross-reference with CoinPaprika docs for sentinel semantics.
first_data_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedOutput schema / properties / first_data_at / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / last_updated / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / name / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / quotes / additionalProperties
      Removed value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "ath_date": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "ath_price": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "market_cap": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "market_cap_change_24h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_12h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_15m": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_1h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_1y": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_24h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_30d": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_30m": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_6h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_change_7d": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "percent_from_price_ath": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "price": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "volume_24h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "volume_24h_change_24h": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}
    • addedOutput schema / properties / quotes / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "ath_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "ath_price": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "market_cap": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "market_cap_change_24h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_12h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_15m": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_1h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_1y": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_24h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_30d": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_30m": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_6h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_change_7d": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "percent_from_price_ath": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "price": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "volume_24h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "volume_24h_change_24h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / quotes / type
      Removed value: -"object"
    • changedOutput schema / properties / rank / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / symbol / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changed
    • removedOutput schema / properties / circulating_supply
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
  3. Changed2 schema fields changed
    • changedInput schema / properties / rationale / description
      Previous value: -"REQUIRED. In 1-2 sentences explain WHY you are calling this tool and what you intend to do with the result. Examples: 'User asked for BTC price; calling getTickersById to fetch current USD value.' 'Building a portfolio dashboard; need OHLCV for ETH last 7 days.' This is logged and reviewed to improve the MCP. Do not include user PII or secrets — use generic descriptions."New value: +"REQUIRED. In 1-2 sentences explain WHY you are calling this tool and what you intend to do with the result. Examples: 'User asked for BTC price; calling getTickersById to fetch current USD value.' 'Building a portfolio dashboard; need OHLCV for ETH last 7 days.' This is logged and reviewed to improve the MCP. Do not include user PII or secrets; use generic descriptions."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "beta_value": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "circulating_supply": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "first_data_at": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "last_updated": {
      +      "type": "string"
      +    },
      +    "max_supply": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "quotes": {
      +      "additionalProperties": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "ath_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ath_price": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "market_cap": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "market_cap_change_24h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_12h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_15m": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_1h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_1y": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_24h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_30d": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_30m": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_6h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_change_7d": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "percent_from_price_ath": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "price": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "volume_24h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "volume_24h_change_24h": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "description": "Keyed by quote currency code (e.g. 'USD', 'BTC').",
      +      "type": "object"
      +    },
      +    "rank": {
      +      "type": "number"
      +    },
      +    "symbol": {
      +      "type": "string"
      +    },
      +    "total_supply": {
      +      "description": "May be 0 as a sentinel for tokens with no supply cap. Cross-reference with CoinPaprika docs for sentinel semantics.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description's 'Read-only' line merely confirms them. It adds genuine context beyond annotations: 'No API key required' and the meaning of platformId/contractAddress. It does not discuss error behavior for unknown contract addresses or rate limits, so it stops short of a 5.

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

Conciseness5/5

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

Three tight sentences: purpose first, then the disambiguating selection rule, then parameter and auth notes. Every sentence carries information and nothing is repeated from the schema.

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

Completeness4/5

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

With an output schema present and annotations covering the safety profile, the description covers what an agent needs to select and call the tool. The remaining gap is that valid platformId identifiers aren't listed, forcing a lookup or a trial call.

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 description coverage is only 33% (only 'rationale' is documented), so the description must compensate, and it does for both undocumented parameters: platformId is the chain with an example (eth-ethereum) and contractAddress is the token address. It does not enumerate valid platformId values, which would have made it a 5.

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 current price and market data of a token by contract address) and scopes it to on-chain/DeFi tokens. It is clearly distinguishable from getTickersById (which takes an id) and getHistoricalTickerByContract (history).

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?

Explicitly names the selecting condition ('when you have a contract address (0x...) rather than a name') and routes history requests to getHistoricalTickerByContract by name. No inference is required.

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