Skip to main content
Glama
Japan Business Intelligence MCP Server

Japan Business Intelligence MCP Server

by SUPi5460

get_stats_data

Retrieve Japanese e-Stat table data by ID, including table info, classification metadata, and data values; use search_statistics first to find valid table IDs.

Instructions

Get statistical data from a specific e-Stat table by its ID. Returns the table info, classification metadata, and data values. Use search_statistics first to find table IDs.

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": {
      "statsDataId": "<statsDataId>"
    },
    "name": "get_stats_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of data rows to return (1-1000, default 100)
statsDataIdYesThe statistics table ID (obtained from search_statistics)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden; it partially meets it by describing the three categories of returned content, which confirms this is a retrieval operation. It says nothing about permissions, rate limits, or what happens when the table ID is invalid, and the row-cap behavior is only implied by the limit parameter.

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?

Three short sentences with zero filler: purpose first, return contents second, prerequisite third. Every sentence contributes distinct information.

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 two-parameter read tool with no output schema, the description covers purpose, return shape, and the prerequisite lookup step, which is nearly everything an agent needs. Minor gaps remain around error behavior and truncation, which matter given the 1000-row cap but are partly addressed by the limit parameter description.

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%, with both statsDataId and limit fully documented including range and default, so the schema does the heavy lifting. The description's note that the ID comes from search_statistics duplicates what the schema already says and adds no new syntax or format guidance.

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?

"Get statistical data from a specific e-Stat table by its ID" names the verb, the resource, and the lookup key, and the second sentence enumerates what comes back (table info, classification metadata, data values). It stops short of explicitly distinguishing itself from the sibling get_indicator_data, which an agent may also consider for numeric series.

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?

"Use search_statistics first to find table IDs" gives an explicit prerequisite and workflow ordering, which is the main thing an agent needs before calling. It does not state when this tool is preferable to get_indicator_data or get_meta_info, so no exclusions are offered.

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