Skip to main content
Glama

TokenBel Financial Data

trading_stats_get

Read-onlyIdempotent

Get share/bond trading totals and daily_series. No dates = latest 30 days; both dates = range (yield_wavg and *_latest are null). Find the id with search_by_ticker. Example: {"uuid":"a97f1fed","date_from":"2026-06-01","date_to":"2026-06-30"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesTokenBel id (usually 8 hex chars, no hyphens; not an RFC UUID). Share/bond id from search_by_ticker.
date_toNoInclusive YYYY-MM-DD end (>= start); supply both dates or neither.
date_fromNoInclusive YYYY-MM-DD start; supply both dates or neither.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
uuidYesTokenBel internal identifier: opaque hexadecimal string, usually 8 characters such as "78c7e502"; despite uuid field names, it is not an RFC UUID and normally has no hyphens.
periodYes
tickerYes
price_maxYes
price_minYes
yield_maxYes
yield_minYes
price_wavgYes
yield_wavgYes
daily_seriesYes
trading_daysYes
security_kindYes
last_trade_dateYes
turnover_amountYes
price_latest_dateYes
price_wavg_latestYes
yield_latest_dateYes
yield_wavg_latestYes
transactions_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / date_from / description
      Previous value: -"Range start date YYYY-MM-DD (inclusive). Provide both date_from and date_to for range mode; omit both for latest_30d mode."New value: +"Inclusive YYYY-MM-DD start; supply both dates or neither."
    • changedInput schema / properties / date_to / description
      Previous value: -"Range end date YYYY-MM-DD (inclusive, >= date_from). Provide both date_from and date_to for range mode; ranges ending today bypass cache."New value: +"Inclusive YYYY-MM-DD end (>= start); supply both dates or neither."
    • changedInput schema / properties / uuid / description
      Previous value: -"TokenBel internal identifier: opaque hexadecimal string, usually 8 characters such as \"78c7e502\"; despite uuid field/tool names, it is not an RFC UUID and normally has no hyphens. Listed share or bond id, usually discovered via search_by_ticker."New value: +"TokenBel id (usually 8 hex chars, no hyphens; not an RFC UUID). Share/bond id from search_by_ticker."
  2. Changed38 schema fields changed
    • removedOutput schema / properties / daily_series / items / properties / price_max / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / daily_series / items / properties / price_max / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / daily_series / items / properties / price_min / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / daily_series / items / properties / price_min / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / daily_series / items / properties / price_wavg / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / daily_series / items / properties / price_wavg / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / daily_series / items / properties / yield_max / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / daily_series / items / properties / yield_max / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / daily_series / items / properties / yield_min / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / daily_series / items / properties / yield_min / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / last_trade_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / last_trade_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / price_latest_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / price_latest_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / price_max / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / price_max / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / price_min / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / price_min / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / price_wavg / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / price_wavg / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / price_wavg_latest / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / price_wavg_latest / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / ticker / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ticker / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / transactions_count / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / transactions_count / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / turnover_amount / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / turnover_amount / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / yield_latest_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / yield_latest_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / yield_max / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / yield_max / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / yield_min / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / yield_min / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / yield_wavg / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / yield_wavg / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / yield_wavg_latest / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / yield_wavg_latest / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / uuid / description
      Previous value: -"Listed share or bond UUID (8-36 hex characters), usually discovered via search_by_ticker"New value: +"TokenBel internal identifier: opaque hexadecimal string, usually 8 characters such as \"78c7e502\"; despite uuid field/tool names, it is not an RFC UUID and normally has no hyphens. Listed share or bond id, usually discovered via search_by_ticker."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "daily_series": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "price_max": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "price_min": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "price_wavg": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "trade_date": {
      +            "type": "string"
      +          },
      +          "transactions_count": {
      +            "type": "number"
      +          },
      +          "turnover_amount": {
      +            "type": "string"
      +          },
      +          "yield_max": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "yield_min": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "trade_date",
      +          "price_min",
      +          "price_max",
      +          "price_wavg",
      +          "turnover_amount",
      +          "transactions_count",
      +          "yield_min",
      +          "yield_max"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "last_trade_date": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "mode": {
      +      "enum": [
      +        "latest_30d",
      +        "range"
      +      ],
      +      "type": "string"
      +    },
      +    "period": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "date_from": {
      +          "type": "string"
      +        },
      +        "date_to": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "date_from",
      +        "date_to"
      +      ],
      +      "type": "object"
      +    },
      +    "price_latest_date": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "price_max": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "price_min": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "price_wavg": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "price_wavg_latest": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "security_kind": {
      +      "enum": [
      +        "share",
      +        "bond"
      +      ],
      +      "type": "string"
      +    },
      +    "ticker": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "trading_days": {
      +      "type": "number"
      +    },
      +    "transactions_count": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "turnover_amount": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "uuid": {
      +      "description": "TokenBel internal identifier: opaque hexadecimal string, usually 8 characters such as \"78c7e502\"; despite uuid field names, it is not an RFC UUID and normally has no hyphens.",
      +      "type": "string"
      +    },
      +    "yield_latest_date": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "yield_max": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "yield_min": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "yield_wavg": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "yield_wavg_latest": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "uuid",
      +    "security_kind",
      +    "ticker",
      +    "mode",
      +    "period",
      +    "last_trade_date",
      +    "trading_days",
      +    "turnover_amount",
      +    "transactions_count",
      +    "price_wavg",
      +    "price_min",
      +    "price_max",
      +    "price_wavg_latest",
      +    "price_latest_date",
      +    "yield_min",
      +    "yield_max",
      +    "yield_wavg",
      +    "yield_wavg_latest",
      +    "yield_latest_date",
      +    "daily_series"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already indicate read-only and idempotent behavior, and the description adds valuable non-obvious semantics: default date window, null behavior for yield_wavg and *_latest when dates are supplied, and UUID format expectations. This exceeds what annotations alone convey.

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 sentences pack all essential information: function, default behavior, null caveat, lookup prerequisite, and an example. No filler; the most important facts are front-loaded and the example is compressed but instructive.

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 an output schema present, the description need not explain return values. It covers id acquisition, date semantics, defaults, and edge-case nulls, making it complete for correct invocation. The sibling context is adequately handled by naming the share/bond scope.

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 descriptions cover 100% of parameters and already explain inclusive dates and the both-or-neither rule. The description adds the default 30-day behavior, clarifies null outcomes, and gives a concrete JSON example, thereby enriching parameter understanding beyond the schema.

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?

The description states a specific verb ('Get'), a specific resource ('share/bond trading totals and daily_series'), and clearly distinguishes from sibling token_trading_stats_get by limiting scope to shares/bonds. It also contrasts with generic lookup tools like share_get_by_uuid by naming the trading-specific output.

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?

The description gives clear usage context: no dates means default 30 days, both dates means range, and it instructs finding the id via search_by_ticker. It does not explicitly state when not to use this tool or name alternatives, but the conditions are concrete enough to guide selection.

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