Skip to main content
Glama
ShadowGraph

ShadowGraph

Official

shadowgraph_recall

Rank scoped memories and records by lexical, vector, graph, and temporal signals, with optional point-in-time filtering, to return relevant items for a query.

Instructions

Rank relevant scoped memory and records by lexical, vector, graph and temporal signals. shadowgraph_search requires every term; shadowgraph_retrieve adds neighbours; shadowgraph_context prepares a working set. Own-scope read saves nothing; an access key commits a revision and bounded audit. Returns scores and available signals; no provider/vector means no semantic ranking. Omitted memory scope fields select null, not any user/run.

Input Schema

NameRequiredDescriptionDefault
asOfNoISO 8601 instant to select by valid time, returning what was true then rather than now. Also enables temporal ranking.
limitNoMaximum items to return, 1-1000; the default is 50 and completeness.limitSource reports which applied. Out of range is rejected, never silently clamped.
queryNoFree text to rank against. An empty query still returns scope-matching records ranked by the remaining signals.
scopeNoScope selector. Omitted or partial fields mean explicit nulls, not "any": identity is the exact (project, userId, agentId, runId, memoryType, key) tuple, so a run-scoped memory never leaks into a user-only read.
offsetNoItems to skip before this window. Ordering is total and deterministic, so paging cannot drop or duplicate an item.
focalIdNoEntity id to measure graph distance from. Without it the graph signal reports available:false.
grantIdNoAlias for accessId; conflicting identifiers are refused.
projectNoProject or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view.
accessIdNoGrant ID, rechecked at use. Widens reads only, never write authority. Presenting an access key commits a revision and bounded operational audit: at most one aggregate per grant, surface, outcome and UTC day. Conflicts with a different grantId are refused.
originIdNoCapture-origin id; with no project the record belongs to it alone.
memoryTypeNoRestrict memory candidates to this type.
preferRecentNoEnable temporal ranking against now. Ignored when asOf is supplied, which already selects a point in time.
queryEmbeddingNoCaller-supplied query vector. Omit to use the configured provider; with neither, the semantic signal reports available:false and a reason.
readProvenanceNoOriginal expansion bounds; cannot widen access.

Output Schema

