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
| Name | Required | Description | Default |
|---|---|---|---|
| update | Yes | The SPARQL Update statement to execute | |
| confirm | No | Required for any DROP or CLEAR operation | |
| dry_run | No | Show the detected operations and statement without executing (default: false) | |
| graph_uri | No | Optional 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. |