Skip to main content
Glama

Aturan.org — Indonesian Legal Retrieval

cari_peraturan_terkait

Temukan regulasi relevan beserta Pasal kandidat untuk riset hukum bertahap.

Ini adalah titik awal yang dianjurkan saat perlu memahami payung regulasi, memetakan landscape hukum, membandingkan regulasi, atau menemukan regulasi yang normanya perlu dibaca lebih lanjut.

Respons menyimpan hasil dalam groups (kategori → hierarki → daftar regulasi). Hasil tool ini terutama berfungsi sebagai discovery regulasi. semantic_hits hanya preview maksimal 10 Pasal, sedangkan semantic_hit_pasals memuat seluruh nomor Pasal kandidat unik.

Setelah regulasi yang relevan ditemukan, pilih Pasal kandidat dari semantic_hit_pasals yang diperlukan untuk analisis, lalu gunakan baca_isi_pasal untuk satu norma atau prioritaskan baca_isi_pasal_batch apabila beberapa norma perlu dibaca pada tahap analisis yang sama. Inilah jalur utama untuk memperoleh teks Pasal setelah discovery melalui cari_peraturan_terkait.

Jangan membaca seluruh Pasal kandidat secara otomatis. Pilih hanya regulasi dan Pasal yang relevan dengan isu hukum agar retrieval tetap efisien.

Jangan membuat sendiri regulation_id, judul, shard, atau path. ID hanya sementara pada registry gateway; ulangi pencarian ini jika ID tidak lagi dapat dibaca pada langkah berikutnya.

Args: query: Pertanyaan atau topik hukum yang ingin diteliti, WAJIB minimal 3 kata (1–2.000 karakter). top_k: Jumlah kandidat retrieval, antara 20 dan 200 (default 40, disarankan 100); nilai lebih tinggi memperluas cakupan tetapi dapat menambah waktu dan ukuran respons.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
top_kNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does well: it discloses the response shape (groups, semantic_hits capped at 10 preview articles, semantic_hit_pasals with all unique candidates), warns that IDs are ephemeral in the gateway registry and may need re-search, and notes that higher top_k increases time and response size. It stops short of stating read-only/safety characteristics, but the retrieval nature is obvious.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the recommended-entry-point framing and organized into clear blocks, but it is long and repetitive — the baca_isi_pasal/baca_isi_pasal_batch routing and the 'main path' claim are restated, and the do-not-read-all warning overlaps with the selection guidance. Several sentences could be tightened without losing meaning.

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?

An output schema exists, yet the description still clarifies the meaning of its key fields (semantic_hits as a capped preview vs semantic_hit_pasals as the full candidate set), which is exactly the ambiguity an agent would hit. Combined with the routing, the ephemeral-ID warning, and parameter bounds, nothing an agent needs to invoke this correctly is missing.

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?

Schema description coverage is 0%, so the description must compensate, and it does: query requires at least 3 words (1–2000 chars) and top_k is bounded 20–200 with default 40, a recommended 100, and an explicit trade-off between coverage and latency/payload size. Only minor syntax guidance (e.g. query format) is missing.

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

Purpose4/5

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

The description states a specific verb+resource: finding relevant regulations plus candidate Pasal for stepwise legal research, and frames itself as the recommended starting point. It clearly separates itself from the downstream read tools (baca_isi_pasal, baca_isi_pasal_batch) by routing to them. However it never distinguishes itself from the other search siblings (cari_judul_peraturan, cari_pasal_terkait), leaving that boundary implicit.

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

Usage Guidelines5/5

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

Explicit when-to-use cases are given (understanding a regulatory umbrella, mapping legal landscape, comparing regulations, finding norms to read further), and it names the alternatives and the routing condition: pick Pasal from semantic_hit_pasals then use baca_isi_pasal for one norm or baca_isi_pasal_batch for several. It also gives an exclusion — do not auto-read all candidate Pasal.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources