Skip to main content
Glama

get_exchange_rate

Read-only

Retrieve the official COP-per-USD exchange rate (TRM) in force today, including its validity date, to convert US prices into accurate Colombian peso quotes.

Instructions

Get the official COP-per-USD rate (TRM) in force today, with its validity date.

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": "get_exchange_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
sourceYes'live': today's official rate. 'last_known': the official source was down, so the last rate fetched was used; say how old it is (fx_valid_from). 'reference': a fixed stand-in, NOT a real rate; the quote is arithmetically correct but not an offer, so say so when relaying it.
valid_fromYesDate this rate is valid from (YYYY-MM-DD).
rate_cop_per_usdYesOfficial rate, COP per USD, before any buffer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and external-dependency context are covered. The description adds value by explaining that only today's rate is returned and that a validity date accompanies it, which effectively accounts for the idempotentHint=false (the result changes day to day). It stops short of covering failure behavior when no rate is published.

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?

A single front-loaded sentence with no filler; the key qualifiers (official, TRM, today, validity date) all appear in one clause.

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 an output schema present, return-value detail is unnecessary, and the low complexity plus zero parameters keep requirements modest. The only missing piece is what happens outside publication conditions or when the service is unavailable.

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?

There are zero parameters, so the baseline is 4. The description usefully clarifies that the date is not selectable — the tool always returns the rate in force today — which is meaningful information an empty schema cannot convey.

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 verb, resource, and scope: retrieve the official COP-per-USD rate (TRM) for the current day, plus its validity date. It is unambiguous and cannot be confused with the product/quote siblings.

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 only implied — an agent can infer this is the tool for currency conversion context, but there is no explicit when-to-use, when-not-to-use, or reference to alternatives. The sibling tools are unrelated, so the lack of routing is a minor but real gap.

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