Skip to main content
Glama
xmpuspus

ph-civic-data-mcp

list_admin_units

Retrieve administrative units from the Philippine Standard Geographic Code (PSGC) hierarchy. List children of any node or get top-level regions, with optional level filter and pagination.

Instructions

Browse children of a PSGC node, or top-level regions when parent_code is None.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_codeNoParent PSGC code. None returns the regions list.
levelNoFilter children by level (region|province|city|municipality|district|barangay).
limitNoMax units to return (default 50, capped at 500).
offsetNoSkip this many matching units before returning results — page past 500 children (e.g. Manila has 897 barangays) by calling again with offset=500.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It does not mention read-only nature, rate limits, error handling, or pagination behavior (though pagination is implied by offset). More context is needed for full transparency.

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 a single concise sentence that front-loads the main action. Every word is necessary and there is no redundancy.

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?

Given the tool's simplicity (4 optional parameters, output schema present), the description covers the core behavior adequately. It could mention error cases but is sufficiently complete for typical usage.

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 the schema already documents all parameters. The tool description adds marginal value by clarifying the role of parent_code in determining top-level vs. children. This meets the baseline of 3.

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 uses a specific verb 'Browse' and clearly identifies the resource as children of a PSGC node, with a clear distinction between top-level regions and children based on parent_code. This distinguishes it from siblings like 'get_location_hierarchy'.

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 explicitly states when to use the tool (browsing children of a node) and when it returns top-level regions (parent_code is None). It does not directly name alternatives but the context is clear and adequate for a simple listing tool.

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