NameRequiredDescriptionDefault
pageYesThe window actually applied to the matching items.
itemsYesThe items in this window, in deterministic order.
completenessYesDeclares exactly what this response left out, so a truncated result can never look complete.
readProvenanceNoOriginal read bounds; reuse intersects these with currently valid authority.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.42.4
    • changedOutput schema / properties / completeness / properties / capture / properties / gaps / items / properties / reason / enum
      Previous value: -[
      -  "maxQueueDepth",
      -  "maxStoreBytes",
      -  "maxItemsPerSession",
      -  "session_in_another_project",
      -  "raw_expired",
      -  "transcript_unrecognised",
      -  "session_left_project",
      -  "transcript_rewritten",
      -  "transcript_reanchored",
      -  "transcript_incomplete_at_end",
      -  "transcript_line_oversized",
      -  "tool_calls_not_captured"
      -]New value: +[
      +  "maxQueueDepth",
      +  "maxStoreBytes",
      +  "maxItemsPerSession",
      +  "session_in_another_project",
      +  "raw_expired",
      +  "prior_setup",
      +  "transcript_unrecognised",
      +  "session_left_project",
      +  "transcript_rewritten",
      +  "transcript_reanchored",
      +  "transcript_incomplete_at_end",
      +  "transcript_line_oversized",
      +  "tool_calls_not_captured"
      +]
    • addedOutput schema / properties / completeness / properties / capture / properties / priorSetup
      Added value: +{
      +  "description": "Unextracted items of no or an earlier setup; never extracted by the current one.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Changed1 schema field changedv0.42.2
    • changedInput schema / properties / accessId / description
      Previous value: -"Grant ID, rechecked at use."New value: +"Grant ID, rechecked at use. Widens reads only, never write authority. Presenting an access key commits a revision and bounded operational audit: at most one aggregate per grant, surface, outcome and UTC day. Conflicts with a different grantId are refused."
  3. Changed17 schema fields changedv0.42.1
    • addedInput schema / properties / accessId
      Added value: +{
      +  "description": "Grant ID, rechecked at use.",
      +  "type": "string"
      +}
    • addedInput schema / properties / grantId
      Added value: +{
      +  "description": "Alias for accessId; conflicting identifiers are refused.",
      +  "type": "string"
      +}
    • addedInput schema / properties / originId
      Added value: +{
      +  "description": "Capture-origin id; with no project the record belongs to it alone.",
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project to recall from. Defaults to \"default\" for memory records rather than meaning all projects."New value: +"Project or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view."
    • addedInput schema / properties / readProvenance
      Added value: +{
      +  "description": "Original expansion bounds; cannot widen access.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / completeness / properties / capture
      Added value: +{
      +  "description": "Scoped unprocessed capture, when present.",
      +  "properties": {
      +    "blocked": {
      +      "description": "Items blocked.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "expired": {
      +      "description": "Raw expired before extraction; a gap, not backlog.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "extractionAvailable": {
      +      "description": "Whether extraction runs.",
      +      "type": "boolean"
      +    },
      +    "failed": {
      +      "description": "Items failed.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "gaps": {
      +      "description": "Capture refusal/unread gaps; no identities.",
      +      "items": {
      +        "properties": {
      +          "from": {
      +            "description": "Gap start time.",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Why capture has a gap.",
      +            "enum": [
      +              "maxQueueDepth",
      +              "maxStoreBytes",
      +              "maxItemsPerSession",
      +              "session_in_another_project",
      +              "raw_expired",
      +              "transcript_unrecognised",
      +              "session_left_project",
      +              "transcript_rewritten",
      +              "transcript_reanchored",
      +              "transcript_incomplete_at_end",
      +              "transcript_line_oversized",
      +              "tool_calls_not_captured"
      +            ],
      +            "type": "string"
      +          },
      +          "sessions": {
      +            "description": "Sessions covered by this gap.",
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "to": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "End time, if known."
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "from",
      +          "to"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "limited": {
      +      "description": "Admission limits; accepted items kept.",
      +      "items": {
      +        "properties": {
      +          "ceiling": {
      +            "description": "The limit value.",
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "limit": {
      +            "description": "The limit reached.",
      +            "enum": [
      +              "maxQueueDepth",
      +              "maxStoreBytes"
      +            ],
      +            "type": "string"
      +          },
      +          "since": {
      +            "description": "When refusal began.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "limit",
      +          "ceiling",
      +          "since"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "oldestPendingAt": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Oldest pending capture."
      +    },
      +    "pending": {
      +      "description": "Items waiting.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "processing": {
      +      "description": "Items claimed.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "workerErrors": {
      +      "description": "Scoped worker stops; fixed codes.",
      +      "items": {
      +        "properties": {
      +          "at": {
      +            "description": "Stop timestamp.",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Worker stop code.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "at"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "pending",
      +    "processing",
      +    "failed",
      +    "blocked",
      +    "oldestPendingAt",
      +    "extractionAvailable",
      +    "limited",
      +    "gaps"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / completeness / properties / complete / description
      Previous value: -"True only when every matching item is present."New value: +"Known-candidate coverage; false for unresolved scope, withheld detail or pending capture; not recall."
    • addedOutput schema / properties / completeness / properties / limitation
      Added value: +{
      +  "description": "Limits of this view.",
      +  "properties": {
      +    "code": {
      +      "description": "Stable limitation code.",
      +      "type": "string"
      +    },
      +    "detail": {
      +      "description": "What this view cannot establish.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "detail"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / completeness / properties / losslessItems / description
      Previous value: -"Always true: each returned item is a full-fidelity record, never a summary or a truncated field."New value: +"False when returned items have withheld or transformed detail."
    • addedOutput schema / properties / completeness / properties / quarantined
      Added value: +{
      +  "description": "Items withheld as possibly purged.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / completeness / properties / scope / description
      Previous value: -"The project, query, and structured filters that produced this result, so it explains its own derivation."New value: +"The resolved read boundary."
    • addedOutput schema / properties / completeness / properties / scope / properties
      Added value: +{
      +  "grant": {
      +    "anyOf": [
      +      {
      +        "type": "null"
      +      },
      +      {
      +        "properties": {
      +          "accessId": {
      +            "description": "The currently rechecked grant identifier.",
      +            "type": "string"
      +          },
      +          "expiresAt": {
      +            "description": "Earliest effective expiry of this read authority.",
      +            "type": "string"
      +          },
      +          "surface": {
      +            "description": "Actual runtime surface of this read.",
      +            "enum": [
      +              "cli",
      +              "mcp",
      +              "http"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "accessId",
      +          "expiresAt",
      +          "surface"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "description": "Effective rechecked grant, or null."
      +  },
      +  "originPresented": {
      +    "description": "Usable origin presented; not project selection.",
      +    "type": "boolean"
      +  },
      +  "project": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Resolved project, or null."
      +  },
      +  "requestState": {
      +    "description": "Whether a project was resolved.",
      +    "enum": [
      +      "project_selected",
      +      "project_unresolved"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / completeness / properties / scope / required
      Added value: +[
      +  "project",
      +  "requestState",
      +  "originPresented",
      +  "grant"
      +]
    • addedOutput schema / properties / completeness / properties / signals / properties / semantic / properties / indexed
      Added value: +{
      +  "description": "Candidates carrying a stored vector, with or without a query vector.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / completeness / properties / signals / properties / semantic / required
      Previous value: -[
      -  "available",
      -  "matched",
      -  "reason"
      -]New value: +[
      +  "available",
      +  "matched",
      +  "indexed",
      +  "reason"
      +]
    • changedOutput schema / properties / items / items / properties / record / properties / project / description
      Previous value: -"Project namespace; records imported from a schema that predates projects may carry null."New value: +"Project namespace; null for an unattributed record or one imported from before projects."
    • addedOutput schema / properties / readProvenance
      Added value: +{
      +  "description": "Original read bounds; reuse intersects these with currently valid authority.",
      +  "properties": {
      +    "accessId": {
      +      "description": "Original grant, revalidated on every reuse.",
      +      "type": "string"
      +    },
      +    "expiresAt": {
      +      "description": "Original effective expiry; reuse cannot extend it.",
      +      "type": "string"
      +    },
      +    "request": {
      +      "description": "Original request ownership, preserved during expansion.",
      +      "properties": {
      +        "originId": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Original capture origin, or null when absent."
      +        },
      +        "project": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Original resolved project, or null when unresolved."
      +        }
      +      },
      +      "required": [
      +        "project",
      +        "originId"
      +      ],
      +      "type": "object"
      +    },
      +    "scope": {
      +      "description": "Finite explicit owner bounds; project names, origins and legacy attribution are disjoint.",
      +      "properties": {
      +        "legacyAttributions": {
      +          "description": "Explicit legacy ownership classes; neither is a named project.",
      +          "items": {
      +            "enum": [
      +              "legacy_ambiguous",
      +              "legacy_unattributed"
      +            ],
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "originIds": {
      +          "description": "Exact nonempty origin identifiers for unattributed content.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "projects": {
      +          "description": "Exact named projects, including a real project named default if requested.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "surfaces": {
      +      "description": "Original permitted surfaces; reuse can only narrow them.",
      +      "items": {
      +        "enum": [
      +          "cli",
      +          "mcp",
      +          "http"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "version": {
      +      "const": 1,
      +      "description": "Version of this bounded read provenance.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "version",
      +    "request",
      +    "accessId",
      +    "scope",
      +    "surfaces",
      +    "expiresAt"
      +  ],
      +  "type": "object"
      +}
  4. Changed14 schema fields changedv0.40.1
    • addedInput schema / properties / asOf / description
      Added value: +"ISO 8601 instant to select by valid time, returning what was true then rather than now. Also enables temporal ranking."
    • addedInput schema / properties / focalId / description
      Added value: +"Entity id to measure graph distance from. Without it the graph signal reports available:false."
    • changedInput schema / properties / limit / description
      Previous value: -"Page size. Omitted means a declared default, never silent truncation."New value: +"Maximum items to return, 1-1000; the default is 50 and completeness.limitSource reports which applied. Out of range is rejected, never silently clamped."
    • addedInput schema / properties / memoryType / description
      Added value: +"Restrict memory candidates to this type."
    • changedInput schema / properties / offset / description
      Previous value: -"Page offset."New value: +"Items to skip before this window. Ordering is total and deterministic, so paging cannot drop or duplicate an item."
    • addedInput schema / properties / preferRecent / description
      Added value: +"Enable temporal ranking against now. Ignored when asOf is supplied, which already selects a point in time."
    • addedInput schema / properties / project / description
      Added value: +"Project to recall from. Defaults to \"default\" for memory records rather than meaning all projects."
    • addedInput schema / properties / query / description
      Added value: +"Free text to rank against. An empty query still returns scope-matching records ranked by the remaining signals."
    • changedInput schema / properties / queryEmbedding / description
      Previous value: -"Optional caller-supplied vector. When omitted, the configured embedding provider is used."New value: +"Caller-supplied query vector. Omit to use the configured provider; with neither, the semantic signal reports available:false and a reason."
    • addedInput schema / properties / scope / description
      Added value: +"Scope selector. Omitted or partial fields mean explicit nulls, not \"any\": identity is the exact (project, userId, agentId, runId, memoryType, key) tuple, so a run-scoped memory never leaks into a user-only read."
    • addedInput schema / properties / scope / properties / agentId / description
      Added value: +"Agent this memory belongs to, or null for none."
    • addedInput schema / properties / scope / properties / runId / description
      Added value: +"Single run or task this memory belongs to, or null for none."
    • addedInput schema / properties / scope / properties / userId / description
      Added value: +"Person this memory belongs to, or null for none."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Fused results with a per-signal explanation of how they were ranked.",
      +  "properties": {
      +    "completeness": {
      +      "description": "Declares exactly what this response left out, so a truncated result can never look complete.",
      +      "properties": {
      +        "complete": {
      +          "description": "True only when every matching item is present.",
      +          "type": "boolean"
      +        },
      +        "limitSource": {
      +          "description": "Whose choice bounded the result.",
      +          "enum": [
      +            "caller",
      +            "default"
      +          ],
      +          "type": "string"
      +        },
      +        "losslessItems": {
      +          "description": "Always true: each returned item is a full-fidelity record, never a summary or a truncated field.",
      +          "type": "boolean"
      +        },
      +        "omitted": {
      +          "description": "total minus returned.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "ranking": {
      +          "description": "How the per-signal lists were fused.",
      +          "properties": {
      +            "k": {
      +              "description": "Reciprocal rank fusion constant.",
      +              "type": "number"
      +            },
      +            "strategy": {
      +              "description": "Fusion strategy identifier, currently weighted_rrf.",
      +              "type": "string"
      +            },
      +            "weights": {
      +              "description": "Per-signal weights applied during fusion.",
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "strategy",
      +            "k",
      +            "weights"
      +          ],
      +          "type": "object"
      +        },
      +        "returned": {
      +          "description": "Items in this response.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "scope": {
      +          "description": "The project, query, and structured filters that produced this result, so it explains its own derivation.",
      +          "type": "object"
      +        },
      +        "signals": {
      +          "description": "Authoritative per-signal availability. A signal that could not run says so instead of being silently dropped or renamed.",
      +          "properties": {
      +            "graph": {
      +              "description": "Graph-distance ranking from focalId.",
      +              "properties": {
      +                "available": {
      +                  "description": "Whether this signal could contribute at all.",
      +                  "type": "boolean"
      +                },
      +                "matched": {
      +                  "description": "Candidates this signal contributed.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "reason": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "Why the signal was unavailable, when it was."
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "matched",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            "lexical": {
      +              "description": "BM25-style lexical matching over declared content.",
      +              "properties": {
      +                "available": {
      +                  "description": "True when the query contained terms.",
      +                  "type": "boolean"
      +                },
      +                "matched": {
      +                  "description": "Candidates the lexical list contributed.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "terms": {
      +                  "description": "The query terms that were used.",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "matched",
      +                "terms"
      +              ],
      +              "type": "object"
      +            },
      +            "semantic": {
      +              "description": "Cosine vector matching. available is false when no compatible query vector or provider existed; the result is then lexical, graph, and temporal only.",
      +              "properties": {
      +                "available": {
      +                  "description": "Whether this signal could contribute at all.",
      +                  "type": "boolean"
      +                },
      +                "matched": {
      +                  "description": "Candidates this signal contributed.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "reason": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "Why the signal was unavailable, when it was."
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "matched",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            "temporal": {
      +              "description": "Recency ranking from asOf or preferRecent.",
      +              "properties": {
      +                "asOf": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "The point in time selection was made against, or null for now."
      +                },
      +                "available": {
      +                  "description": "Whether recency ranking ran.",
      +                  "type": "boolean"
      +                },
      +                "matched": {
      +                  "description": "Candidates the temporal list contributed.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "reason": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "Why recency ranking did not run, when it did not."
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "matched",
      +                "reason",
      +                "asOf"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "lexical",
      +            "semantic",
      +            "graph",
      +            "temporal"
      +          ],
      +          "type": "object"
      +        },
      +        "total": {
      +          "description": "Items that matched in total.",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "scope",
      +        "returned",
      +        "total",
      +        "complete",
      +        "omitted",
      +        "losslessItems",
      +        "limitSource",
      +        "signals",
      +        "ranking"
      +      ],
      +      "type": "object"
      +    },
      +    "items": {
      +      "description": "The items in this window, in deterministic order.",
      +      "items": {
      +        "description": "One recalled record with its per-signal explanation.",
      +        "properties": {
      +          "ranks": {
      +            "description": "Position this item held in each signal list, counting from 1, or null where that signal did not rank it.",
      +            "properties": {
      +              "graph": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Position in the graph-distance list; null when no focalId was supplied."
      +              },
      +              "lexical": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Position in the BM25-style lexical list."
      +              },
      +              "semantic": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Position in the vector list; null when no compatible query vector or provider existed."
      +              },
      +              "temporal": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Position in the recency list; null when neither asOf nor preferRecent was supplied."
      +              }
      +            },
      +            "required": [
      +              "lexical",
      +              "semantic",
      +              "graph",
      +              "temporal"
      +            ],
      +            "type": "object"
      +          },
      +          "reasons": {
      +            "description": "One entry per contributing signal, naming the rank it contributed.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "record": {
      +            "description": "One stored entity: a decision, attempt, memory, fact, or alternative. Fields vary by kind, and an entity imported from an older schema may carry fewer of them.",
      +            "properties": {
      +              "actor": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Who performed the write."
      +              },
      +              "client": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Which client performed the write."
      +              },
      +              "createdAt": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "ISO 8601 creation time."
      +              },
      +              "id": {
      +                "description": "Stable entity identifier.",
      +                "type": "string"
      +              },
      +              "kind": {
      +                "description": "Entity kind: decision, attempt, memory, fact, relation, review, or alternative.",
      +                "type": "string"
      +              },
      +              "project": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Project namespace; records imported from a schema that predates projects may carry null."
      +              },
      +              "schemaVersion": {
      +                "description": "Storage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded.",
      +                "type": "integer"
      +              },
      +              "sessionId": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Session identifier recorded with the write."
      +              },
      +              "sourceClass": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Claimed origin class recorded with the write. A claim, never proof."
      +              },
      +              "sourceRaw": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "The original origin label when it differed from sourceClass. Audit only; never evidence."
      +              },
      +              "updatedAt": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "ISO 8601 time of the last change."
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "score": {
      +            "description": "Fused score.",
      +            "type": "number"
      +          },
      +          "scores": {
      +            "description": "The raw value behind each rank, or null where that signal did not rank this item.",
      +            "properties": {
      +              "graph": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Hop distance from focalId."
      +              },
      +              "lexical": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "BM25-style lexical score."
      +              },
      +              "semantic": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Cosine similarity between the query vector and the stored vector."
      +              },
      +              "temporal": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "The ISO 8601 validFrom or recordedAt instant recency ordering used, not a number."
      +              }
      +            },
      +            "required": [
      +              "lexical",
      +              "semantic",
      +              "graph",
      +              "temporal"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "record",
      +          "score",
      +          "ranks",
      +          "scores",
      +          "reasons"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "page": {
      +      "description": "The window actually applied to the matching items.",
      +      "properties": {
      +        "hasMore": {
      +          "description": "True when matching items exist beyond this window.",
      +          "type": "boolean"
      +        },
      +        "limit": {
      +          "description": "Window size applied, whether the caller set it or the default did.",
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "offset": {
      +          "description": "Index of the first item returned.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "total": {
      +          "description": "Matching items before the window was applied.",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "offset",
      +        "limit",
      +        "total",
      +        "hasMore"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "items",
      +    "page",
      +    "completeness"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.40.0

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Despite the read-oriented name, it discloses that an access key commits a revision and a bounded audit (at most one aggregate per grant, surface, outcome and UTC day), and that an own-scope read persists nothing — which explains why the supplied readOnlyHint is false rather than contradicting it. It also discloses degraded behavior (no provider/vector means no semantic ranking) and the exact-match scope semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The ranking purpose and sibling differentiation are front-loaded, then behavioral caveats follow in short clauses. It is dense but nearly every clause carries operational information; a small amount of the scope sentence duplicates schema text and could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter tool with a nested scope object and an output schema, the description covers the non-obvious risks: audit/revision side effects, scope null semantics, and signal availability. The phrase 'own-scope read saves nothing' is terse and the notion of an access key is only implied rather than explained, leaving a small gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 14 parameters, including the null-vs-any scope rule and the limit/grantId conflict handling; the description largely restates the scope default. It adds one piece of genuine meaning beyond the schema — that absent provider and queryEmbedding cause the semantic signal to report unavailable — but that is a modest increment.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — ranking scoped memory and records by lexical, vector, graph and temporal signals — and names three siblings (search, retrieve, context) with the trait that separates each. An agent can distinguish shadowgraph_recall from those siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear comparative context: search requires every term, retrieve adds neighbours, context prepares a working set, implying recall is the ranked multi-signal option. It does not state an explicit negative case (when not to use recall) or prerequisites for obtaining an access key, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.