query internal service method.
recall versus query
recall always searches layer L0 — the raw cells you stored.query lets you target a specific layer:
L0— raw stored cells.L1andL2— consolidated, promoted knowledge.
query with L1 or L2 when you want consolidated knowledge rather than every raw cell. See The HNSW mesh and Layer promotion.
Parameters
Returns
structuredContent payload, nearest first.
Over MCP,
query returns only {node_id, distance} pairs — not hydrated cell content. To read a cell’s content, use a hydrating surface such as the REST API, which returns full nodes.Example
Request:Annotations
The tool’s MCP behaviour hints, as emitted intools/list (advisory display metadata — see the annotations contract):
A pure read against the chosen layer — writes nothing.
Related
- recall for the L0 shortcut.
- Layer promotion for how L1/L2 are built.