Skip to main content
Glama

Peru Data MCP by Vira

Official PEN/USD exchange rate (SUNAT)

peru_exchange_rate
Read-only

Today's official SUNAT exchange rate between the Peruvian sol (PEN) and the US dollar (USD), the rate used for tax and accounting purposes in Peru. Optionally converts amount from from_currency ("USD" or "PEN"). SUNAT convention: assets and sales use the buy rate, liabilities and purchases use the sell rate.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "peru_exchange_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNo
from_currencyNoUSD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the read-only and open-world profile, and the description adds real value on top: data freshness ('today's'), the authoritative source, and the SUNAT buy/sell convention that governs interpretation. It stops short of saying whether both buy and sell rates are returned or how weekends/holidays are handled.

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?

Four tight clauses, front-loaded with the resource and its purpose before the conversion detail. Minor redundancy between 'official SUNAT exchange rate' and 'the rate used for tax and accounting purposes,' but nothing that wastes meaningful space.

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?

With no output schema, the description should clarify what comes back — a single rate, or both buy and sell rates — and it only hints at this via the convention sentence. It is otherwise adequate for a 2-parameter read-only tool, but the return shape remains partly inferential.

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 0%, so the description must carry the load; it does supply the allowed values for from_currency ("USD" or "PEN") that the schema leaves as a free string, and frames amount as an optional conversion input. However, it never states the default behavior (amount=0, from_currency="USD"), the conversion target direction explicitly, or units/precision.

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?

The description names a specific resource (today's official SUNAT PEN/USD exchange rate) and its domain of applicability (tax and accounting in Peru), plus an optional conversion behavior. An agent can tell immediately this is the FX-rate tool, not a macro-indicator or trade 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 concrete usage context ('the rate used for tax and accounting purposes in Peru') and a decision rule for which rate applies (buy rate for assets/sales, sell rate for liabilities/purchases). There's no explicit when-not-to-use or named alternative, but no obvious competing sibling for exchange rates exists.

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