Skip to main content
Glama
xmpuspus

ph-civic-data-mcp

by xmpuspus

Browse the PSA OpenSTAT catalog

browse_psa_catalog
Read-onlyIdempotent

Explore the PSA OpenSTAT catalog one level at a time to locate statistical datasets. Navigate from 27 top-level subjects down to specific tables without guessing an ID.

Instructions

List one level of the PSA OpenSTAT statistical catalog.

OpenSTAT publishes roughly 2,900 tables across 27 subjects. This walks that tree one level at a time so an agent can find a dataset without guessing a table id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRelative catalog path such as "1F" or "1F/FY". None or "" returns the 27 top-level subjects. Use the `path` field of an entry from a previous call to go one level deeper.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
pathNoRelative path browsed.
sourceYesUpstream data source name.
caveatsYes
entriesYes
licenseNo
source_urlYesCanonical OpenSTAT URL used.
parent_pathNo
folder_countNo
dataset_countNo
upstream_errorNoTrue when OpenSTAT was unreachable. Not an empty result.
validation_errorNoTrue when the caller's arguments were rejected before any request.
data_retrieved_atYes
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, covering safety traits. The description adds valuable behavioral context beyond annotations by emphasizing that the tool traverses the catalog 'one level at a time', implying the need for repeated calls to go deeper. This is a non-obvious behavior not captured in the annotations and is clearly disclosed. No contradiction exists.

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 extremely concise: two short sentences, each earning its place. The first sentence states the core functionality, and the second provides essential context about the catalog's scale and navigation strategy. There is no redundant or filler content.

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

Completeness5/5

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

Given the simple single-parameter interface, the rich parameter description in the schema, and the presence of annotations and an output schema, the description is complete. It addresses the tool's purpose, behavior, and usage context without needing to explain return values (handled by the output schema) or safe-read characteristics (handled by annotations). An agent can correctly decide when to invoke this tool and how to use it.

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?

The input schema already provides 100% coverage with a detailed description of the 'path' parameter, including examples and the behavior of null/empty values. Therefore, the description does not need to elaborate further. It adds only incidental context about the catalog size (2,900 tables, 27 subjects) which helps understand the purpose of the path parameter but does not directly explain its syntax or semantics beyond the schema.

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 'List one level of the PSA OpenSTAT statistical catalog' with a specific verb and resource. It clearly differentiates from sibling tools like describe_psa_dataset and query_psa_dataset by focusing on catalog navigation rather than dataset details or querying. The additional context about walking the tree one level at a time makes the purpose unambiguous.

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 explains when to use the tool: 'so an agent can find a dataset without guessing a table id'. This provides clear contextual guidance for discovery use cases. However, it does not explicitly name alternatives or state when not to use it, such as mentioning that describe_psa_dataset should be used once a dataset ID is known. Without exclusions or explicit alternative references, it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xmpuspus/ph-civic-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server