KG Query Entity
localnest_kg_queryQuery all relationships for an entity in the knowledge graph, with optional direction filtering (outgoing, incoming, or both).
Instructions
Query all relationships for an entity in the knowledge graph with optional direction filtering (outgoing, incoming, or both).
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_id": "<entity_id>"
},
"name": "localnest_kg_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| direction | No | both | |
| include_invalid | No | ||
| response_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |