Skip to main content
Glama

dava_karar_agaci

Calculates the expected value of litigation from scenario probabilities, costs, delay, interest, and collection risk, then quantifies BATNA and optionally records it for negotiation reality testing.

Instructions

Anlaşmama hâlinin (dava yolunun) beklenen değerini hesaplar; BATNA'yı sayısallaştırır ve gerçeklik testine dayanak olur. senaryolar: [{"ad":"tam kabul","olasilik":0.4,"tutar":420000},{"ad":"kısmi","olasilik":0.4,"tutar":250000},{"ad":"ret","olasilik":0.2,"tutar":0}] yargilama_gideri: tarafın kendi katlanacağı gider + avukatlık ücreti. sure_ay: beklenen yargılama süresi (istinaf/temyiz dahil). yillik_iskonto: paranın zaman değeri (ör. 0.30). faiz_orani: hükme eklenecek yıllık faiz (basit). tahsil_olasiligi: 0-1. karsi_vekalet_riski: kaybedilen kısım için karşı vekâlet ücreti beklentisi. batna_guncelle=True: sonucu ilgili müzakere kaydının batna_degeri alanına yazar. Olasılıklar kullanıcı tahminidir. Bu bir hukuki tavsiye değildir.

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": {
      "dosya_id": "<dosya_id>",
      "taraf_id": "<taraf_id>",
      "yon": "<yon>",
      "senaryolar": "<senaryolar>"
    },
    "name": "dava_karar_agaci"
  }
}

Input Schema

NameRequiredDescriptionDefault
yonYes
konu_idNo
sure_ayNo
dosya_idYes
taraf_idYes
faiz_oraniNo
senaryolarYes
batna_guncelleNo
yillik_iskontoNo
tahsil_olasiligiNo
yargilama_gideriNo
karsi_vekalet_riskiNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden, and it does disclose the critical side effect: batna_guncelle=True writes the result into the related negotiation record's batna_degeri field. It also clarifies that probabilities are user-supplied estimates and disclaims legal-advice status. It stops short of describing error behavior or whether the BATNA write is reversible.

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 a single purpose sentence, then a compact per-parameter glossary with no filler; the inline scenario example earns its space by removing ambiguity about the nested object. Every line maps to a decision the caller must make.

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 12-parameter computation tool with zero annotation coverage, the definition supplies purpose, parameter meaning, the mutation side effect, and a disclaimer, and an output schema means return values need not be described. Only the identity parameters and enum semantics are left to the schema alone.

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 0%, so the description must compensate, and it does for 8 of 12 parameters — cost composition, duration including appeal, discounting, simple interest, collection probability range, counter-fee risk, and a concrete JSON example defining the senaryolar element shape (ad/olasilik/tutar). The identity parameters (dosya_id, taraf_id, konu_id) and the 'yon' enum values are left undocumented, which is the main remaining gap.

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?

Names a specific computation (expected value of the litigation path) and a specific output concept (quantified BATNA used for reality testing), which is far more than restating the tool name. It does not, however, contrast itself with related siblings such as besn_analizi or anlasma_alani_analizi, so an agent must infer the boundary.

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 implied through phrases like 'gerçeklik testine dayanak olur' and 'BATNA'yı sayısallaştırır', which suggest the negotiation-analysis context. There is no explicit when-to-use / when-not-to-use statement and no named alternative tool, so the agent gets context but no routing rule.

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