Skip to main content
Glama

Peru - Driver License (0.30 credits)

peru_api_driver_license_lookup
Read-onlyIdempotent

Look up a Peru driver's license by DNI to check its status and categories. Provide the DNI type and number to confirm driving eligibility.

Instructions

Peru driver's licence lookup by DNI. Returns licence status and categories. Inputs: documentType DNI and documentNumber. Use it for a driver. Use peru_identity_lookup_v3 for the person's identity record and the vehicle tools for a plate. 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": {
      "documentType": "<documentType>",
      "documentNumber": "<documentNumber>"
    },
    "name": "peru_api_driver_license_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentTypeYesGovernment-issued document type code for this country.
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.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is lower; the description still adds useful context by disclosing the 0.30-credit charge per successful call and the shape of the returned data. It does not cover authentication, rate limits, or failure/not-found behavior, which would have earned 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.

Conciseness4/5

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

The purpose and scope are front-loaded and the alternative routing follows immediately, all in four short sentences. One sentence ('Use it for a driver') is filler that should have been cut or rewritten, a small but real waste.

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?

With no output schema, the description correctly covers what is returned (licence status and categories), the required inputs, the credit cost, and the sibling alternatives. An agent has everything needed to decide whether and how to call it.

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 coverage is 100%, so both parameters are already documented with enum and formatting rules. The description only restates that the inputs are documentType DNI and documentNumber, adding no syntax, format, or edge-case 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?

The description names a specific verb and resource ('Peru driver's licence lookup by DNI') and states the return payload ('licence status and categories'). It explicitly distinguishes itself from peru_identity_lookup_v3 and the vehicle tools, so an agent can route correctly without opening any 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?

It routes the agent to concrete alternatives with conditions: identity records go to peru_identity_lookup_v3 and plates go to the vehicle tools. The fragment 'Use it for a driver' is a vague, malformed sentence that adds no routing information, keeping it short of a full 5.

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