Skip to main content
Glama

Central Statistical Bureau of Latvia PxWeb MCP

Query Latvia CSB macro series

query_latvia_macro_series
Read-onlyIdempotent

Execute a PxWeb JSON query against a Latvia CSB table. Omit filters to retrieve the latest 10 years of Latvia total GDP at current prices.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_latvia_macro_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNoOptional PxWeb variable filter objects.
max_rowsNoMaximum observation rows to return (default 30, max 200).
table_pathNoFull table path under OSP_PUB/START (defaults to "VEK/IK/IKP/IKP010").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so safety and idempotency are covered. The description adds the concrete default result set (latest 10 years of Latvia total GDP at current prices) and the default table path behavior, which is real added context. It says nothing about external-API failure modes, pagination, or how max_rows truncates results.

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?

Two sentences, zero filler, with the core action first and the default-behavior fallback second. Nothing is repeated from the title or schema.

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

Completeness3/5

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

For a three-optional-parameter query tool with full schema coverage and annotations, the description covers purpose and defaults adequately. The gap is return shape: with no output schema, the agent is not told that the response is a set of observation rows truncated at max_rows, which matters for planning follow-up calls.

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?

Schema description coverage is 100%, so all three parameters are already well documented, which sets the baseline at 3. The description contributes only the default-outcome meaning of omitting filters and the implicit default table selection; it adds no syntax or format guidance beyond the schema.

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?

"Execute a PxWeb JSON query against a Latvia CSB table" gives a specific verb (execute query) and resource (Latvia CSB table), and the default-behavior sentence pins down what happens with no arguments. It is clearly distinguishable from the sibling tools (search, browse, schema, categories), though it never names them explicitly.

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?

The "omit filters" sentence usefully describes the zero-argument path, implying this is the tool to call once a table is chosen. However, it never says when to prefer it over get_latvia_table_schema or browse_latvia_economy_tables, and the prerequisite of fetching the schema first is only stated inside the parameter schema, not the description.

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.