Skip to main content
Glama

Loan repayment calculator (Turkey taxes)

hesapla_kredi
Read-onlyIdempotent

Calculates a fixed-instalment loan with Turkish KKDF and BSMV taxes: monthly instalment, total interest, total taxes, total repayment and annual cost rate, optionally the full payment schedule. Pure calculation, no bank rates are fetched; pass the bank's monthly rate.

Endpoint: GET /v1/hesapla/kredi. Requires a paid plan (free plan returns 403). 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": {
      "tutar": "<tutar>",
      "vade": "<vade>",
      "faiz": "<faiz>"
    },
    "name": "hesapla_kredi"
  }
}

Input Schema

NameRequiredDescriptionDefault
turNoLoan type, sets default tax rates: ihtiyac (consumer, default), tasit (vehicle), konut (mortgage), ticari (commercial), kredi_karti (credit card).ihtiyac
bsmvNoOverride BSMV rate in %. Omit to use the legal rate for `tur`.
faizYesMonthly contractual interest rate in %, excluding taxes, e.g. 3.29.
kkdfNoOverride KKDF rate in %. Omit to use the legal rate for `tur`.
planNoInclude the month-by-month schedule (default true); false for totals only.
vadeYesTerm in months (1–360).
tutarYesLoan amount in TRY.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / bsmv / description
      Added value: +"Override BSMV rate in %. Omit to use the legal rate for `tur`."
    • changedInput schema / properties / faiz / description
      Previous value: -"Aylık akdi faiz (%), vergiler hariç"New value: +"Monthly contractual interest rate in %, excluding taxes, e.g. 3.29."
    • addedInput schema / properties / kkdf / description
      Added value: +"Override KKDF rate in %. Omit to use the legal rate for `tur`."
    • changedInput schema / properties / plan / description
      Previous value: -"Ödeme planı tablosu dahil"New value: +"Include the month-by-month schedule (default true); false for totals only."
    • addedInput schema / properties / tur / description
      Added value: +"Loan type, sets default tax rates: ihtiyac (consumer, default), tasit (vehicle), konut (mortgage), ticari (commercial), kredi_karti (credit card)."
    • addedInput schema / properties / tutar / description
      Added value: +"Loan amount in TRY."
    • changedInput schema / properties / vade / description
      Previous value: -"Ay"New value: +"Term in months (1–360)."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses access gating (paid plan, 403 otherwise), cost (1 request unit per call), response language (Turkish) and response metadata (source, guncelleme). These are exactly the operational facts annotations cannot convey.

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?

Front-loaded with the core purpose and outputs, then a compact second block for endpoint, cost and response shape. Every sentence carries distinct information with no filler.

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?

With no output schema, the description compensates by naming the returned fields (instalment, total interest, taxes, repayment, annual cost rate, optional schedule) and the response envelope. Combined with the access and cost notes, an agent has everything needed to call it correctly.

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 every parameter is already documented, including the tax overrides and the plan toggle. The description reinforces that faiz is the bank's monthly rate and that the schedule is optional, but adds little beyond the schema, so the 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?

States a specific verb and resource ('Calculates a fixed-instalment loan with Turkish KKDF and BSMV taxes') and enumerates the exact outputs, which cleanly separates it from siblings like hesapla_mevduat and hesapla_kidem. An agent can identify the tool without opening the 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?

Explicitly says 'Pure calculation, no bank rates are fetched; pass the bank's monthly rate', which tells the agent what input it must supply and what the tool will not do. It also flags the paid-plan requirement (403 on free plan). It stops short of naming alternative sibling tools, so it is not a full 5.

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