Skip to main content
Glama

Convert an amount between currencies

cevir_doviz
Read-onlyIdempotent

Converts miktar from kaynak to hedef currency (TRY included) and returns the result and the rate used. Cross rates go through TRY. Use doviz to list rates instead.

Endpoint: GET /v1/cevir/doviz. Available on all plans, including free. Costs 1 request unit per call. Read-only; JSON in Turkish with source and guncelleme (updated at) fields.

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": {
      "miktar": "<miktar>",
      "kaynak": "<kaynak>",
      "hedef": "<hedef>"
    },
    "name": "cevir_doviz"
  }
}

Input Schema

NameRequiredDescriptionDefault
turNo'anlik' = live Grand Bazaar rate (default); 'referans' = end-of-day reference rate.anlik
hedefYesTarget currency, 3-letter code, e.g. 'TRY' or 'EUR'.
kaynakYesSource currency, 3-letter code, e.g. 'USD'. 'TRY' allowed.
miktarYesAmount to convert, e.g. 250.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / hedef / description
      Added value: +"Target currency, 3-letter code, e.g. 'TRY' or 'EUR'."
    • addedInput schema / properties / kaynak / description
      Added value: +"Source currency, 3-letter code, e.g. 'USD'. 'TRY' allowed."
    • addedInput schema / properties / miktar / description
      Added value: +"Amount to convert, e.g. 250."
    • addedInput schema / properties / tur / description
      Added value: +"'anlik' = live Grand Bazaar rate (default); 'referans' = end-of-day reference rate."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds material not present in any structured field: the concrete endpoint, availability on all plans including free, a cost of 1 request unit per call, and that the response is Turkish JSON including source and `guncelleme`. Cost and quota information is exactly the kind of behavioral context an agent cannot infer from hints.

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?

Purpose is front-loaded in the first sentence, the alternative follows immediately, and operational details come last. It is dense but each sentence carries new information; the endpoint string sits slightly apart from the otherwise prose-y flow.

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?

There is no output schema, and the description compensates by naming what comes back (converted result, rate used, Turkish JSON with source and update timestamp). Combined with plan availability and per-call cost, an agent has everything needed to call this correctly and predict the response shape.

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?

Schema description coverage is 100%, so the schema already carries per-parameter meaning and the baseline would be 3. The description still adds currency-domain semantics — TRY is supported and cross rates are computed via TRY — which explains how `kaynak`/`hedef` pairs behave rather than merely restating them.

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 and resource — converting `miktar` from `kaynak` to `hedef` — and names the exact return payload (result plus rate used). It explicitly distinguishes itself from the sibling `doviz` (list rates), so an agent can route between the two without opening either 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 description names the alternative and the condition that selects it: 'Use doviz to list rates instead.' It also clarifies that TRY is a valid side and that cross rates route through TRY, which tells the agent conversion is always possible in either direction. It does not advise on choosing between live vs reference rate, though that distinction is fully covered in the schema.

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