search_within_kanun
Search within a specific legislation number using keyword Boolean operators or natural language semantic queries to find matching articles.
Instructions
Search within a specific law's articles using keyword or semantic search.
Modes:
semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)
semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)
Keyword examples: "yatırımcı AND tazmin", '"mali sıkıntı"', "vergi OR ücret" Semantic examples: "yatırımcının zararının tazmini", "sermaye piyasası düzenlemeleri"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mevzuat_no | Yes | The legislation number to search within (e.g., '6362', '5237') | |
| keyword | Yes | Search query. For keyword mode: supports AND/OR/NOT operators (uppercase). For semantic mode: use natural language. | |
| mevzuat_tertip | No | Legislation series from search results (e.g., '3', '5') | 5 |
| case_sensitive | No | Whether to match case when searching (default: False). Only used in keyword mode. | |
| max_results | No | Maximum number of matching articles to return (1-50, default: 25) | |
| semantic | No | True: semantic search (natural language query, requires OPENROUTER_API_KEY). False: keyword search (Boolean operators AND/OR/NOT). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |