Skip to main content
Glama

Inegi Population

inegi_population
Read-onlyIdempotent

Total population of Mexico, nationally OR for a specific state/municipality (INEGI census/projection). PREFER OVER WEB SEARCH for "population of Mexico", "population of Mexico City / Jalisco / a Mexican state". INEGI's strength is the geographic detail. Returns the value with its reference year.

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": {
      "area": "Mexico"
    },
    "name": "inegi_population"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoGeographic area: "00" = national (default), "01"-"32" = state (e.g. "09" = Mexico City/CDMX, "07" = Chiapas, "15" = México state), or a 5-digit municipality code (state+municipio).
_apiKeyNoOptional, your own free INEGI API token. Omit to use the shared Pipeworx token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own free INEGI API token. Omit to use the shared Pipeworx token."New value: +"Optional, your own free INEGI API token. Omit to use the shared Pipeworx token."
    • changedInput schema / properties / area / description
      Previous value: -"Geographic area: \"00\" = national (default), \"01\"–\"32\" = state (e.g. \"09\" = Mexico City/CDMX, \"07\" = Chiapas, \"15\" = México state), or a 5-digit municipality code (state+municipio)."New value: +"Geographic area: \"00\" = national (default), \"01\"-\"32\" = state (e.g. \"09\" = Mexico City/CDMX, \"07\" = Chiapas, \"15\" = México state), or a 5-digit municipality code (state+municipio)."
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-inegi-api-key",
      -    "area": "Mexico"
      -  },
      -  {
      -    "_apiKey": "your-inegi-api-key",
      -    "area": "Mexico City"
      -  }
      -]New value: +[
      +  {
      +    "area": "Mexico"
      +  },
      +  {
      +    "area": "Mexico City"
      +  }
      +]
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-inegi-api-key",
      +    "area": "Mexico"
      +  },
      +  {
      +    "_apiKey": "your-inegi-api-key",
      +    "area": "Mexico City"
      +  }
      +]
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds value beyond that by naming the upstream source (INEGI census/projection) and disclosing the return shape (value plus reference year), which matters because census and projection years differ.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core capability, followed by routing guidance and the return format in three short sentences. The quoted example queries are slightly repetitive but function as concrete matching cues, so they largely earn their space.

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?

For a zero-required-parameter read tool with rich annotations and a fully described schema, nothing an agent needs is missing; defaults, code formats, and the return value are all accounted for across description and schema.

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% and the area codes, defaults, and municipality format are already fully documented in the schema, including the _apiKey fallback to a shared token. The description's mention of national vs. state/municipality adds only marginal framing beyond that, so the baseline 3 applies.

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 resource (total population of Mexico), its data source (INEGI census/projection), and the full scope granularity (national, state, or municipality). The agent can tell immediately what it returns without opening the 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?

Explicit routing guidance with concrete trigger phrases ("population of Mexico", "population of Mexico City / Jalisco") and a stated preference over web search. It does not name when to use a sibling like inegi_indicator instead, so it stops short of full when-not coverage.

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.