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

NameTypeRequiredDescription
idstringyesIndicator id returned by ma_indicators
fromstringnoEarliest period, e.g. “2025-01”, “2025-Q1” or “2025”
tostringnoLatest 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

FieldTypeDescription
foundboolean
reasonstring
messagestring
sourcestring
data_as_ofstring
latest_bulletinstring
reuse_termsstring
idstring
topicstring
tablestring | null
groupstring | null
labelstring
breakdownstring | null
unit_notestring | null
frequencystring
latest_periodstring | null
latest_valuenumber | null
pointsnumber
last_seen_in_bulletinstring | null
suggestionsarray
available_fromstring | null
available_tostring | null
rangeobject
countnumber
seriesarray
latestobject
notesarray
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.

Regenerated from source · build October 30, 2026