Get Wikidata Statements
wikidata_get_statementsFetch property claims for a Wikidata entity with qualifier and reference detail. Item QIDs and quantity units — in values, qualifiers, and references — are resolved to human-readable labels by default, and every P-ID the statements name comes back labelled in propertyLabels. Each property returns up to limit statements (default 10) starting at offset, in upstream order; propertyTotals counts every statement each property holds, and nextOffset, present while any property holds more, continues every property at once. Use the properties parameter to fetch only specific P-IDs — omitting it returns every property, and a well-connected item (a country, a major city) carries hundreds of them: more than fits inline. A page of several properties over 24,000 bytes before labels comes back as kind: "outline" — every P-ID on the page with its byte size, largest first — instead of the statements; re-call with the same id, limit, offset, and rank plus properties:[...] naming P-IDs whose sizes sum to 24,000 or less (the retrieval_notice names one such set). Labels are added after that check, so a returned page can run past 24,000 bytes by their size, and a single property is never outlined: it returns its window whatever the size. Designed for fact verification: "what does Wikidata say about this entity's {property}?". For a current value, rank: "best" keeps each property's preferred statements, or its normal ones when none is preferred, and never deprecated ones — the statements SPARQL's wdt: reads. Check qualifiers and references for temporal scope and evidence.
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": {
"id": "<id>"
},
"name": "wikidata_get_statements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Q-ID (e.g., "Q76") or P-ID of the entity to fetch statements for, bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). | |
| rank | No | Which statements each property keeps. "all" keeps every statement, deprecated ones included. "best" keeps a property's preferred statements when it has any, otherwise its normal ones, and never deprecated ones — the truthy statements SPARQL's wdt: reads. Applied before every count, the limit/offset window, the outline check, and labels. | all |
| limit | No | Statements returned per property, starting at offset, in upstream order. Default 10; a larger value returns at most 500 per property and says so. | |
| offset | No | Statements skipped in each property before its window. Start at 0; pass the nextOffset a response returns to continue every property at once. | |
| language | No | Wikidata language code for label resolution of QID values and P-IDs (e.g., "en", "de"). Case-insensitive; "_" is read as "-"; blank means "en". | en |
| properties | No | P-IDs to fetch (e.g., ["P31", "P569", "P27"]), bare or as an entity URI or wd: form. Omit to return all properties (may be large for major items). | |
| resolve_labels | No | Resolve item QIDs (label), quantity unit QIDs (unitLabel), and the P-IDs of statements, qualifiers, reference parts, and property-typed values (propertyLabels) to human-readable labels via one batched label call over the returned statements. Set to false to skip label resolution and return raw IDs only (faster, smaller payload). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The resolved entity ID whose statements were fetched. | |
| kind | No | full — statements carries the claims. outline — the statement set overflowed the inline byte budget, so sections lists the P-IDs available instead; re-call with properties:[...] to retrieve specific ones. The counts below are reported either way. | |
| rank | No | The rank filter applied: "all" or "best". | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Explains missing requested properties, a clamped limit, an offset past every property, deprecated-only claims excluded by best rank, or labels unavailable because of an outage or an unrecognized language. | |
| sections | No | Present when kind = outline: the P-IDs with statements in this limit/offset window, largest first, each sized as the UTF-8 bytes its window adds to a response before labels. Sizes add up: copy names whose sizes sum to 24,000 or less into the properties input, with the same limit, offset, and rank, to retrieve them. | |
| truncated | No | True when the window cut at least one property short of its total: nextOffset continues it. Absent otherwise. | |
| nextOffset | No | Present in full mode while any property holds statements past this window: offset + limit. Re-call with offset: nextOffset to continue every property at once. Absent on the last page, and on an outline: re-call for this window first. | |
| statements | No | Map of property ID to array of normalized statements. Each statement has id, rank, property, value (with type-specific fields), optional qualifiers ([{ property, value }]), and optional references — one entry per source in upstream order, each { parts: [{ property, value }] }. Present in full mode; omitted in outline mode. | |
| propertyCount | No | Number of distinct properties — those returned in full mode, those offered as sections in outline mode. | |
| returnedCount | No | Statements returned in statements, across every property — this page. 0 on an outline. | |
| labelsResolved | No | True when label resolution was enabled and completed for a full response. Statements carry available item and unit labels, and propertyLabels holds available property labels. False when resolution was disabled, the response is an outline, or the label service was unavailable or rejected the language. | |
| propertyLabels | No | P-ID → label in language for the properties the returned statements name: statement keys, qualifier and reference-part properties, and property-typed values. Present when labelsResolved is true; a P-ID with no label is absent and renders bare. | |
| propertyTotals | No | Statements each property in the selection holds after the rank filter and before the window, keyed by P-ID. Explicitly requested absent properties and properties emptied by rank "best" count as 0. Lists a property paged past its end too. Reported in both modes. | |
| redirectedFrom | No | The normalized requested ID when it redirects to id. | |
| statementCount | No | Statements across every property in the selection, after the rank filter and before the limit/offset window and any overflow, so it reports the full volume the rank keeps in both modes. | |
| retrieval_notice | No | Present when kind = outline: how to re-call for specific properties. |