Skip to main content
Glama

Law groups and approvers

rk_law_filters
Read-onlyIdempotent

List law groups and approving authorities to find filter IDs or codes, then pass them to the law search tool to narrow results by document type or issuing body.

Instructions

List the law groups (categories) and approving authorities that rk_search_laws can filter by.

Use first for one kind of document (court rulings, decrees, Majlis debates) or one issuing body. Pass a group id or approver code to rk_search_laws. parent is set on sub-groups.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rk_law_filters"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoName words to narrow the lists, e.g. 'دیوان'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / query / description
      Previous value: -"Name words to narrow the lists, e.g. 'دیوان' or 'مالیات'."New value: +"Name words to narrow the lists, e.g. 'دیوان'."
  2. First observedv0.1.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so safety is covered. The description adds structural context not in the annotations: the output consists of two distinct lists (groups and approvers), sub-groups are indicated via a `parent` field, and the returned ids/codes are meant as inputs to rk_search_laws. It does not say whether the lists are static reference data or live-fetched, which would be the remaining useful detail.

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

Conciseness4/5

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

Three short sentences, front-loaded with the purpose, followed by when-to-use and how-to-consume. No filler, though the phrasing 'Use first for one kind of document' is slightly compressed and could read more naturally.

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

Completeness4/5

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

With no output schema, the description carries the burden of describing returns, and it does reasonably well: two lists, ids/codes, and a `parent` marker for sub-groups. It leaves out response shape and whether names are localized, but for a single-optional-parameter reference lookup this is close to sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single `query` parameter is already documented in the schema with an example ('دیوان'). The description's id/code/parent explanation concerns returned values rather than the input parameter, so it adds little meaning about `query` itself. Baseline 3 is appropriate.

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?

States a specific verb and resource: 'List the law groups (categories) and approving authorities that rk_search_laws can filter by.' The description ties the tool's output directly to a named sibling (rk_search_laws), which makes it unambiguous that this is a filter-value lookup rather than a search or retrieval tool.

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?

Gives clear workflow guidance: 'Use first for one kind of document (court rulings, decrees, Majlis debates) or one issuing body,' then explains what to do with the results ('Pass a group id or approver code to rk_search_laws'). It does not mention when not to use it or the other siblings (rk_latest_laws, rk_exchange_offices), so it stops short of full alternatives coverage.

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