Skip to main content
Glama

analyze

Read-onlyIdempotent

Statistics computed server-side on verified autario indicators (World Bank, FRED, Eurostat, OECD, IMF, WHO, SEC): correlation, regression, growth, drivers, seasonality, value checks.

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": {
      "action": "<action>"
    },
    "name": "analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNocorrelate: First indicator ID calculate: First operand A (the numerator of a ratio). Indicator id of a numeric series, exactly as find_data action "indicators" or get_data action "profile" return it (a public indicator or one of your own uploads or connector tables). lag_analysis: First indicator id (candidate leading series)
bNocorrelate: Second indicator ID calculate: Second operand B (the denominator of a ratio). Indicator id of a numeric series, exactly as find_data action "indicators" or get_data action "profile" return it (a public indicator or one of your own uploads or connector tables). lag_analysis: Second indicator id (candidate lagging series)
xNoIndependent variable (predictor) indicator ID
yNoDependent variable (target) indicator ID
opNorolling_stats: mean | std | min | max | sum (default: mean) calculate: ratio | ratio_pct | diff | sum | product (default: ratio)
fullNoReturn the full raw time series (heavy, many tokens). Default false → you get only the summary/stats, which is enough to ANSWER a question. Set true only when you must plot or export every point.
timeNodescribe, regression, pct_change, rolling_stats, calculate, lag_analysis, seasonality, find_drivers, decompose_drivers, what_matters: Optional time window. "2010-2023" keeps 2010 through 2023, "2019-01-2024-06" works by month, and a single "2015" keeps 2015 onward. Omitted or unparseable = the whole series. correlate: Optional time range: "2010-2023" verify_value: Time period (e.g. "2023" or "2023-06")
actionYesWhich operation to run. describe = summary statistics and trend of one series, needs indicator, entity; correlate = correlation between two series, needs entity, a, b; regression = linear regression of y on x, needs entity, y, x; pct_change = percent change and growth over a period, needs entity, indicator; rolling_stats = rolling mean, sum or other window statistic, needs entity, indicator; calculate = arithmetic between two series, checked for compatible meaning, needs a, b, entity; lag_analysis = lead and lag between two series, needs a, b, entity; seasonality = trend, seasonal and residual parts of a series, needs indicator, entity; find_drivers = which candidate indicators move with a target, needs entity, target_indicator, candidates; decompose_drivers = share of a target's change explained by each candidate, needs target_indicator, candidates; what_matters = ranked factors behind an outcome, needs entity, outcome; verify_value = check a quoted number against the source, needs indicator, entity, time.
entityNodescribe, regression, pct_change, rolling_stats, calculate, seasonality: Entity the series is read for: an ISO 3166 alpha-3 country code such as "DEU" or "USA", or an aggregate code such as "WLD" or "EUU" (the canonical name matches too). Use the codes find_data action "indicators" and get_data action "profile" accept. correlate, find_drivers: Entity code (e.g. DEU) lag_analysis: Entity code (e.g. USA) decompose_drivers: Entity code (e.g. DEU). Omit for entity-less private series. what_matters: Entity code (e.g. USA, DEU) verify_value: Entity code (e.g. DEU, USA, EUU)
periodNopct_change: yoy | qoq | mom (default: yoy) seasonality: Seasonal period in time steps (12=monthly, 4=quarterly, 7=weekly). Auto-inferred from indicator frequency if omitted.
reasonNoWhy the refused combination is correct here. Returned with the result so a human can audit the decision.
windowNoWindow size in periods (2-100, default 5)
max_lagNolag_analysis: Max lag in periods (1-20, default 5) decompose_drivers: Max lead/lag periods to scan per candidate (0 disables, default 5, max 20)
outcomeNoIndicator id of the outcome metric
expectedNoThe value you want to verify. Omit for existence-only check.
overrideNoCompute a combination autario refused as incompatible. Requires `reason`.
indicatorNodescribe, pct_change, rolling_stats, seasonality: Indicator id of a numeric series, exactly as find_data action "indicators" or get_data action "profile" return it (a public indicator or one of your own uploads or connector tables). verify_value: Indicator ID
candidatesNofind_drivers: Candidate indicator IDs to test (max 30) decompose_drivers: Candidate indicator ids to decompose jointly (2-15) what_matters: Optional comma-separated candidate indicator ids. If omitted, auto-selects from ontology.
target_indicatorNoThe KPI you want to explain

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this as read-only, idempotent, non-destructive, and closed-world, so the safety profile is clear. The description adds useful data-provenance context by naming verified sources like World Bank, FRED, Eurostat, OECD, IMF, WHO, and SEC, but it does not disclose refusal/override behavior or other edge-case traits present in the schema.

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 front-loaded sentence with no filler, and the capability list earns its place by summarizing the tool's scope. It is dense but efficient; a slightly clearer grouping of the twelve actions would improve structure without lengthening it much.

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?

For a complex 19-parameter analysis tool, the rich schema and annotations carry most of the operational detail, so the description does not need to repeat parameter semantics. However, it omits important context such as when to use this tool rather than retrieval siblings and how refused incompatible combinations/override work, leaving clear gaps for an agent choosing a 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?

Schema description coverage is 100%, and the action enum plus parameter descriptions already explain parameter roles in detail. The tool description adds no parameter-specific meaning beyond the operation list, so the baseline score of 3 is appropriate.

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 states a specific verb/resource: statistics computed server-side on verified autario indicators, and enumerates analysis families such as correlation, regression, growth, drivers, seasonality, and value checks. It distinguishes the tool as a computation layer rather than a data-retrieval sibling, though it does not explicitly name alternatives.

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?

The description lists capabilities but gives no guidance on when to choose analyze versus find_data, get_data, charts, or other siblings. There are no exclusions, prerequisites, or situational cues beyond the implied 'use this for statistics' framing.

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.