Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

sparql_query

Execute SPARQL queries (SELECT, ASK, CONSTRUCT, DESCRIBE) against a configured QLever endpoint and return results as a formatted table with timing.

Instructions

Execute a SPARQL query against the configured QLever endpoint. Supports SELECT, ASK, CONSTRUCT, and DESCRIBE query forms. Returns results as a formatted table with timing information.

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe SPARQL query to execute
timeoutNoQuery timeout in QLever duration format (e.g. '30s', '5000ms', '2min'). Defaults to the server-configured timeout.
max_rowsNoMaximum number of result rows to return (max 10000). The query still computes fully; this only limits serialization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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 disclosure burden. It does add real behavioral value by stating the four accepted query forms and that results come back as a formatted table with timing information, which implies read-only execution. However, it says nothing about permissions/auth, endpoint configuration prerequisites, result-size behavior, or error handling for malformed queries.

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 short sentences, front-loaded with the action and endpoint, followed by supported forms and return shape. Nothing is padded, though the return-format sentence could arguably be trimmed given the schema already covers output-adjacent concerns.

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?

There is no output schema, so the description's note that results arrive as a formatted table with timing is genuinely necessary and present. For a three-parameter query tool with fully documented schema, the remaining gap is only the lack of sibling differentiation and any caveats about result limits or endpoint prerequisites.

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 (query, timeout, max_rows) are already documented in the schema, including the duration format and the max_rows serialization caveat. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

The description opens with a specific verb and resource ('Execute a SPARQL query against the configured QLever endpoint') and enumerates the supported query forms (SELECT, ASK, CONSTRUCT, DESCRIBE). It is clear what the tool does, but it never names or contrasts with the closely related sibling sparql_query_json, leaving the agent to infer which one 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?

Usage is only implied: the enumeration of read-style query forms suggests this is for retrieval rather than mutation (as opposed to sparql_update), but there is no explicit when-to-use, when-not-to-use, or pointer to alternatives such as sparql_query_json or sparql_autocomplete. An agent gets a reasonable hint but no routing guidance.

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