Skip to main content
Glama
saidsurucu

Mevzuat MCP

by saidsurucu

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

TableJSON Schema
NameRequiredDescriptionDefault
mevzuat_noYesThe legislation number to search within (e.g., '6362', '5237')
keywordYesSearch query. For keyword mode: supports AND/OR/NOT operators (uppercase). For semantic mode: use natural language.
mevzuat_tertipNoLegislation series from search results (e.g., '3', '5')5
case_sensitiveNoWhether to match case when searching (default: False). Only used in keyword mode.
max_resultsNoMaximum number of matching articles to return (1-50, default: 25)
semanticNoTrue: semantic search (natural language query, requires OPENROUTER_API_KEY). False: keyword search (Boolean operators AND/OR/NOT).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. Describes two search modes and their behavior, including Boolean operators and semantic embeddings. Lacks details on potential side effects, auth needs beyond API key, or rate limits, but adds value beyond schema.

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?

Structured into clear sections (modes, examples) with no redundant text. Every sentence adds value: two sentences covering core purpose, then bulleted lists for modes and examples.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers both search modes, required parameters, optional parameters with defaults, and output schema exists. The description is complete given the tool's complexity and richness of schema and output schema.

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?

Input schema has 100% coverage with good descriptions. The description adds context by explaining modes and providing examples, which enhances understanding beyond the schema. However, the schema already handles parameter semantics adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it searches within a specific law's articles using keyword or semantic search. Distinguishes from sibling tools like 'search_within_kanun' vs general 'search_kanun' by specifying 'within a specific law' and providing two distinct search modes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage guidance for both keyword and semantic modes, including examples and noting the OPENROUTER_API_KEY requirement for semantic search. However, does not explicitly state when to choose this tool over siblings or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/saidsurucu/mevzuat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server