Skip to main content
Glama

Hasfiyat Altın API

Altın/döviz tutarı hesapla

calculate_value
Read-onlyIdempotent

Bir kalemin canlı fiyatıyla miktar × fiyat hesabı yapar. Ör. 15 gram 22 ayar, 3 çeyrek, 1000 USD kaç TL. side: satış (sell, müşterinin alırken ödediği) veya alış (buy). Computes quantity × live price in TRY.

Input Schema

NameRequiredDescriptionDefault
sideNosell = satış fiyatı, buy = alış fiyatı.sell
sourceNoFiyat kaynağı kodu.harem
symbolYesKalem, ör. "GRAM", "22 AYAR", "CEYREK", "USD".
quantityYesMiktar (gram, adet veya döviz birimi).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover readOnly/destructive/idempotent/openWorld, so the bar is lower. The description adds useful context by stressing 'canlı fiyat' (live price), explaining why results vary and why the tool is open-world, but it omits things like caching/staleness, error behavior for unknown symbols, and whether the price is fetched at call time per `source`.

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 formula and backed by concrete examples; the `side` clarification is placed sensibly. The Turkish/English duplication of the same sentence ('miktar × fiyat' / 'quantity × live price in TRY') is slightly redundant but not damaging.

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?

For a read-only calculation tool with full schema coverage and no output schema, the definition supplies the formula, the output currency (TRY), and input examples — enough to call it correctly. It stops short of describing the result shape (single total vs. price + total breakdown) or behavior on an unknown symbol, which would be the remaining gap.

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 coverage is 100%, so baseline is 3; the description goes beyond by reframing `side` from the customer's perspective ('müşterinin alırken ödediği') and giving symbol examples that match the schema's own examples, reinforcing the expected value format. `source` and `quantity` semantics remain schema-only, but overall it adds real nuance.

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?

States a specific verb and formula (quantity × live price) plus the target domain (gold/currency in TRY), and the worked examples ('15 gram 22 ayar, 3 çeyrek, 1000 USD kaç TL') make the computation concrete. It is clearly distinguishable from get_prices/get_price_history by the presence of a quantity multiplier, though no sibling is named explicitly.

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?

The description implies when to use it (when you need a total value rather than a unit price) and clarifies the sell/buy perspective, but never states the alternative explicitly — e.g. 'use get_prices for the raw quote, this tool for a quantity total'. No exclusions or prerequisites are 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.

Resources