Skip to main content
Glama
mcp-server-chile
by crisvd

Validate a Chilean RUT

validate_rut
Read-onlyIdempotent

Validates a Chilean RUT/RUN by computing its modulo-11 check digit. Accepts formatted or unformatted input and returns valid=false for an invalid RUT as a normal result.

Instructions

Checks a Chilean RUT (RUN/RUT) with the modulo-11 check digit. Accepts '12.345.678-5' or '12345678-5'. An invalid RUT is a normal result (valid=false), not an error.

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": {
      "rut": "<rut>"
    },
    "name": "validate_rut"
  }
}

Input Schema

NameRequiredDescriptionDefault
rutYes

Output Schema

NameRequiredDescriptionDefault
validYes
reasonNo
formattedNo
normalizedNo
expected_check_digitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds real value beyond that by disclosing the modulo-11 algorithm and, importantly, the failure semantics — invalid input yields valid=false instead of an error — which prevents an agent from misinterpreting a negative result as a tool failure.

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?

Three short sentences front-loaded with the purpose, then formats, then the result-interpretation caveat. Every sentence carries distinct, useful information with no repetition of the title.

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 single-parameter validator with a full annotation set and an output schema, the description covers what the tool does, accepted input syntax, and how to read an invalid result. Nothing an agent needs to call it correctly is missing.

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 description coverage is 0%, so the description must carry the parameter meaning, and it does by giving two concrete accepted formats ('12.345.678-5' or '12345678-5'). It does not mention the schema's length bounds (3-20 chars), the K check-digit variant, or whitespace handling, leaving minor gaps.

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 ('Checks a Chilean RUT (RUN/RUT)') and names the exact algorithm (modulo-11 check digit), so an agent knows precisely what the tool computes. Siblings like calculate_iva or get_order_status are clearly unrelated, so no differentiation is needed.

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?

The definition gives clear usage context: it names both accepted input formats and explicitly warns that an invalid RUT is a normal result (valid=false) rather than an error. It does not spell out when-not to use it or name alternatives, but no sibling validator exists to route against.

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