Skip to main content
Glama

search_instruments

Read-onlyIdempotent

Find EU legislation and UK legislation by keyword, acronym (GDPR, DORA, AIA), the common name practitioners use ('Market Abuse Regulation', 'MLRs', 'UK GDPR'), CELEX ID or Lex-Ray id. Matching is case-insensitive and an exact name ranks ahead of partial title matches. Returns an envelope whose 'matches' array carries the bibliographic record for each match — titles, id, jurisdiction (eu/uk), Official Journal reference, dates — plus a currency block giving the commencement state as at today, so a match that is expired or not yet applying says so rather than reading as current law, and web_url, the act's Lex-Ray page. When several instruments share the exact name searched, 'ambiguous' is true and 'disambiguation' lists them: choose by jurisdiction and title rather than taking the first. When a curated common name settles it, 'preferred' names that act and 'alternatives' the others sharing the name. Use this to resolve a name to an id before calling the other tools. Requires no credentials.

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_instruments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (1-50, default 10)
queryYesSearch term - can be a keyword (e.g., 'artificial intelligence'), acronym (e.g., 'GDPR', 'AIA'), or CELEX ID (e.g., '32016R0679')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the read-only/idempotent/no-destructive profile, and the description goes far beyond them: case-insensitive matching, exact-name ranking over partial title matches, the shape of the returned envelope ('matches', 'currency', 'web_url'), and the crucial disclosure that commencement state is as at today so expired or not-yet-applying acts are flagged. It also removes an auth question with 'Requires no credentials.'

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?

Front-loads the searchable fields before the return-value discussion, and there is little filler. It is a long single paragraph and the disambiguation/preferred/alternatives sentences could be tightened or split for scanning, but every sentence carries operational information given there is no output schema.

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?

With no output schema, the description carries the full burden of explaining returns and does so: matches envelope, bibliographic fields, currency/commencement block, web_url, and the ambiguous/disambiguation/preferred/alternatives flags. For a two-parameter read-only search this is complete enough that an agent can call it and interpret results without further exploration.

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 met by the schema itself, but the description still adds genuine meaning: it extends the accepted query forms beyond the schema's keyword/acronym/CELEX examples to include practitioner common names ('MLRs', 'UK GDPR') and Lex-Ray ids, and explains rank ordering of matches. The 'limit' parameter is left entirely to the schema.

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?

Opens with a specific verb and resource ('Find EU legislation and UK legislation') and enumerates the accepted lookup keys: keyword, acronym, practitioner common name, CELEX ID, Lex-Ray id. This clearly separates it from siblings like get_legislation and get_timeline, which take an id rather than a search term.

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?

Explicitly states the workflow role: 'Use this to resolve a name to an id before calling the other tools,' which tells the agent to search first and fetch second. It also gives a decision rule for ambiguity ('choose by jurisdiction and title rather than taking the first'), but it does not name the specific sibling tools or state when-not-to-use it (e.g., when an id is already known).

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