Skip to main content
Glama

Formatear pesos colombianos (COP)

co-cop-format
Read-onlyIdempotent

Formatea un valor en pesos colombianos ($ 1.234.567, puntos de miles y coma decimal), con 0 o 2 decimales y código COP opcional. Cuándo: hay que aplicar con exactitud una regla colombiana (DIAN, festivos de la Ley Emiliani, montos en COP, IVA, GMF, UVT), p. ej. al facturar o cobrar. No para: formatear un monto en cualquier moneda ISO 4217 según el idioma/país (currency-format). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Formats an amount as Colombian pesos the way it is written in Colombia ($ 1.234.567 — dot thousands, comma decimals), with 0 or 2 decimals and an optional COP code. When: a Colombian rule (DIAN, Ley Emiliani holidays, COP amounts, IVA, GMF, UVT) has to be applied exactly, e.g. in invoicing or payment flows. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
amountYesAmount (number; required; min -1000000000000000; max 1000000000000000).
decimalsNoDecimals (optional; one of: 0, 2; default "0").0
show_codeNoAppend COP (boolean; optional; default false).

Output Schema

NameRequiredDescriptionDefault
plainNo
formattedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / amount / examples
      Added value: +[
      +  1234567.89
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Formats an amount as Colombian pesos the way it is written in Colombia ($ 1.234.567 — dot thousands, comma decimals), with 0 or 2 decimals and an optional COP code. When: a Colombian rule (DIAN, Ley Emiliani holidays, COP amounts, IVA, GMF, UVT) has to be applied exactly, e.g. in invoicing or payment flows. Not for: formatting an amount in any ISO 4217 currency for a locale via Intl (currency-format). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds determinism ('misma entrada da la misma salida') and concrete limits (64 KB input, 1 s per call, 1 MB result), which is useful. But 'solo lectura, sin red, sin estado guardado' largely restates the readOnly/openWorld annotations rather than adding new behavioral context, so the extra value is moderate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded with the core format stated first, then labeled sections for When/Not-for/Side-effects/Limits. Slightly undermined by the trailing partial EN restatement and the 'inputSchema.description' cross-reference, which add a little redundancy but the structure remains scannable.

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 small, pure formatting tool with an output schema handling return values, the description is complete: it explains purpose, alternatives, side effects, determinism and limits. Nothing an agent needs to invoke it correctly is missing.

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 all three parameters are already documented in the schema. The description mentions 0/2 decimals and the optional COP code, but this duplicates schema content without adding syntax or edge-case detail beyond it. Baseline 3 applies when the schema does the heavy lifting.

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 (formatea) and resource (valor en pesos colombianos) with a concrete output example ($ 1.234.567, dot thousands, comma decimals), and explicitly names the sibling it is not (currency-format). An agent can distinguish it from currency-format and number-format-locale without reading schemas.

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?

Provides an explicit 'Cuándo' section (Colombian rules: DIAN, Ley Emiliani, IVA, GMF, UVT, invoicing/payment flows) and a 'No para' section that routes to currency-format for ISO 4217 locale formatting. Both when-to-use and when-not are stated with a named alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources