Skip to main content
Glama

Query Table

query_table
Read-onlyIdempotent

Pull ESTONIA official statistics figures from a Statistics Estonia (Statistikaamet) table — wages, population, GDP, prices, unemployment. body is a PxWeb query object; get valid dimension values from table_meta first. Filter selections to stay under the ~100k-cell limit.

Input Schema

NameRequiredDescriptionDefault
bodyYes{query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}}
pathYesTable path ending in .px, e.g. ".../RV021.PX"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "body": {
      +      "query": [
      +        {
      +          "code": "Aasta",
      +          "selection": {
      +            "filter": "item",
      +            "values": [
      +              "2023"
      +            ]
      +          }
      +        }
      +      ],
      +      "response": {
      +        "format": "json-stat2"
      +      }
      +    },
      +    "path": "rahvastik/rahvastikunaitajad-ja-koosseis/rahvaarv-ja-rahvastiku-koosseis/RV021.PX"
      +  }
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive hints. The description adds meaningful constraints: the body must be a PxWeb query object, values must come from table_meta, and there is a ~100k-cell limit. These are behavioral details beyond what annotations provide, with no contradiction.

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?

The description is two sentences, with the main purpose front-loaded. Every sentence adds unique value: the first covers what the tool does, the second covers how to use it correctly (body semantics and limit). No filler or redundant content.

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 tool with nested body object and no output schema, the description covers the core aspects: purpose, input format, prerequisite, and a critical constraint. It doesn't explicitly describe return values, but the example in the schema includes response formatting, and the tool's purpose implies a return of statistical figures. The overall context is sufficiently complete for an agent to use it correctly.

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

Parameters4/5

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

Schema coverage is 100% for both parameters, but the description adds value by explaining that body is a PxWeb query object and directing users to table_meta for valid dimension values. This clarifies how to construct the body parameter beyond the schema's minimal description.

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?

The description states a specific action ('Pull ESTONIA official statistics figures') with a clear resource (Statistics Estonia table) and enumerates example topics (wages, population, GDP, prices, unemployment). It distinguishes itself from siblings by focusing on querying data from a table, as opposed to table discovery or metadata.

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?

The description gives an explicit workflow prerequisite: 'get valid dimension values from table_meta first', which tells the agent to use the sibling tool first. It also warns about the ~100k-cell limit, guiding selection filtering. It doesn't explicitly state when not to use this tool vs alternatives, but the workflow guidance is strong.

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.