ma_indicator_series
Pack: morocco-hcp-statistics · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ma_indicator_series for the schema, then POST the same URL with its arguments for the data.
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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Indicator id returned by ma_indicators |
from | string | no | Earliest period, e.g. “2025-01”, “2025-Q1” or “2025” |
to | string | no | Latest period, e.g. “2026-06”, “2026-Q2” or “2026” |
Example call
Arguments
{
"id": "ipc:indice-des-prix-a-la-consommation-en-milieu-urbain:indice-general",
"from": "2026-01"
}
curl
curl -X POST https://gateway.pipeworx.io/morocco-hcp-statistics/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ma_indicator_series","arguments":{"id":"ipc:indice-des-prix-a-la-consommation-en-milieu-urbain:indice-general","from":"2026-01"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ma_indicator_series', {
"id": "ipc:indice-des-prix-a-la-consommation-en-milieu-urbain:indice-general",
"from": "2026-01"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
reason | string | |
message | string | |
source | string | |
data_as_of | string | |
latest_bulletin | string | |
reuse_terms | string | |
id | string | |
topic | string | |
table | string | null | |
group | string | null | |
label | string | |
breakdown | string | null | |
unit_note | string | null | |
frequency | string | |
latest_period | string | null | |
latest_value | number | null | |
points | number | |
last_seen_in_bulletin | string | null | |
suggestions | array | |
available_from | string | null | |
available_to | string | null | |
range | object | |
count | number | |
series | array | |
latest | object | |
notes | array |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"reason": {
"type": "string"
},
"message": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"latest_bulletin": {
"type": "string"
},
"reuse_terms": {
"type": "string"
},
"id": {
"type": "string"
},
"topic": {
"type": "string"
},
"table": {
"type": [
"string",
"null"
]
},
"group": {
"type": [
"string",
"null"
]
},
"label": {
"type": "string"
},
"breakdown": {
"type": [
"string",
"null"
]
},
"unit_note": {
"type": [
"string",
"null"
]
},
"frequency": {
"type": "string"
},
"latest_period": {
"type": [
"string",
"null"
]
},
"latest_value": {
"type": [
"number",
"null"
]
},
"points": {
"type": "number"
},
"last_seen_in_bulletin": {
"type": [
"string",
"null"
]
},
"suggestions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"topic": {
"type": "string"
},
"table": {
"type": [
"string",
"null"
]
},
"group": {
"type": [
"string",
"null"
]
},
"label": {
"type": "string"
},
"breakdown": {
"type": [
"string",
"null"
]
},
"unit_note": {
"type": [
"string",
"null"
]
},
"frequency": {
"type": "string"
},
"latest_period": {
"type": [
"string",
"null"
]
},
"latest_value": {
"type": [
"number",
"null"
]
},
"points": {
"type": "number"
},
"last_seen_in_bulletin": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
"available_from": {
"type": [
"string",
"null"
]
},
"available_to": {
"type": [
"string",
"null"
]
},
"range": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
}
},
"additionalProperties": true
},
"count": {
"type": "number"
},
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"period": {
"type": "string"
},
"value": {
"type": "number"
}
},
"additionalProperties": true
}
},
"latest": {
"type": "object",
"properties": {
"period": {
"type": "string"
},
"value": {
"type": "number"
},
"change_vs_previous_pct": {
"type": [
"number",
"null"
]
},
"change_vs_year_ago_pct": {
"type": [
"number",
"null"
]
},
"computed_by": {
"type": "string"
}
},
"additionalProperties": true
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the morocco-hcp-statistics pack
{
"mcpServers": {
"morocco-hcp-statistics": {
"url": "https://gateway.pipeworx.io/morocco-hcp-statistics/mcp"
}
}
}
See Getting Started for client-specific install steps.