Skip to main content
Glama

search_by_date_range

Read-onlyIdempotent

Find EU legal acts within a document date range, optionally filtered by act type, returning deduplicated CELEX results with titles in your chosen language.

Instructions

Znajdz akty prawne UE z zakresu dat (po dacie dokumentu). Opcjonalnie filtruj po typie (REG=rozporzadzenie, DIR=dyrektywa, DEC=decyzja, RECO=zalecenie, OPIN=opinia; REG/DIR/DEC obejmuja tez akty wykonawcze i delegowane). Wyniki deduplikowane po CELEX, z tytulem w jezyku lang (fallback EN). Sprostowania (CORRIGENDUM) domyslnie pomijane - include_corrigenda=true je dolacza. Maks. 50 wynikow na zapytanie.

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": {
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "search_by_date_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoISO 639-3 jezyka tytulow. Domyslnie POL.
limitNoMaks. liczba wynikow (1-50). Domyslnie 20.
date_toYesData do (YYYY-MM-DD).
date_fromYesData od (YYYY-MM-DD).
document_typeNoSkrot typu aktu: REG, DIR, DEC, RECO, OPIN. Pomin zeby objac wszystkie.
include_corrigendaNotrue = dolacz sprostowania (CORRIGENDUM), oznaczone w wynikach. Domyslnie false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description still adds real behavior: deduplication by CELEX, title-language fallback to EN, corrigenda excluded unless requested, and a 50-result cap. It does not say whether the 50-result cap means truncation of a larger result set or how to page beyond it.

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?

Four dense sentences, front-loaded with the core purpose, then filters, then behavior. Every sentence carries information, though the parenthetical enumeration of type codes is the densest part.

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 return-value burden, and it does describe deduplication and title language. It is nearly complete for a 6-parameter read tool, with the only gap being result-shape and pagination/truncation detail.

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 coverage is 100%, so the baseline is 3. The description does add value by decoding the document_type values (REG/DIR/DEC also cover implementing and delegated acts) and restating the corrigenda toggle, but lang and limit semantics are already fully in the schema.

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?

States a specific verb and resource ('Znajdz akty prawne UE') and narrows the axis to the document date ('po dacie dokumentu'), which separates it from a CELEX or ECLI lookup by implication. It never names a sibling explicitly, so the differentiation is inferable rather than stated.

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

Usage Guidelines3/5

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

Usage is implied by the date-range framing and the note that filtering by type is optional, plus the corrigenda default. There is no explicit when-to-use/when-not or pointer to search_by_celex for identifier-based lookups.

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