Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

analyze_query

Inspect QLever SPARQL query execution to view the execution tree, estimated vs. actual sizes, per-operation timings, and total result size without returning rows.

Instructions

Analyze how QLever evaluates a SPARQL query. The query IS executed (QLever has no plan-only mode) but no result rows are returned. Shows the query execution tree with estimated vs. actual sizes, per-operation timings and the total result size. Use a short timeout for potentially expensive queries.

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe SPARQL query to analyze
timeoutNoQuery timeout (default: server-configured timeout)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the query is actually executed (so it costs real work, there is no plan-only dry run), that rows are suppressed, and exactly what the response contains (execution tree, estimated vs. actual sizes, per-operation timings, total result size). It does not mention error behavior or whether execution has any side effects beyond cost.

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?

Three tight sentences: what it does, the surprising constraint (executes but returns no rows), what you get back, then the operational tip. Nothing is repeated and the most decision-relevant fact is front-loaded.

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?

There is no output schema, so the description must describe return content, and it enumerates the execution tree, estimated vs. actual sizes, timings, and total size. For a two-parameter analysis tool that is complete enough for an agent to decide and call.

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 3, but the description adds real guidance beyond the schema by advising a short timeout for potentially expensive queries, which tells the agent how to choose the value rather than just its format.

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 ("Analyze how QLever evaluates a SPARQL query") and immediately clarifies the output contract: the query runs but no rows come back. That single clause separates it from the row-returning siblings like sparql_query without needing to name them.

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?

The description establishes the context of use (performance inspection of a query plan) and gives actionable guidance to set a short timeout for expensive queries. It never explicitly says "use sparql_query instead if you want rows," so the alternative routing is left implicit.

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