Skip to main content
Glama

search_provisions

Search Polish legal acts for provisions containing all given words, ignoring diacritics. Provide an act_id to target one act, or use search_acts to find it first.

Instructions

Find provisions containing ALL the given words (diacritics ignored). With act_id it searches that act. Without it, it searches every act of the kind, which works only when the server reads a local clone of the data (POLISH_LAW_DATA_DIR); otherwise give an act_id (find it with search_acts).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_provisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNounified
limitNo
queryYes
act_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it discloses a non-obvious deployment dependency (server must read a local clone via POLISH_LAW_DATA_DIR) and the resulting failure mode for unscoped searches. What it does not cover is result volume or how 'limit' bounds the search, leaving some behavioral surface unstated.

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?

The core capability and the AND/diacritic semantics are front-loaded, then the scoping rule follows logically. The parenthetical environment variable and parenthetical act_id hint are slightly dense but each carries real operational information rather than filler.

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 an output schema present, the description need not explain return values, and it covers the key scoping decision and the data-availability precondition well. The remaining gap is the unspecified 'kind' parameter, which is central to the 'searches every act of the kind' behavior yet never defined.

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 0%, so the description must compensate for all four parameters. It explains query (all words must match, diacritics ignored) and act_id (scope plus how to find one), but 'kind' and 'limit' get no explanation at all, including what values 'kind' accepts and what the default of 15 means.

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 ('Find provisions') plus the matching semantics ('containing ALL the given words', diacritics ignored), which an agent cannot infer from the name alone. It also implicitly separates itself from search_acts by pointing there for act IDs, so the boundary between the two search tools is clear.

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?

Explicitly gives the two modes: with act_id it searches one act; without it, it searches every act of the kind, and that only works when the server has a local data clone. It then prescribes the fallback ('otherwise give an act_id') and names search_acts as the way to obtain one, which is exactly the routing an agent needs.

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