resolve_entity
Map an entity to a per-source identifier or reverse-map Wikidata and Data Commons anchors to the matching entity.
Instructions
Resolve an entity <-> per-source identifier, in either direction.
Forward (entity -> identifier), the default: resolve_entity(entity_type="country", entity_id=1, source="worldbank") -> {"identifier": "CN"} (or null when that source has no mapping)
Reverse (external anchor -> entity), pass identifier instead of the
entity: wikidata (QID, e.g. Q148) and datacommons (DCID, e.g.
country/CHN) are the anchor sources.
resolve_entity(source="wikidata", identifier="Q148")
-> {"match": {"entity_type": "country", "code": "CN", ...}}
An identifier no entity carries returns {"match": null}, not an error.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "resolve_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| entity_id | No | ||
| identifier | No | ||
| entity_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||