Get Wikidata Labels
wikidata_get_labelsResolve QIDs or PIDs to their human-readable labels and descriptions, with no claim data. Resolves up to 500 distinct IDs per call, batched automatically; distinct IDs past the first 500 come back in deferredIds to send in a follow-up call. Accepts bare IDs (Q76), entity URIs (http://www.wikidata.org/entity/Q76), and wd:Q76 — the forms wikidata_sparql_query returns — so its results can be humanized as they are.
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": {
"ids": "<ids>"
},
"name": "wikidata_get_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Q-IDs (e.g., "Q76") or P-IDs (e.g., "P31") to resolve, bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). Up to 10,000 entries; duplicates count once, the first 500 distinct IDs resolve, and the rest come back in deferredIds. A malformed entry is returned in invalid without failing the call. | |
| languages | No | Wikidata language codes for returned labels and descriptions (e.g., ["en", "de", "fr"]), up to 50. Case-insensitive; "_" is read as "-"; blank entries are dropped, and an empty list means ["en"]. A language with no label of its own falls back to the entity's multilingual ("mul") value, returned under the requested code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| found | No | Count of IDs that returned data. | |
| notice | No | Explains deferred IDs or which requested language codes Wikidata did not recognize. | |
| invalid | No | Entries that are not a Q-ID or P-ID in any accepted form, echoed as sent and never looked up. Absent when every entry is well-formed. | |
| entities | No | Map of entity ID to labels and descriptions. IDs that were not found are absent. | |
| notFound | No | Well-formed IDs that were looked up and returned no entity (unassigned or out of range), each once. | |
| languages | No | The language codes that were requested. | |
| deferredIds | No | Distinct IDs past the first 500, in input order, not looked up in this call — send them in another call. Absent when every ID fit. | |
| unrecognizedLanguages | No | Requested codes Wikidata does not recognize for labels and descriptions. |