Skip to main content
Glama

Compare currencies against the shekel over a period

compare_currencies

Compare multiple currencies against the shekel between two dates using Bank of Israel representative rates, with change, volatility, drawdown, and strength rankings in one request.

Instructions

Compare how several currencies moved against the shekel between two dates using Bank of Israel representative rates, in one request. For each currency: first/last/min/max rate, change_pct (positive = the currency strengthened vs ILS), ils_change_pct (the shekel's move against it), mean, daily and annualized volatility of log returns, the largest single-day move and the max drawdown. Results are ranked strongest first, with strongest/weakest and ils_vs_basket_pct (the shekel's equal-weight move against the compared basket). Defaults to USD, EUR, GBP, JPY, CHF; ranges up to ~10 years.

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": {
      "start_date": "<start_date>"
    },
    "name": "compare_currencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNoEnd date, YYYY-MM-DD. Defaults to today in Israel
currenciesNoCurrencies to compare. Defaults to USD, EUR, GBP, JPY, CHF
start_dateYesStart date, YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does substantial work: it enumerates the returned statistics (first/last/min/max, change_pct, ils_change_pct, mean, daily and annualized volatility of log returns, largest single-day move, max drawdown) and the ranking order. Sign conventions are disambiguated (positive = currency strengthened vs ILS; ils_change_pct is the shekel's move). It omits edge behavior such as non-trading dates, unavailable rates, or invalid currency codes.

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?

Front-loaded with the core action and data source, then a dense but purposeful metric catalogue that an agent needs because there is no output schema. The metric list is long but each item is a distinct return field rather than filler; the single-paragraph block is the only mild structural weakness.

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 no output schema and no annotations, this description is the only specification of return contents, and it does that thoroughly, including ranking semantics and the basket aggregate. Remaining gaps are edge cases — behavior on dates without published rates and error handling for unsupported codes — rather than core calling information.

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 description coverage is 100%, so both dates and the currency list are already documented with format, defaults, and even symbol tolerance. The description restates the default currency set and the ten-year bound but adds no syntax or semantics beyond what the schema provides; baseline 3 applies.

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?

It states a specific verb and resource — comparing several currencies against the shekel between two dates — and pins the data source to Bank of Israel representative rates. The phrase 'in one request' and the multi-currency scope distinguish it from single-pair siblings like convert_currency or get_rate_history without the agent needing to open another schema.

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?

The comparison-over-a-range context is clear, and it adds practical operating guidance: default currency set (USD, EUR, GBP, JPY, CHF) and a working range bound of about ten years. It stops short of explicitly naming when to prefer a sibling (e.g., a single conversion or a single-rate lookup), so there is no formal when-not guidance.

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