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

Convert UF to pesos

convert_uf_to_clp
Read-onlyIdempotent

Converts an amount in UF to Chilean pesos (CLP) using the official UF value for a specified date (YYYY-MM-DD), returning whole pesos rounded half up.

Instructions

Converts an amount in UF to CLP using the UF value of the given date (YYYY-MM-DD). Whole pesos, round half up.

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": {
      "amount_uf": "<amount_uf>",
      "date": "<date>"
    },
    "name": "convert_uf_to_clp"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
amount_ufYes

Output Schema

NameRequiredDescriptionDefault
clpYes
dateNo
fuenteNo
uf_valueNo
amount_ufNo
is_sampleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, and non-destructive behavior. The description adds important calculation semantics beyond those annotations: the UF value is tied to the given date and results are whole pesos rounded half up. It does not disclose error behavior for invalid or non-UF dates, but the added context is substantive.

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?

The description is two tight sentences, front-loaded with the core conversion and immediately followed by the rounding rule. No wording is wasted.

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?

For a simple two-parameter conversion with an output schema, the description covers purpose, date semantics, and rounding. It omits edge-case behavior such as what happens on dates without a UF value, but the complexity is low enough that this is a minor gap.

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 50%, with only the date parameter described in the schema. The description compensates by clarifying that amount_uf is in UF and that date selects the UF value, adding meaning beyond the raw constraints. It still does not explain the amount_uf bounds, though those are present in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Converts') and resource ('an amount in UF to CLP'), and identifies the date parameter as the UF value source. It does not explicitly differentiate itself from siblings such as get_economic_indicator, but the conversion purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the conversion purpose, but there is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives or when not to use it. An agent can infer the use case but is given no routing help.

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