Skip to main content
Glama

Chile — Identity document validation (0.40 credits)

chile_api_validate
Read-onlyIdempotent

Validate Chilean RUN or RUT document numbers against their card serial to confirm a match. Use when you have the serial; lookup by RUN alone needs an identity lookup.

Instructions

Chile document validation by RUN or RUT plus serial. Returns whether the document number and serial number match. Inputs: documentType RUN or RUT, documentNumber, and serialNumber. Use it when you have the card serial. Use chile_api_identity_lookup if you only have the RUN. Costs 0.40 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>",
      "serialNumber": "<serialNumber>"
    },
    "name": "chile_api_validate"
  }
}

Input Schema

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

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds value beyond them by disclosing the matching semantics of the result and a billing trait ('0.40 credits per successful call'), which is not encoded in any annotation. It stops short of describing what a non-match or error return looks like.

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 short sentences, front-loaded with the purpose, then return semantics, then inputs, then routing, then cost. No sentence is redundant; the cost line adds the 'per successful call' nuance rather than repeating the title verbatim.

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 correctly states the returned fact (whether number and serial match), and annotations carry the safety profile. Minor gap: it does not say what happens on mismatch, invalid format, or lookup failure, which matters for an agent deciding how to handle the response.

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?

Schema coverage is 67% and serialNumber has no schema description at all; the phrase 'card serial' explains that this value comes off the physical card, which is real meaning the schema does not carry. documentType and documentNumber are restated rather than enriched, but the serialNumber clarification fills the main gap.

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 ('Chile document validation by RUN or RUT plus serial') and immediately says what the result means ('Returns whether the document number and serial number match'). The serial requirement distinguishes it from the sibling chile_api_identity_lookup without the agent needing to open 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?

Explicit routing: 'Use it when you have the card serial. Use chile_api_identity_lookup if you only have the RUN.' Both the selection condition and the named alternative are given, leaving nothing to inference.

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