Skip to main content
Glama
marsaplatform

Malja MCP

Official

Forecast (naive, with prediction intervals)

forecast
Read-only

Projects displacement metrics 1–5 years ahead from 10 years of data with 80% and 95% OLS intervals, detects structural breaks, and returns optional charts. Not an official planning figure.

Instructions

Naive linear projection of a displacement metric 1–5 years ahead, based on the last 10 years, with 80% and 95% OLS prediction intervals. Structural breaks in the history are detected and reported; since_break=true fits only the data after the latest break. Optional chart (svg / chartjs / vega-lite) with the interval band. This is a statistical extrapolation, NOT a UNHCR planning figure — always present it with that caveat.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNo"asylum" = people hosted IN the country; "origin" = people displaced FROM the country
chartNoAlso return a chart of observed + projected values with the interval band
localeNoLanguage of the human-readable text output: "en" (default) or "ar" (Modern Standard Arabic, right-to-left). Structured JSON fields, ISO3 codes and dataset ids stay in English either way.
metricNoMetric to project (default refugees)
countryYesCountry name or ISO3 code, e.g. "Egypt", "EGY", "syria"
since_breakNoFit only the years since the latest detected structural break (needs ≥3 years after it). Default false.
years_aheadNoHorizon (default 3)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
chartNo
caveatYes
fit_toYes
methodYes
metricYes
countryYes
fit_fromYes
intervalsYes
projectedYes
historicalYes
changepointsYes
country_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint, openWorldHint), lowering the bar, and the description adds substantial method transparency: OLS prediction intervals at 80%/95%, automatic detection and reporting of structural breaks, and the since_break fitting behavior. It does not mention data source, computational cost, or fallback when history is insufficient, keeping it from a 5.

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?

Three tight sentences with the core purpose front-loaded, followed by statistical detail and the caveat. Every sentence carries weight, though the density of clauses makes it slightly heavier than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, read-only forecasting tool with an output schema already covering return structure, the description supplies the semantic framing an agent needs: method, interval semantics, break handling, and an explicit caveat. Nothing critical is missing, though failure/edge-case behavior is not mentioned.

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?

With 100% schema description coverage the schema already documents every parameter, so baseline is 3. The description's references to since_break, chart types and the horizon largely restate what the schema already says, adding little new syntax or format meaning.

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?

States a specific verb+resource with method and scope: 'Naive linear projection of a displacement metric 1–5 years ahead, based on the last 10 years.' This clearly separates it from siblings like trend_analysis (historical description) and latest_statistics. It does not name any sibling explicitly, so it falls just short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives genuine usage context for one parameter ('since_break=true fits only the data after the latest break') and a presentation rule ('always present it with that caveat'). However it never states when to reach for this tool versus trend_analysis or other forecasting-adjacent siblings, so the guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.