search_within_mevzuat
Search a specific Turkish legislation's articles by ID using Boolean keywords. Returns matching articles sorted by relevance, ideal for navigating large laws.
Instructions
Search within a specific legislation's articles on bedesten.adalet.gov.tr.
Ideal for large legislation where get_mevzuat_content would return too much text. Fetches the full document, splits into individual articles (MADDE), and applies keyword search with Boolean operators. Returns only matching articles sorted by relevance score (match frequency).
Each result includes: article number (madde no), match count, and full article text.
Workflow: search_mevzuat → get mevzuatId → search_within_mevzuat(mevzuatId, keyword)
Example: To find investor compensation articles in Capital Markets Law:
search_mevzuat(mevzuat_adi='sermaye piyasası', mevzuat_tur='KANUN') → mevzuatId
search_within_mevzuat(mevzuat_id='...', keyword='yatırımcı AND tazmin')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mevzuat_id | Yes | Legislation ID from search_mevzuat results (mevzuatId field). This is a string ID (e.g., '345097'), NOT the law number. First call search_mevzuat to get the mevzuatId. | |
| keyword | Yes | Search query with Boolean operators (operators MUST be uppercase). Simple keyword: 'yatırımcı'. AND (both required): 'yatırımcı AND tazmin'. OR (at least one): 'yatırımcı OR müşteri'. NOT (exclude): 'yatırımcı NOT kurum'. Exact phrase: '"mali sıkıntı"'. Combined: '"mali sıkıntı" AND yatırımcı NOT kurum'. | |
| case_sensitive | No | Case-sensitive matching (default: false) | |
| max_results | No | Maximum number of matching articles to return (1-50, default: 25) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |