Skip to main content
Glama

Calcular IVA (12%)

calcular_iva

Calculates Guatemala's 12% IVA by splitting it from a tax-inclusive amount or adding it to a base price, using a configurable tax rate.

Instructions

Desglosa el IVA de un precio que ya lo incluye, o lo agrega a un monto base. Tasa por defecto: 12% (Guatemala).

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": {
      "monto": "<monto>"
    },
    "name": "calcular_iva"
  }
}

Input Schema

NameRequiredDescriptionDefault
tasaNoTasa como fracción; por defecto 0.12
montoYesMonto en quetzales
incluyeIvaNotrue si el monto ya incluye IVA (precio al consumidor)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description must carry behavior. It discloses the default rate and Guatemala context and implies two calculation directions, but omits rounding behavior and what the returned breakdown contains. For a pure calculation this is adequate but not rich.

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?

Two short sentences with no filler. The two operational modes and default rate are front-loaded, and every clause carries useful meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple with three fully documented parameters, and the description covers both modes and the default rate. However, there is no output schema and the description does not explain the shape of the result (e.g., separate base and IVA fields) or rounding rules, leaving a gap for an agent that needs to consume the output.

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 the schema already documents monto, tasa, and incluyeIva. The description adds the Guatemala default context and clarifies the consumer-price interpretation of incluyeIva, but does not add syntax or constraints beyond the schema. Baseline 3 is appropriate.

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 states a specific calculation resource (IVA) and two concrete modes: breaking tax out of a tax-inclusive price or adding it to a base amount. It is clear without opening the schema, though it does not explicitly contrast with any sibling tool.

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 gives clear conditions for each mode via the phrase 'precio que ya lo incluye' versus 'monto base', and notes the default 12% Guatemala rate. It does not explicitly state when not to use the tool, but the sibling tools are unrelated validators, so the missing alternatives are not material.

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