Ipsa Verba

v3.0.0
io.github.afsozer/ipsa-verba Checked 1 hour ago Published 9 days ago

Citation-safe Turkish legal research: court decisions and legislation from official sources.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_decisions

✅ PRIMARY, MANDATORY TOOL FOR ALL CASE-LAW / DECISION / MEVZUAT RESEARCH. For ANY question about court decisions, precedents, case law, or legislation you MUST call THIS tool first. It is the ONLY tool that retrieves real, current documents LIVE from the official source (online — e.g. Bedesten/Yargıtay, Mevzuat). HARD RULES — no exceptions, no interpretation: - Do NOT answer case-law questions from memory, training data, or web search. - Do NOT use search_local_corpus to FIND decisions — it searches ONLY the local cor…

ParameterTypeDescription
birimAdi
court_types
dil
esas_no
include_rawboolean
include_snippetsboolean
karar_no
karar_tarihi_end
karar_tarihi_start
limitinteger
pageinteger
query
sort_by
source

get_document

Fetch a single document by ID from the given source. Args: source: Source identifier. document_id: Document ID (must not be empty). include_raw: If True, include the raw upstream response in the output (debugging). Default: False (deduplicated output with single markdown text field). page_number: 1-indexed page number for long documents (>= 40 000 chars). Default 1 returns the first page. Long documents are split at paragraph boundaries…

ParameterTypeDescription
document_id *string
source *string
include_rawboolean
page_numberinteger

search_legislation

Search legislation via the Mevzuat source. Use ``mevzuat_adi`` to search ONLY in titles (e.g. "kişisel veri" → KVKK surfaces). Use ``mevzuat_no`` for direct lookup by official number (e.g. "6698" → KVKK, "5237" → TCK) — never guess the number; if unsure use ``mevzuat_adi`` first. ``query`` does a body-text/concept search. Common abbreviations (TCK, HMK, KVKK, ...) in ``query`` are auto-routed to ``mevzuat_no``. Args: query: Search phrase (body-text). Auto-routes TCK/HMK/etc → number. sources: Source ID…

ParameterTypeDescription
query *string
document_id
legislation_type
limitinteger
mevzuat_adi
mevzuat_no
mevzuat_tur_list
scopestring
sort_by
sources

mevzuat_korpus_ara

YEREL korpusta MADDE bazında arama (çevrimdışı, madde metinlerinde). mode: "hybrid" (varsayılan; BM25+anlam RRF), "lexical" (FTS5, kelime AND), "semantic" (ifade metinde geçmese de bulur). 0 sonuç "hüküm yok" DEMEK DEĞİL: korpus yalnız çekilmişi içerir, search_legislation çağır. mevzuat_no tek mevzuatla sınırlar (ör. "6098"). Sonuç: mevzuat_adi, madde_no, baslik, snippet, kaynak_url.

ParameterTypeDescription
query *string
limitinteger
mevzuat_nostring
modestring

mevzuat_madde_getir

Yerel korpustan tek maddenin TAM metni (çevrimdışı). madde_no "390", "12/A", "Geçici 1" kabul eder. Korpusta yoksa NOT_FOUND döner — uydurma, canlı get_legislation çağır. Aynı numara başka türde de varsa KANUN seçilir; tur="YONETMELIK" vb. ile diğeri. metin_eski=true ise metin günceli değil: uyari'yı oku.

ParameterTypeDescription
madde_no *string
mevzuat_no *string
turstring

mevzuat_degisiklik_haritasi

Bir değişiklik kanununun (ör. 7589, "12. yargı paketi") hangi mevzuatın hangi maddelerini değiştirdiği, yerel korpustan. Her madde için durum: islendi / yururlukte_islenmedi (korpus metni eski) / ileride_yururluge_girecek. Kanunun kendi geçici maddeleri ayrı döner; tam metin: mevzuat_madde_getir(kanun_no, "Geçici 1"). korpusta_izi_olmayan_maddeler "değişiklik yok" DEMEK DEĞİLDİR.

ParameterTypeDescription
kanun_no *string

research_topic

Search sources, fetch documents, and build a research bundle. Returns bundle metadata with query, sources, result_count, fetched_count, content_status_summary, citation_safe_count, generated_files, warnings, and recommended_next_steps.

ParameterTypeDescription
query *string
fetch_countinteger
filters
output_dir
sources

search_local_corpus

Concept DISCOVERY over the local corpus. Searches the local corpus (decisions already fetched this session or via the corpus crawl) for a legal CONCEPT when the exact wording is unknown. Each result carries ``related_quotes`` — matched passages — so you can spot relevant precedent without fetching every full text. Roles are complementary: THIS tool = DISCOVERY over the local corpus; ``search_decisions`` = live CURRENT search + citation verification. The corpus may lag; always confirm any decision you cite with ``search_deci…

ParameterTypeDescription
query *string
chamber
content_status
court
date
document_id
draft_usable
esas_no
filters
karar_no
limitinteger
modestring
provider
quote_usable
semantic_query
sortstring
source

get_legislation

Get legislation content from the Mevzuat source. Args: document_id: Mevzuat document ID. source: Source ID (default: "mevzuat"). part: 'document' (default, full text), 'article_tree' the part/section/article tree, 'gerekce' the rationale. page_number: page of part='document' (40 000 chars/page). Returns: Dict for the requested part; 'document' also carries current_page/total_pages/total_chars.

ParameterTypeDescription
document_id *string
page_numberinteger
partstring
source

export_document

Unified document export: DOCX, UDF, PDF, plain text, or bundle. Args: format: 'docx' (default), 'udf', 'pdf', 'plain', 'bundle', or 'capabilities' (returns supported formats). draft_path: Path to draft.md (for docx/plain). draft_json: Draft metadata dict (for docx). text: Text to write (for udf; plain text — petition formatting such as bold title/labels/headings is applied automatically). out_path: Output file path (for docx/udf/plain). out_dir: Output directory (for bundle)…

ParameterTypeDescription
body
documents
docx_path
draft_dir
draft_json
draft_path
formatstring
out_dir
out_path
pack_dir
text
title
title_centeredboolean
udf_path

load_extended_tools

Load extra tool categories into the running MCP server (no restart). Core profile registers 12 tools. Everything else waits here; load a category when the task needs it. Categories: drafting — citation_check (atif dogrula/bicimlendir/guvenlik), prepare_petition (dilekce input_pack/outline/taslak) files — read_legal_file (UDF/PDF dosyasi oku) meta — list_sources (kaynaklar, birim kodlari, mevzuat turleri), legal_research_guide (arama/Solr/daire/atif rehberi) legislation…

ParameterTypeDescription
categories *array

health_check

Run a consolidated health check across sources, breakers, indexes and cron jobs. Returns overall status plus source smoke summary, circuit breaker states, search index status and ``scheduled_jobs`` — the last run of the daily crawl, weekly legislation update, monthly merge and the legislation semantic index (read from their log files). ``overall`` is "degraded" when a job is late or ended with rc != 0.