io.github.matematicsolutions/tr-eli-mcp
MCP server for Turkish legislation (Adalet Bakanligi Bedesten API): verifiable citations.
Versions
0.1.0latestTools 5
tr_search_legislation Search Turkish legislation by title and/or full text. Args: query: Search phrase, e.g. ``"vergi"``. mevzuat_turu: Optional legislation type filter, e.g. ``"KANUN"``, ``"KHK"``, ``"YONETMELIK"``. See ``tr_list_legislation_types`` for the full list. mevzuat_no: Optional legislation number filter. baslikta_ara: Search in title only (default True). Set False to search full text too. Returns: ``SearchResult`` with ``items: list[Legislation]``, each carrying the citation contract.
tr_get_legislation_content Fetch the full text of a Turkish legislative document by its mevzuat_id. Args: mevzuat_id: Document id, from a ``tr_search_legislation`` result. Returns: ``LegislationContent`` with the citation contract and ``content`` (plain text).
tr_get_legislation_toc Fetch the article tree (madde agaci / table of contents) of a document. Args: mevzuat_id: Document id, from a ``tr_search_legislation`` result. Returns: ``ArticleTree`` with a nested list of article nodes (madde_no, madde_baslik, children).
tr_coverage Declare what this connector covers, how it is sourced, and what it does NOT cover. Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead. Returns: ``Coverage`` with families, an as-of note, and a non-empty list of known gaps.
tr_list_legislation_types Enumerate all Turkish legislation types with live document counts. Returns: ``LegislationTypeList`` with items like KANUN (laws), KHK (decree-laws), YONETMELIK (regulations), CB_KARARNAME (presidential decrees), etc.
Permissions 3
network medium filesystem low env_vars low