Skip to main content
Glama

Get balance history

get_balance_history
Read-only

Read-only. Get historical balance snapshots for a single asset over a date range. Use this to chart or describe how a balance trended over time. Choose a granularity (day/week/month) to control the bucket size. Each point is {date, balance}; balance is an exact decimal STRING in plain notation (never exponential), truncated to the asset operating precision — parse it as a decimal, not a float.

PAGE-PAGINATED: returns at most limit items — default 25, max 100. Read pagination.totalItems and pagination.totalPages and request the next page until you have them all. NEVER answer a total, a count, or an "is X supported" question from a single page. For the reference lists (get_assets, get_markets) pass limit: 100.

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": {
      "asset_symbol": "<asset_symbol>"
    },
    "name": "get_balance_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1).
limitNoItems per page, 1-100 (default 25).
end_dateNoEnd date filter, ISO-8601 (e.g. 2024-04-01). Defaults to now.
start_dateNoStart date filter, ISO-8601 (e.g. 2024-01-01). Defaults to the earliest record.
granularityNoBucket size for the snapshots: day, week, or month.
asset_symbolYesRequired. Asset symbol, e.g. CLP, BTC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint, but the description adds genuinely useful behavior: page-paginated with default 25 / max 100, the need to walk pagination.totalItems and totalPages, and a warning never to answer totals from a single page. It also discloses the return-point shape and the exact-decimal-string precision rule, which no structured field encodes. The opening 'Read-only' merely restates annotations, but the rest carries real weight.

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 purpose, then pagination, then a targeted hint for reference-list siblings. Dense but organized with a labeled 'PAGE-PAGINATED' block; the capitalized warnings are slightly heavy but each sentence carries instruction value.

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, the description supplies the return shape ({date, balance}), the numeric encoding caveat, pagination mechanics, and default date behaviors. For a paginated time-series read, an agent has everything needed to call it and interpret results correctly.

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%, so every parameter is already documented, including the granularity enum and the limit bounds. The description reinforces granularity as bucket size and repeats the limit default/max, but adds little parameter meaning beyond what the schema states, so the baseline applies.

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 historical balance snapshots for a single asset over a date range' — and frames the scope as a time series rather than a current-state lookup, which separates it from siblings like get_balances.

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 says when to use it ('to chart or describe how a balance trended over time'), explains how granularity changes the result, and gives a concrete pagination rule plus a pointer to pass limit: 100 for get_assets and get_markets. The exclusions are actionable rather than implied.

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