Skip to main content
Glama

inei_get_departments

Retrieve a list of all 25 Peruvian departments with their geography IDs, ubigeo codes, and department names. Use this as the first step to obtain identifiers required by other tools.

Instructions

List all 25 departments (regions) of Peru with their geography IDs and ubigeo codes.

Returns id_geografia (used in other tools), ubigeo (6-digit code), ccdd (2-digit dept code), and department name.

Use this first to get the id_geografia or ccdd needed by other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided. Description states it returns specific fields and is a list operation, implying read-only. Lacks details on idempotency, safety, or potential side effects, but for a no-parameter list tool, it is adequate.

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?

Concise, three-sentence description with clear structure: purpose, fields, usage advice. No unnecessary words.

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 simplest input schema (no parameters) and no output schema, the description fully covers what the tool returns and how to use it. Context of sibling tools further clarifies its role.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters, baseline 4. Description adds value by explaining the meaning of returned fields (id_geografia used in other tools, ubigeo as 6-digit code), aiding the agent in chaining.

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?

Explicitly states it lists all 25 departments with specific fields (id_geografia, ubigeo, ccdd, name). Clearly differentiates from sibling tools for provinces/districts.

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?

Directly advises 'Use this first' to get id_geografia or ccdd needed by other tools, providing clear when-to-use context. No when-not-to-use, but sufficient for a simple list.

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/JOSETRA44/INEI-mcp'

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