Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

sparql_update

Execute SPARQL 1.1 Update statements on QLever knowledge graphs with token-protected writes, dry-run previews, and required confirmation for DROP or CLEAR operations.

Instructions

Execute a SPARQL 1.1 Update. REQUIRES access token. Use dry_run:true to preview. dry_run:true only echoes the statement without contacting QLever. Any DROP or CLEAR requires confirm:true.

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": {
      "update": "<update>"
    },
    "name": "sparql_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
updateYesThe SPARQL Update statement to execute
confirmNoRequired for any DROP or CLEAR operation
dry_runNoShow the detected operations and statement without executing (default: false)
graph_uriNoOptional full graph IRI (e.g. '<http://example.org/graph>') used as the default graph for the WHERE clause (SPARQL protocol using-graph-uri). To write into a named graph, use GRAPH <...> { } in the statement itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/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 burden and does well on prerequisites (access token) and on dry_run not contacting QLever. It omits key mutation traits: irreversibility of DROP/CLEAR, effect on existing triples, and what a successful response contains.

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?

Four short sentences, all front-loaded and each carrying a distinct constraint. The telegraphic style is dense but slightly clipped ("REQUIRES access token" lacks an object), and dry_run is restated twice.

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 destructive update tool with no annotations and no output schema, the critical operational facts — auth, preview mode, destructive-op guard — are all present. Failure modes and response shape remain unstated but are secondary.

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 semantic detail — dry_run "only echoes the statement without contacting QLever" clarifies a nuance beyond the schema's wording, and the confirm requirement is tied to specific operation types.

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 and resource ("Execute a SPARQL 1.1 Update"), which implicitly separates it from the read-only sparql_query/sparql_query_json siblings. No sibling is named explicitly, so differentiation is inferred rather than stated.

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?

Gives concrete invocation guidance: a token is required, dry_run:true previews, and DROP/CLEAR need confirm:true. It stops short of stating when to prefer this over sparql_query or when an update should be avoided entirely.

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