Skip to main content
Glama

AIsa Finance

Coin OHLC Chart by ID

get_coingecko_coins_id_ohlc
Read-onlyIdempotent

This endpoint allows you to get the OHLC chart (Open, High, Low, Close) of a coin based on particular coin ID

Published reference price: $0.008 USD per successful request. Declared unit rate: $0 USD per provider_credit. Account-specific pricing and final settlement may differ.

Input Schema

NameRequiredDescriptionDefault
idYesCoin ID. *refers to [`/coins/list`](/reference/coins-list).bitcoin
daysYesData up to number of days ago.1
intervalNoData interval, leave empty for auto granularity.
precisionNoDecimal place for currency price value.
vs_currencyYesTarget currency of price data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).usd

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / properties / days / default
      Added value: +"1"
    • changedInput schema / properties / days / description
      Previous value: -"`1`, `7`, `14`, `30`, `90`, `180`, `365`."New value: +"Data up to number of days ago."
    • addedInput schema / properties / days / enum
      Added value: +[
      +  "1",
      +  "7",
      +  "14",
      +  "30",
      +  "90",
      +  "180",
      +  "365",
      +  "max"
      +]
    • removedInput schema / properties / days / example
      Removed value: -"7"
    • addedInput schema / properties / id / default
      Added value: +"bitcoin"
    • changedInput schema / properties / id / description
      Previous value: -"CoinGecko coin ID (e.g., `bitcoin`, `ethereum`). Get the list via `/coins/list`."New value: +"Coin ID. \n*refers to [`/coins/list`](/reference/coins-list)."
    • removedInput schema / properties / id / example
      Removed value: -"bitcoin"
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "Data interval, leave empty for auto granularity.",
      +  "enum": [
      +    "daily",
      +    "hourly"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / precision / description
      Previous value: -"`full` or a value from `0` to `18` to specify decimal places for currency price values."New value: +"Decimal place for currency price value."
    • addedInput schema / properties / precision / enum
      Added value: +[
      +  "full",
      +  "0",
      +  "1",
      +  "2",
      +  "3",
      +  "4",
      +  "5",
      +  "6",
      +  "7",
      +  "8",
      +  "9",
      +  "10",
      +  "11",
      +  "12",
      +  "13",
      +  "14",
      +  "15",
      +  "16",
      +  "17",
      +  "18"
      +]
    • removedInput schema / properties / precision / example
      Removed value: -"2"
    • changedInput schema / properties / vs_currency / description
      Previous value: -"Target currency for price (e.g., `usd`, `eur`, `btc`). See `/simple/supported_vs_currencies`."New value: +"Target currency of price data. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)."
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "vs_currency",
      -  "days"
      -]New value: +[
      +  "id",
      +  "days",
      +  "vs_currency"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / days / example
      Added value: +"7"
    • addedInput schema / properties / id / example
      Added value: +"bitcoin"
    • addedInput schema / properties / precision / example
      Added value: +"2"
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds no behavioral context of its own beyond a pricing boilerplate block: it says nothing about granularity constraints, rate limits, or result volume, which are the traits that actually matter for this endpoint.

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?

The core is a single front-loaded sentence that puts the resource and key first, and the pricing block is a mandated disclosure rather than filler. The 'This endpoint allows you to...' framing is mildly wasteful but costs one clause, not a paragraph.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. What is missing is the operational constraint tying 'days' to 'interval' granularity (e.g. that hourly data is only available over short windows), which an agent needs to avoid a failed or misleading call.

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 description coverage is 100%, and all five parameters carry either a description or an enum, so the schema does the heavy lifting. The description only restates that the call is keyed on coin ID, adding no syntax or format meaning beyond the schema. Baseline 3 applies.

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 names a specific verb (get) and a precise resource (OHLC chart: Open, High, Low, Close) keyed by coin ID, so the agent knows exactly what data comes back. It does not, however, distinguish this from close siblings such as get_coingecko_coins_id_market_chart or get_coingecko_coins_id_history, leaving the agent to infer that 'OHLC' is the differentiator.

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?

There is no when-to-use, when-not-to-use, or alternative-naming guidance. An agent choosing between this, market_chart, and history gets no routing help, and there is no mention of the interval/days interaction that governs whether the call is even valid.

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