Skip to main content
Run a vector query against an explicit semantic layer. Like recall, but you choose the layer instead of defaulting to L0. The server embeds the query text and returns scored node ids, nearest first. Dispatches to the 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.
  • L1 and L2 — consolidated, promoted knowledge.
Higher layers hold fewer, more durable nodes that the system promotes from L0 over time. Use query with L1 or L2 when you want consolidated knowledge rather than every raw cell. See The HNSW mesh and Layer promotion.

Parameters

Returns

Returned as the 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:
Response:

Annotations

The tool’s MCP behaviour hints, as emitted in tools/list (advisory display metadata — see the annotations contract): A pure read against the chosen layer — writes nothing.