Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

spatial_query

Find entities inside a geographic radius or bounding box on a QLever knowledge graph, with optional type and label filters for targeted spatial lookups.

Instructions

Find entities within a geographic area (GeoSPARQL geof: functions on WKT point literals). Supports radius and bounding box modes.

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": {
      "params": "<params>"
    },
    "name": "spatial_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a genuinely useful constraint — matching happens via GeoSPARQL geof: functions on WKT point literals, implying non-WKT or polygon geometries may not match — and "Find" implies a read-only operation. It omits result shape, the default 100-row cap, ordering, and any statement about which dataset/graph is searched.

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?

Two tight sentences, front-loaded with the purpose and followed by the mode enumeration. The parenthetical GeoSPARQL/WKT detail earns its place as behavioral context; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only spatial lookup with no output schema and no annotations, the definition is adequate on inputs but silent on what comes back (entities, labels, coordinates?) and on the default result cap. An agent could invoke it correctly but could not predict the response payload or result volume.

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?

Top-level schema coverage is reported as 0% (the single `params` object is undocumented), so the description must compensate; it partially does by naming the radius and bbox modes, which explains the oneOf discriminator. It adds nothing about the mode-specific fields (radius_km, min/max lat/lon), limit, type_filter, or the label/coordinate predicate overrides, though the nested schema does describe those.

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 uses a specific verb and resource ("Find entities") plus an explicit scope ("within a geographic area") and names the two supported modes. It implicitly separates this from text/SPARQL siblings by emphasizing spatial filtering, but it never names an alternative tool, so it stops short of full sibling differentiation.

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

Usage Guidelines2/5

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

"Supports radius and bounding box modes" tells the agent which shapes of query exist, but there is no guidance on when to choose spatial_query over search_entities or sparql_query, no stated prerequisites (e.g., entities must have WKT point literals on the coordinate predicate), and no exclusions.

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