Skip to main content
Glama
cyprus-open-data-mcp

cyprus-open-data-mcp

by Nyaopx

Get numbers from a CYSTAT table

query_statistics
Read-only

Query a CYSTAT statistics table with variable and time filters to retrieve labelled numeric rows, defaulting unfiltered variables and recent periods for focused results.

Instructions

Query one CYSTAT table with filters per variable and get labelled rows of numbers. Filters are keyed by variable code or label; each value can be a label (case and accent insensitive, partial match allowed), a list of labels, '*' for all, and for the time variable 'latest', 'last:N' or a range like '2024M01..2026M10'. Variables you do not filter default to the first value (usually the total) and time defaults to the last 12 periods; defaults_applied lists them. At most 'limit' cells (default 200, max 1000).

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": {
      "table": "<table>"
    },
    "name": "query_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
tableYesTable reference from search_statistics.
filtersNoe.g. {"MONTH": "last:13", "INDICATOR": "% change - same month of previous year", "COICOP18": "General Consumer Price Index"}
languageNoTable language: en (default) or el for Greek labels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries the real behavioral load and does it well: it discloses defaulting rules, that defaults_applied reports them, and the cell cap (default 200, max 1000). These are exactly the silent behaviors that would otherwise surprise a caller.

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?

Front-loaded with purpose, then filter semantics, then defaults, then limits — no filler sentences. It is a single dense paragraph, so the defaulting rules and the size cap run together and would read better as separate clauses.

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?

With no output schema, the description still characterizes the return as labelled rows plus a defaults_applied list, which is the key thing an agent needs. Minor gaps remain around error behavior for an invalid table reference and the exact shape of returned rows.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds substantial meaning beyond the 75%-covered schema: filter values may be labels (case/accent insensitive, partial match), lists, '*' for all, and time-specific tokens 'latest', 'last:N', and '2024M01..2026M10' ranges. It also restates the limit default and ceiling, which the schema only bounds numerically.

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: 'Query one CYSTAT table ... get labelled rows of numbers.' The word 'one' plus the filter-per-variable framing makes it clearly distinct from a table-search sibling, so an agent can tell what it retrieves without opening the schema.

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?

Gives clear operating context: filters are optional, unfiltered variables fall back to the first value, time falls back to the last 12 periods, and results are capped by 'limit'. It does not explicitly state the prerequisite of obtaining a table reference from search_statistics, which is the one routing cue an agent would most benefit from.

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