Skip to main content
Glama

Psa Ph Table Info

psa_ph_table_info
Read-onlyIdempotent

Describe one Philippine Statistics Authority (PSA) table: its title (which carries the unit and base year), its dimensions, how many values each has, and the valid value codes with labels so a selection can be written for psa_ph_get_data. Value codes are positional ("0", "1", ...); labels are the real names. Pass dimension to list every value of one dimension (optionally filtered with match) when it has more than the preview shows.

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": {
      "table_id": "2M/PI/CPI/2018NEW/0012M4ACP22.px"
    },
    "name": "psa_ph_table_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
matchNoWith `dimension`: only values whose label contains this text.
table_idYesNative table id from psa_ph_search_tables, e.g. "2M/PI/CPI/2018/0012M4ACP09.px".
dimensionNoOptional dimension code or label to list in full, e.g. "Commodity Description".

Output Schema

NameRequiredDescriptionDefault
noteNo
titleNo
sourceNo
table_idNo
data_as_ofNo
dimensionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's job is to add semantics—which it does by explaining that only a preview of values is shown and that dimension listing is the way to see everything. It also discloses the crucial quirk that value codes are positional indices while labels are the real names, which prevents a downstream mistake.

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, front-loaded with what is returned, followed by the expansion mechanism. The parenthetical about unit and base year and the note on positional codes both carry real information rather than filler.

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?

An output schema exists, so return values need no prose, and the description covers scope, expansion, filtering, and downstream use adequately. Minor gaps remain, such as behavior on an invalid or unknown table_id, but nothing essential for correct invocation is missing.

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 `table_id`, `dimension`, and `match` are already well documented; the baseline is 3. The description adds the preview-versus-full-listing behavior that explains why `dimension`/`match` exist, but adds no new syntax or format detail for `table_id` beyond the schema example.

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?

States a specific verb and resource ('Describe one PSA table') and enumerates the returned content: title, dimensions, value counts, and valid value codes with labels. It also names the downstream sibling (psa_ph_get_data), so an agent can place it in the workflow without opening another schema.

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?

Gives an explicit conditional: pass `dimension` to list every value of one dimension, optionally narrowed with `match`, when the preview is insufficient. The link to writing a selection for psa_ph_get_data clarifies the purpose of the call. It stops short of stating when not to use this tool (e.g., when psa_ph_search_tables is the right first step).

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.