Skip to main content
Glama
longbridge

longbridge

Official

Macro Indicator Data

macrodata
Read-onlyIdempotent

Access historical macro-economic indicator data by indicator code, with date range filtering and pagination for actual, previous, and forecast values.

Instructions

Get historical data for a macro-economic indicator by its code (from macrodata_indicators). start_date/end_date accept YYYY-MM-DD. Returns {count, info{indicator_code, country, name, describe, periodicity, importance(1=low/2=mid/3=high)}, data[]{period, release_at, actual_value, previous_value, forecast_value, unit}}. period format varies by periodicity: monthly="YYYY-MM-DD", quarterly="YYYY-Qn" (e.g. "2024-Q1"), annual="YYYY-01-01". Note: empty actual_value = not yet released (only forecast_value available); empty data[] = no records in range. Supports offset/limit pagination (max 100 per page). Returns error if indicator_code does not exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of data points to return (default 100, max 100).
offsetNoPagination offset for historical data points, default 0.
end_dateNoLatest release date to include (YYYY-MM-DD, e.g. `"2024-12-31"`).
start_dateNoEarliest release date to include (YYYY-MM-DD, e.g. `"2024-01-01"`).
indicator_codeYesIndicator code from `macrodata_indicators`, e.g. `"30771718"`.
Behavior4/5

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

Annotations indicate read-only, open-world, and idempotent hints. The description adds behavioral details: error on non-existent indicator, empty data for no records, and unreleased actual values. No contradictions.

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 description is a single paragraph covering all key points efficiently. While slightly dense, every sentence adds value. Could be improved with bullet points for readability.

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?

Despite no output schema, the description thoroughly explains return structure, period formats, edge cases (empty data, unreleased values), and pagination limits. It provides complete guidance for a data retrieval tool.

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?

The schema has 100% description coverage for all parameters. The description adds no new semantic information beyond restating date formats and pagination, so it does not significantly increase meaning.

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 clearly states 'Get historical data for a macro-economic indicator by its code', specifying the verb, resource, and unique identifier. It distinguishes from the sibling tool 'macrodata_indicators' which lists available codes.

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 explains how to use parameters (date formats, pagination) and implies a prerequisite by referencing 'from macrodata_indicators'. However, it does not explicitly state when not to use this tool or provide alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/longbridge/longbridge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server