Skip to main content
Glama
Legal Knowledge MCP Server

Legal Knowledge MCP Server

by Angioz

legal_query_eurlex

Query EU law through the EUR-Lex SPARQL endpoint to find directives, regulations, and case law using natural language search.

Instructions

Query EU law via EUR-Lex SPARQL endpoint. Returns EU directives, regulations, and case law.

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": "legal_query_eurlex"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to return (default: 10)
queryYesNatural language query about EU law
sparqlNoOptional: raw SPARQL query for advanced users
document_typeNoType of EU document to search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says the tool queries a SPARQL endpoint and returns documents, but doesn't cover rate limits, whether a raw SPARQL query supersedes the natural-language 'query', syntax expectations, or result ordering/pagination behavior beyond the 'limit' parameter.

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?

Two short sentences, front-loaded with the action and mechanism, with no filler. It is appropriately sized, though the return-scope sentence could have been merged with the mechanism statement without loss.

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

Completeness3/5

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

Return values are mentioned at a high level (directives, regulations, case law) and no output schema exists, so some burden remains. For a tool with an advanced raw-SPARQL escape hatch and no annotations, the description leaves the query/sparql relationship and error behavior unexplained.

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%, so the four parameters are documented in the schema itself, setting the baseline at 3. The description adds only the endpoint mechanism, and it notably does not clarify the interaction between 'query' and 'sparql' (both effectively optional/required paths) or the meaning of 'all' in the document_type enum.

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?

Specific verb+resource: 'Query EU law via EUR-Lex SPARQL endpoint' plus the return scope (directives, regulations, case law). This clearly distinguishes it from the many sibling legal search tools, which target other jurisdictions. It does not name an EU alternative, but the jurisdiction is unambiguous from the description.

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: use it for EU-law questions, and the 'sparql' parameter hints at advanced use. However, there is no explicit when-to-use guidance, no mention of when to prefer sibling tools (e.g., EU data vs EUR-Lex), and no note that 'query' is the required natural-language path while 'sparql' overrides it.

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