Skip to main content
Glama

Cellar Sparql

cellar_sparql
Read-onlyIdempotent

Run your own read-only SPARQL SELECT or ASK against the Publications Office of the European Union CELLAR endpoint, for EU-document questions no purpose-built tool covers, citation graphs, amendment chains, EuroVoc concept traversal, cross-institution counts. The Common Data Model prefix cdm: is http://publications.europa.eu/ontology/cdm#. Writes (INSERT/DELETE/LOAD/CLEAR) are refused, and results are capped.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 5,
      "query": "PREFIX cdm: <http://publications.europa.eu/ontology/cdm#>\nSELECT ?celex ?date WHERE { ?w cdm:resource_legal_id_celex ?celex ; cdm:work_date_document ?date . FILTER(?date > \"2026-01-01\"^^<http://www.w3.org/2001/XMLSchema#date>) }"
    },
    "name": "cellar_sparql"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 50, max 500). Applied on top of any LIMIT already in the query.
queryYesA SPARQL SELECT or ASK query. Virtuoso full-text search is available as `?lit bif:contains "'phrase'"`. CELEX literals are typed xsd:string, a plain string will match nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"A SPARQL SELECT or ASK query. Virtuoso full-text search is available as `?lit bif:contains \"'phrase'\"`. CELEX literals are typed xsd:string — a plain string will match nothing."New value: +"A SPARQL SELECT or ASK query. Virtuoso full-text search is available as `?lit bif:contains \"'phrase'\"`. CELEX literals are typed xsd:string, a plain string will match nothing."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds genuinely new behavioral facts: writes (INSERT/DELETE/LOAD/CLEAR) are actively refused, and results are capped — useful constraints an agent cannot derive from annotations alone. It stops short of saying what the cap is or what the failure looks like when a write is refused.

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?

Three tight sentences, front-loaded with the core action and the routing condition before the namespace and write-refusal details. The four-item use-case list ('citation graphs, amendment chains, EuroVoc concept traversal, cross-institution counts') is slightly enumerative but each item sketches a distinct query pattern, so little is wasted.

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 two-parameter generic query tool with no output schema, the definition covers purpose, routing, the write restriction, the result cap, and the ontology prefix needed to write queries. The main remaining gap is the shape of returned results (SPARQL bindings structure, pagination/truncation signaling), which an agent must discover by calling it.

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% and the schema examples already demonstrate the cdm: prefix, CELEX typing, and bif:contains usage. The description's statement of the cdm: namespace and the 'results are capped' note add a little reinforcement but no semantics the schema does not already carry, so the baseline of 3 applies.

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: 'Run your own read-only SPARQL SELECT or ASK against the ... CELLAR endpoint'. It immediately scopes the tool as a generic escape hatch distinct from the purpose-built cellar_search_works / cellar_work siblings, and names the query language (SPARQL) and endpoint owner precisely.

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?

Gives a clear routing condition: use it 'for EU-document questions no purpose-built tool covers', plus concrete use-case classes (citation graphs, amendment chains, EuroVoc traversal, cross-institution counts). It does not name the specific sibling tools to prefer instead, so the agent must infer which 'purpose-built tool' applies, but the when-to-use signal is explicit.

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.