Skip to main content
Glama

Get macro data

get_macro_series
Read-onlyIdempotent

Lists Taiwan and US macroeconomic series (GDP, inflation, employment, trade, policy rates, Treasury yields, crude oil, US dollar indices, Taiwan total return indices) with their latest value, and returns the history of one series. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-economy/): pick a method and pass its arguments in args.

Methods:

  • macroSeries (Macro series list): Definitions and latest observation of every macroeconomic series: US and Taiwan macro data, central bank policy rates, US Treasury yields, crude oil spot prices, US dollar indices and Taiwan total return indices.

  • macroObservations (Macro series history): Observations of one macroeconomic series over a date range, oldest first. Up to 2000 rows. Args: id (required): Series id (case-insensitive), 64 in total; see macroSeries for the full list with latest values. US: US.CPI, US.CPI.YOY, US.CORE_CPI, US.CORE_CPI.YOY, US.UNEMPLOYMENT, US.NONFARM, US.NONFARM.CHANGE, US.GDP.QOQ, US.PCE_PRICE, US.PCE_PRICE.YOY, US.CORE_PCE_PRICE, US.CORE_PCE_PRICE.YOY, US.PERSONAL_INCOME, US.PERSONAL_INCOME.MOM, US.PERSONAL_SPENDING, US.PERSONAL_SPENDING.MOM, US.EFFR, US.FED_TARGET.LOWER, US.FED_TARGET.UPPER, US.TREASURY. (1M, 6W, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), US.OIL.WTI, US.OIL.BRENT, US.DOLLAR.BROAD, US.DOLLAR.AFE. Policy rates: US.FED, GB.BOE, AU.RBA, CN.PBOC, CA.BOC, EU.ECB, NZ.RBNZ, IN.RBI, RU.CBR, BR.BCB, JP.BOJ, CH.SNB followed by .POLICY_RATE. Taiwan: TW.TWSE.TOTAL_RETURN, TW.TPEX.TOTAL_RETURN, TW.CPI, TW.CPI.YOY, TW.UNEMPLOYMENT, TW.BUSINESS_SIGNAL, TW.LEADING, TW.LEADING.DETREND, TW.COINCIDENT, TW.COINCIDENT.DETREND, TW.LAGGING, TW.LAGGING.DETREND, TW.CBC.DISCOUNT, TW.CBC.SECURED, TW.CBC.UNSECURED. Unknown ids return 404; from: Start date (inclusive), YYYYMMDD, compared with the observation period (first day of the month for monthly data, first day of the quarter for quarterly data, effective date for policy rates); to: End date (inclusive), YYYYMMDD, compared the same way as from; limit: Most recent N observations in the range, returned oldest first (1-2000, default 60).

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": {
      "method": "<method>"
    },
    "name": "get_macro_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments of the method, as listed in the tool description
langNoLanguage for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en
methodYesMethod from the list in the tool description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations it discloses the upstream source (CubeLV Market Data API), the 2000-row cap, oldest-first ordering, the default limit of 60, and that unknown series ids return 404. It also explains how from/to are compared (observation period start for monthly/quarterly data, effective date for policy rates), which is behavior an agent could not get from the annotations.

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?

Purpose is front-loaded before the method list, and each method bullet is tight. The long enumeration of 64 series ids is dense but functional for id discovery; however it partly duplicates the 'see macroSeries for the full list' pointer, so some bulk is redundant rather than essential.

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 compensates by describing the return shape (latest observation per series; history oldest-first, up to 2000 rows) and the error case (404 on unknown ids). For a two-method, nested-args tool this covers everything an agent needs to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline, but the description adds real meaning: id is case-insensitive with 64 valid values spelled out, from/to use YYYYMMDD with documented comparison semantics, and limit is bounded 1-2000 with a default of 60. This matters because args is an additionalProperties:true object whose contents are only documented in the description.

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 first sentence states a specific verb and resource ('Lists Taiwan and US macroeconomic series ... and returns the history of one series') and enumerates the covered domains (GDP, inflation, rates, yields, oil, dollar indices, Taiwan total return indices). It is unambiguous what the tool returns, though it never names a sibling (e.g., get_exchange_rates or get_global_benchmarks) to mark the boundary of its scope.

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?

It gives explicit method-selection guidance: 'pick a method and pass its arguments in args', then explains macroSeries for definitions/latest values versus macroObservations for date-range history, including a pointer ('see macroSeries for the full list'). What's missing is any exclusion rule against the sibling tools, so the agent must infer that FX and government-release data live elsewhere.

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