Skip to main content
Glama

search_provisions

Read-onlyIdempotent

Search the stored text of every provision of the held acts by meaning and by words; a query naming an act and a provision, or a CAS or EC number, is answered first. Searches the version in force on in_force_on, else the current one. Each result is a coordinate, an excerpt of at most 300 characters, why it matched, the page that tells its history and the authority's text. An excerpt is not the provision's text: provision_text returns that, one provision per call, from the result's text_args. A similar match is a similarity match, related wording and not a statement that the provision is about the query. Page with cursor set to next_cursor; unavailable says why there is no answer. Every list is complete for the watch window the record covers, from the oldest version an act was watched from to its newest, and says nothing about anything outside it. disputed means one of three independent signals (the text comparison, the EU's own amendment metadata, the amending act's instructions) disagreed; dispute_reason says which and how, and a dispute is a reading of the sources, not a judgement about the law. applies_from: unknown means no application date could be read deterministically, never that no date applies. Units named by only one signal are listed by name on their event (metadata_only_units, instruction_only_units), never as changes. Not legal advice: this output is machine-computed from published texts, carries no lawyer's review, and is engineering assistance only.

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
actNoOne act's key; all when omitted.
limitNoResults per page, 1 to 25.
queryYesWords, a phrase, or an act and a provision.
cursorNoThe `next_cursor` of the previous page.
in_force_onNoSearch the version in force on this date.

Output Schema

NameRequiredDescriptionDefault
answerYesThe answer as served.
disclaimerNoNot legal advice.Not legal advice: this output is machine-computed from published texts, carries no lawyer's review, and is engineering assistance only.
unavailableYesWhy there is no answer, in words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already declare a read-only, idempotent, closed-world read, and the description adds substantial behavior beyond them: result shape (coordinate, ≤300-char excerpt, match reason, history page, authority text), the caveat that an excerpt is not the provision's text, the semantics of a `similar` match, `unavailable`, watch-window completeness limits, and the meaning of `disputed`/`applies_from: unknown`. It even flags the output as machine-computed and not legal advice, which is exactly the kind of context annotations cannot carry.

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?

The purpose and the provision_text handoff are front-loaded, but the single dense paragraph runs long and drifts into semantics (`disputed`, `dispute_reason`, `metadata_only_units`, `applies_from`) that read more like change-record behavior than provision search. Those sentences are informative but dilute the search-specific guidance an agent needs at call time.

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?

For a five-parameter, output-schema-backed search tool, the definition covers query interpretation, version selection, result shape, pagination, and edge cases such as `unavailable` and `similar` matches. The remaining gap is guidance on when to prefer `find_provisions` or `find_substance` over this tool, which the sibling set implies exists.

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 coverage is 100%, so the baseline is 3; the description goes further by explaining how `query` is interpreted (act-plus-provision or CAS/EC identifiers get priority) and that `in_force_on` falls back to the current version when omitted. It does not add anything about `limit` or `act` beyond the schema, keeping this short of a 5.

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 and resource: "Search the stored text of every provision of the held acts by meaning and by words", with the act scope clarified. It distinguishes itself from provision_text (excerpts vs. full text) but does not differentiate itself from near-synonym siblings such as find_provisions or find_substance, leaving that inference to the agent.

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?

It gives concrete routing rules: queries naming an act and provision or a CAS/EC number are answered first, in_force_on selects a historical version with a fallback to the current one, and `provision_text` is named as the follow-up for full text. Pagination via `cursor`/`next_cursor` is also spelled out. What is missing is explicit when-not guidance against the sibling search tools.

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