Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

sparql_query_json

Executes a SPARQL query and returns raw QLever JSON response, providing structured result arrays, timing breakdown, and total result count for further processing.

Instructions

Execute a SPARQL query and return the raw QLever JSON response. Useful when you need structured data for further processing (result arrays, timing breakdown, total result count).

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe SPARQL query to execute
timeoutNoQuery timeout (e.g. '30s', '2min')
max_rowsNoMaximum number of result rows to serialize (max 10000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the response shape (result arrays, timing breakdown, total result count), which is genuinely useful, but says nothing about read-only semantics, error/failure behavior for malformed queries, or whether a timeout aborts or truncates results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action and return type, with zero redundant wording. Every clause contributes information about what is returned.

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 three-parameter read tool with no output schema, the description covers the essential gap by characterizing the returned JSON. Remaining omissions (safety profile, sibling differentiation, truncation behavior) are modest but real.

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 all three parameters are already documented in the schema, establishing a baseline of 3. The description adds no further meaning about the timeout format or the max_rows truncation semantics (whether exceeding max_rows truncates silently or errors).

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 (Execute) and resource (a SPARQL query) plus the exact return format ('raw QLever JSON response'), which is concrete and actionable. It does not, however, differentiate itself from the sibling 'sparql_query' tool, so an agent cannot tell from this text alone which of the two to pick.

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?

Offers an implied use case ('when you need structured data for further processing') with examples of what the payload contains. There is no explicit when-not guidance and no named alternative such as sparql_query, so routing between near-identical siblings is left to inference.

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