Skip to main content
Glama

Ma Indicator Series

ma_indicator_series
Read-onlyIdempotent

Time series for one Moroccan HCP indicator by id (from ma_indicators): every period with its value, latest value, and the change vs the previous period and vs a year earlier. Optional from/to as YYYY-MM, YYYY-Qn or a bare year. A miss returns found:false with data_as_of and nearby ids.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "ipc:indice-des-prix-a-la-consommation-en-milieu-urbain:indice-general",
      "from": "2026-01"
    },
    "name": "ma_indicator_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIndicator id returned by ma_indicators
toNoLatest period, e.g. "2026-06", "2026-Q2" or "2026"
fromNoEarliest period, e.g. "2025-01", "2025-Q1" or "2025"

Output Schema

NameRequiredDescriptionDefault
idNo
countNo
foundNo
groupNo
labelNo
notesNo
rangeNo
tableNo
topicNo
latestNo
pointsNo
reasonNo
seriesNo
sourceNo
messageNo
breakdownNo
frequencyNo
unit_noteNo
data_as_ofNo
reuse_termsNo
suggestionsNo
available_toNo
latest_valueNo
latest_periodNo
available_fromNo
latest_bulletinNo
last_seen_in_bulletinNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the bar is lower; the description still adds real behavior: the per-period value payload, latest value, period-over-period and year-over-year change, plus the not-found contract ('found:false with data_as_of and nearby ids') which an agent cannot infer from annotations.

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 tight sentences: purpose first, then the optional period bounds and their formats, then the failure contract. No filler, and the most load-bearing information (what comes back) leads.

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?

For a 3-parameter read tool with a full input schema, an output schema, and rich annotations, the description covers everything an agent needs: identity of the id source, period formats, returned content, and miss handling.

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 coverage is 100% so baseline is 3; the description goes further by spelling out the accepted period grammars (YYYY-MM, YYYY-Qn, bare year) and clarifying that 'id' selects exactly one indicator, reinforcing the schema's id/from/to semantics.

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 ('Time series for one Moroccan HCP indicator by id'), defines the payload (every period with value, latest value, change vs previous period and year-earlier), and ties the id origin to the sibling ma_indicators, so it is clearly distinguishable from the catalog tool.

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 parenthetical '(from ma_indicators)' routes the agent to the discovery tool before calling this one, and the date-format options for from/to set usage context. It stops short of explicit when-not guidance or naming any other alternative series tool, so a 4 rather than a 5.

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.