Skip to main content
Glama

Peru - Foreigner ID (0.30 credits)

peru_api_identity_ce_foreigner_id
Read-onlyIdempotent

Verify a Peru foreigner ID (carné de extranjería) using document number and date of birth to return the holder's name and document data.

Instructions

Peru foreigner ID (carné de extranjería). Returns the holder's name and document data. Inputs: documentNumber and dateOfBirth (DD/MM/YYYY). Use it for a foreigner card. Use peru_identity_lookup_v3 for a DNI. Costs 0.30 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": {
      "documentNumber": "<documentNumber>",
      "dateOfBirth": "<dateOfBirth>"
    },
    "name": "peru_api_identity_ce_foreigner_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateOfBirthYesDate of birth. Format: DD/MM/YYYY. Example: 01/01/1990.
documentNumberYesDocument number. Dots, dashes, and spaces are accepted and ignored for length checks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds what the agent didn't have: the billing is 0.30 credits and only charged per successful call, plus what data comes back (name and document data). It stops short of describing failure behavior or error modes, so not a 5.

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?

Five short sentences, front-loaded with purpose, then return content, inputs, routing, and cost. Nothing is wasted, and the sibling distinction and price tag are placed where an agent will see them.

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 two-parameter read-only lookup, the definition covers purpose, inputs, output content, sibling routing and cost. No output schema exists, but the description states what is returned, and annotations carry the safety semantics, so nothing essential is missing.

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%; both parameters already carry format and example details, and the pattern regex enforces DD/MM/YYYY. The description only restates the parameter names and the existing date format, adding no new meaning beyond the schema, 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 verb and resource: returns the holder's name and document data for a Peru foreigner ID (carné de extranjería). It also explicitly separates itself from peru_identity_lookup_v3 (DNI), so an agent can pick it without opening either 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 when-to-use ('use it for a foreigner card') and names the alternative (peru_identity_lookup_v3) with the condition that selects it (DNI). That is exactly the routing information an agent needs between sibling identity tools.

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