graph_context
Build a compact context pack centered on a specific entity, including its graph neighbors and linked memories, within a character budget. Use to provide an agent with focused context about one entity.
Instructions
Build a compact, prompt-ready context pack centered on an entity: the entity, its graph neighbors, and the most relevant linked memories, budgeted to a character limit. Read-only. Use when an agent needs ready-to-inject context about one specific entity; use pack for query-driven context, or graph_neighbors for raw graph edges.
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_key": "<entity_key>"
},
"name": "graph_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Number of relationship hops to include. Default 1. | |
| max_chars | No | Character budget for the assembled pack. Default 4000. | |
| max_edges | No | Maximum relationships to include. Default 50. | |
| entity_key | Yes | Entity key the context pack is centered on. Required. | |
| max_memories | No | Maximum linked memories to include. Default 10. | |
| include_source | No | If true, reveal provenance/source metadata. Default false. |