Skip to main content
Glama

Adjust an amount by an Argentine index

adjust_amount_by_index
Read-only

Adjust a positive decimal amount between two dates or months by CER, UVA, UVI, or an IPC. The result is a decimal string rounded half up to cents. ICL returns unsupported_index.

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": {
      "index": "<index>",
      "amount": "<amount>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "adjust_amount_by_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesCivil date YYYY-MM-DD or month YYYY-MM.
fromYesCivil date YYYY-MM-DD or month YYYY-MM.
indexYesCER, UVA, UVI, national IPC, or a regional IPC. ICL is not available.
amountYesPositive decimal amount. Use a period as the separator.

Output Schema

NameRequiredDescriptionDefault
dataYes
sourcesYes
source_urlYes
legal_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint and openWorldHint, so the description earns credit for disclosing the output shape (a decimal string rounded half up to cents) and a concrete failure mode (ICL returns unsupported_index). It does not cover data-source lookup failures, out-of-range dates, or missing index data for a period, which would round this out.

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 core operation, followed by the result format and the one error case. No filler or redundant framing.

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 a full schema, an output schema, and read-only annotations, the description covers operation, inputs, output format, and the notable ICL restriction. Only edge behaviors on bad dates or missing data are unaddressed, which is minor for this complexity.

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% and every parameter carries its own description, including formats and the enum, so the schema already does the heavy lifting. The description's notes ('positive decimal amount', 'between two dates or months', ICL unsupported) largely restate the schema's own wording rather than adding new meaning.

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 verb and resource (adjust an amount) plus the mechanism (by CER/UVA/UVI/IPC between two dates or months), which clearly separates it from get_index, which presumably returns index values rather than adjusting amounts. It stops short of naming a sibling explicitly, but the operation 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 phrasing 'adjust a positive decimal amount between two dates or months', but there is no explicit statement of when to prefer this over get_index (e.g., compute the adjusted value yourself), nor guidance on choosing an index series. The ICL error note is the only boundary condition given.

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.