Skip to main content
Glama

Peru - Peru (0.50 credits)

peru_identity_lookup_v3
Read-onlyIdempotent

Look up a Peruvian DNI to retrieve full name, date of birth, sex, civil status, and address for identity verification and person checks.

Instructions

Peru DNI lookup (cédula). Returns full name, date of birth, sex, civil status, and address when the registry has them. Inputs: documentType DNI and documentNumber. Use this as the standard person check. Use peru_identity_extra_lookup_v3 for the fuller file and peru_api_identity_ce_foreigner_id for a carné de extranjería. Costs 0.50 credits per successful call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "documentType": "<documentType>",
      "documentNumber": "<documentNumber>"
    },
    "name": "peru_identity_lookup_v3"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentTypeYesPeruvian document type. Use DNI.
documentNumberYesPeruvian DNI number (8 digits).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorld, so the safety profile is covered. The description adds genuinely valuable non-annotation context: per-call pricing (0.50 credits per *successful* call, implying failures aren't billed) and the caveat that fields return only "when the registry has them." It does not cover not-found/error behavior or authentication requirements, leaving some behavioral gaps, so it sits at a solid 3 rather than higher.

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?

Four sentences, front-loaded with the operation and its return payload, then routing guidance, then cost. Nothing is redundant and every sentence carries decision-relevant information.

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?

With no output schema, the description properly compensates by naming the returned fields and noting they are conditionally present. The cost model is also disclosed. The only remaining gap is failure behavior — what happens when the DNI is not found or invalid — which an agent may need.

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 both parameters are already fully documented, including the DNI-only enum and the 8-digit format. The description restates documentType DNI and documentNumber without adding syntax or edge-case meaning beyond the schema; 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 verb+resource combination ("Peru DNI lookup (cédula)") and immediately enumerates the returned fields, so the agent knows exactly what the tool produces. It explicitly contrasts itself with peru_identity_extra_lookup_v3 (fuller file) and peru_api_identity_ce_foreigner_id (carné de extranjería), so siblings are distinguishable 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit default posture ("Use this as the standard person check") plus named alternatives with the condition that selects each (fuller file, foreigner ID document). Both when-to-use and when-to-use-something-else are covered, including the required document types for each path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools