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

Calculate Chilean IVA (19%)

calculate_iva
Read-onlyIdempotent

Compute IVA, net, and total amounts in whole Chilean pesos from a net amount or an IVA-inclusive total using exact integer rounding.

Instructions

Computes net, IVA and total in whole pesos. base='neto' means the amount is the net price; base='total' means the amount already includes IVA. Exact integer arithmetic (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": "<amount>",
      "base": "<base>"
    },
    "name": "calculate_iva"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYes
amountYesAmount in CLP, whole pesos

Output Schema

NameRequiredDescriptionDefault
ivaYes
netoYes
totalYes

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 cover read-only, idempotent, non-destructive, and closed-world behavior, so the bar is lower. The description adds genuinely useful detail beyond them: results come back in whole pesos and rounding is exact integer arithmetic with round-half-up, which matters for financial output.

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, each carrying information, with the output shape stated first and the parameter semantics second. Nothing is redundant or padded.

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 only two required parameters, an output schema, and full annotation coverage, the description covers everything needed to call the tool correctly. The one omission is that the 19% rate lives only in the title, not in the description body, so an agent reading the description alone must infer it.

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 only 50% because the base enum is undocumented in the schema; the description supplies that meaning precisely, explaining how 'neto' versus 'total' changes the direction of the calculation. It reinforces the CLP whole-peso constraint on amount but adds no bounds detail beyond the schema's minimum/maximum.

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 opens with a specific verb and resource: 'Computes net, IVA and total in whole pesos.' That is precise enough to distinguish it from conversion or validation siblings. It does not explicitly contrast itself with check_invoice_totals, so sibling differentiation is only implicit.

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?

Guidance is limited to the meaning of the two base modes, which tells the agent how to invoke the tool but not when to prefer it over alternatives. There is no exclusion or 'use X instead when…' statement.

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