Skip to main content
Glama

Scb Se Query Table

scb_se_query_table
Read-onlyIdempotent

Pull data from a table. body is a PxWeb query object.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "body": {
        "query": [
          {
            "code": "Region",
            "selection": {
              "filter": "item",
              "values": [
                "00"
              ]
            }
          },
          {
            "code": "År",
            "selection": {
              "filter": "top",
              "values": [
                "1"
              ]
            }
          }
        ],
        "response": {
          "format": "json-stat2"
        }
      },
      "path": "BE/BE0101/BE0101A/BefolkningNy"
    },
    "name": "scb_se_query_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes{query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}}
pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. Beyond that the description only says the body is a 'PxWeb query object', adding no context on error behavior, expected response shape, rate limits, or what happens with an invalid path on an open-world endpoint.

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?

Two short sentences with the core action first and the body-format hint second; nothing is redundant. It is efficient but arguably too terse rather than padded, so no penalty for verbosity.

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

Completeness2/5

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

The tool has nested-object parameters, two required parameters, and an open-world remote data source, yet the description supplies no guidance on constructing the path, no note on response format (json-stat2), and no framing of PxWeb. An output schema exists so return values need not be explained, but the input-side guidance is inadequate for this complexity.

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 coverage is 50%: 'body' is described in the schema while 'path' has no description beyond the example value. Naming the 'PxWeb query object' format does point the agent at an external specification for the query/selection structure, which is real added meaning, but 'path' remains unexplained (that it is a table path such as BE/BE0101/BE0101A/BefolkningNy is only derivable from the example).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Pull data from a table" gives a verb and a resource, so the agent knows this retrieves data rather than metadata, which implicitly separates it from scb_se_table_meta. But it never mentions SCB/Statistics Sweden, table identifiers, or any qualifying scope, so the purpose is only minimally specific.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites (e.g. that a valid table path must first be discovered), and no named alternative. The agent must infer from sibling names alone that metadata lookup and subject browsing precede this call.

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.