Get Wikidata SPARQL query result
wikipedia_wikidata_query_runRun a read-only SPARQL query against Wikidata to retrieve entity data as JSON bindings or ASK answers, enabling factual lookups for research and question answering.
Instructions
Get a read-only Wikidata SPARQL query result as bindings or an ASK answer. Requires sparql. Returns a list.
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": {
"sparql": "<sparql>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "wikipedia_wikidata_query_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Result format. Only `json` is served. | json |
| sparql | Yes | Required. Read-only SPARQL query. `INSERT`, `DELETE`, `LOAD`, `CLEAR`, `DROP`, `CREATE`, `ADD`, `MOVE`, `COPY` and `WITH` are refused. | |
| context | Yes | Describe the user's underlying goal in one sentence, not the tool you are calling. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess. | |
| conversation_id | No | Echo the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it. |