Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

sparql_autocomplete

Suggests predicate or class IRIs from a QLever dataset that match given text, ordered by usage frequency, to help choose schema terms before writing a SPARQL query.

Instructions

Use this BEFORE sparql_query when unsure which predicates or classes exist. Suggests predicate or class IRIs from the dataset that contain the given text, ordered by how often they are used. For entities, use search_entities.

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": {
      "search_term": "<search_term>"
    },
    "name": "sparql_autocomplete"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWhat to complete: 'predicate' (default) or 'class' (rdf:type objects)predicate
limitNoMaximum number of completions to return (default: 20, max: 100)
search_termYesText to match (case-insensitive substring of the IRI), e.g. 'birth'. Use an empty string to list the most frequent ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/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 it does disclose real behavior: results are IRIs, scoped to the dataset, and ranked by usage frequency, which tells the agent how to interpret ordering. It stops short of stating read-only/no-side-effect status or whether the scan covers all named graphs, so a small gap remains.

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 short sentences, front-loaded with the routing instruction, then purpose, then the exclusion. No redundancy and nothing that fails to earn its place.

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, no-annotation, no-output-schema tool, the definition covers purpose, ranking semantics, and sibling routing, which is enough to invoke it correctly. Minor gaps are the unspecified scan scope and the implicit (not stated) read-only nature.

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 kind, limit, and search_term are already fully documented, including the enum values and the empty-string trick. The description's 'contain the given text' largely restates the schema's case-insensitive substring note, so it adds little parameter-level meaning beyond the baseline.

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?

The description states a specific action (suggest predicate or class IRIs from the dataset) against a specific resource, and explicitly distinguishes itself from two siblings: sparql_query ('use this BEFORE') and search_entities ('For entities, use search_entities'). An agent can pick this tool without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit ordering rule ('Use this BEFORE sparql_query when unsure which predicates or classes exist') and names the alternative for the excluded use case (entities go to search_entities). Both the when and the when-not are present.

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