find_counterparts
Find nearest geopolitical or urban counterparts for a specified country or city using 1024-dimensional vector cosine distance, with optional filters and result limits.
Instructions
Find nearest geopolitical or urban counterparts to a specified country or city using 1024-dimensional pgvector cosine distance.
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": {
"entity_type": "<entity_type>",
"id": "<id>"
},
"name": "find_counterparts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the country or city | |
| limit | No | Number of nearest neighbors to return (default: 10) | |
| country_id | No | Optional country ID to filter counterpart candidates (for city counterparts) | |
| entity_type | Yes | Entity type to find counterparts for: country or city | |
| continent_id | No | Optional continent ID to filter counterpart candidates | |
| include_embedding | No | Whether to include raw 1024-float vector embeddings in results |