Skip to main content
Glama

Server Details

MCP server for the Philippine Standard Geographic Code (PSGC) API. Gives AI agents structured access to the full PH geographic hierarchy - regions, provinces, cities, municipalities, and barangays.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a clearly distinct operation: single lookup vs batch_lookup (one code vs many), list_by_type (all of a level) vs list_children (children of a parent), plus hierarchy, search, and population queries. The single/multiple and by-level/by-parent distinctions are spelled out in the descriptions, so an agent can reliably choose.

Naming Consistency4/5

Most names follow a verb_noun pattern (batch_lookup, get_hierarchy, list_by_type, list_children, query_by_population). 'lookup' and 'search' are bare verbs, which are conventional for those operations but break the otherwise uniform pattern slightly.

Tool Count5/5

Seven tools is well-scoped for a geographic reference-data server, covering the main access patterns without redundancy or bloat.

Completeness5/5

As a read-only reference dataset, the surface is comprehensive: single and batch code lookup, name search, level listing, parent-child traversal, full hierarchy, and population queries. Barangay volume is handled by delegating to search and list_children, leaving no dead ends.

Available Tools

7 tools
batch_lookupAInspect

Look up multiple PSGC entities in one call. Pass an array of 10-digit codes (max 50). Returns results in the same order as input, with null for codes not found.

Inputs: codes (required).

get_hierarchyAInspect

Get the full administrative hierarchy for a PSGC entity. Returns the chain from the entity up through its parent city/municipality, province, and region.

Inputs: code (required).

list_by_typeAInspect

List all PSGC entities of a given geographic level. Barangay (Bgy) is excluded because there are 42,000+ barangays. To find barangays, use 'search' with a name query or 'list_children' on a city/municipality. Paginated (default limit: 50).

Inputs: level (required), limit, offset.

list_childrenAInspect

List the direct children of a PSGC entity. For a region, returns provinces/districts. For a province, returns cities/municipalities. For a city/municipality, returns barangays. Optionally filter by level. Paginated (default limit: 50).

Inputs: code (required), level, limit, offset.

lookupAInspect

Look up a Philippine geographic entity by its 10-digit PSGC code. Returns the full entity record including name, level, parent, population, and classification data.

Inputs: code (required).

query_by_populationAInspect

Query PSGC entities by population range. Returns entities sorted by population. Useful for finding the largest/smallest cities, municipalities, or provinces. Barangay queries require a parent_code to narrow scope.

Inputs: level (required), sort, limit, offset, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources