Skip to main content
Glama
ShadowGraph

ShadowGraph

Official

shadowgraph_retrieve

Retrieve seed records matching every query term plus their ordered graph neighbours, including Arabic stem forms, for graph-aware memory lookup.

Instructions

Retrieve seed records matching every query term plus their ordered graph neighbours. Queries match Arabic stem forms. Use shadowgraph_search for flat keyword hits without graph neighbours, or shadowgraph_recall when ranking memories (shadowgraph_recall ranks by vector). Own-scope read saves nothing; an access key commits a revision and audit. Every term must match a seed; neighbours need not match, and matchMode allows 3+ terms fallback on seeds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "shadowgraph_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoRestrict results to decisions, attempts, or facts. A structured filter, never a content match.
limitNoMaximum items to return, 1-1000; the default is 50 and completeness.limitSource reports which applied. Out of range is rejected, never silently clamped.
queryNoWhitespace-separated terms matched against the declared content fields (title, goal, chosen, assumption, evidence, alternative, attempt task, attempt solution, attempt result, attempt reason, environment, tags, changeSummary, outcome lessons, fact key, fact value), exactly as in shadowgraph_search. Omit to retrieve by filters alone.
offsetNoItems to skip before this window. Ordering is total and deterministic, so paging cannot drop or duplicate an item.
statusNoReturn only decisions in this lifecycle state. A structured filter, so matching it is never counted as a content match.
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 it commits a revision and bounded audit (at most one aggregate per grant, surface, outcome and UTC day). Conflicts with grantId are refused.
originIdNoCapture-origin ID for unattributed records when project is omitted.
matchModeNoTerm matching strategy: all (default, require every term), partial (allow term subset with 3+ terms), or any.
minConfidenceNoReturn only decisions whose current confidence is at least this value, 0-1. A structured filter, never a content match.
expandSynonymsNoExpand query terms with bilingual English and Arabic synonyms and morphological variants.
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. Changed3 schema fields changedv0.44.7
    • changedInput schema / properties / kind / description
      Previous value: -"Restrict results to decisions or to attempts. A structured filter, never a content match."New value: +"Restrict results to decisions, attempts, or facts. A structured filter, never a content match."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "decision",
      -  "attempt"
      -]New value: +[
      +  "decision",
      +  "attempt",
      +  "fact"
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Whitespace-separated terms matched against the declared content fields (title, goal, chosen, assumption, evidence, alternative, attempt solution, attempt result, attempt reason, environment), exactly as in shadowgraph_search. Omit to retrieve by filters alone."New value: +"Whitespace-separated terms matched against the declared content fields (title, goal, chosen, assumption, evidence, alternative, attempt task, attempt solution, attempt result, attempt reason, environment, tags, changeSummary, outcome lessons, fact key, fact value), exactly as in shadowgraph_search. Omit to retrieve by filters alone."
  2. Changed5 schema fields changedv0.44.1
    • addedInput schema / properties / expandSynonyms
      Added value: +{
      +  "description": "Expand query terms with bilingual English and Arabic synonyms and morphological variants.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / matchMode
      Added value: +{
      +  "description": "Term matching strategy: all (default, require every term), partial (allow term subset with 3+ terms), or any.",
      +  "enum": [
      +    "all",
      +    "partial",
      +    "any"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / matchedTermCount
      Added value: +{
      +  "description": "Number of distinct query terms that matched content fields in this record.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / items / items / properties / partialMatch
      Added value: +{
      +  "description": "True when the record matched a subset of query terms rather than all terms.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / items / items / properties / totalQueryTerms
      Added value: +{
      +  "description": "Total number of search terms parsed from the query string.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Changed2 schema fields changedv0.43.6
    • changedInput schema / properties / accessId / description
      Previous 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."New value: +"Grant ID, rechecked at use. Widens reads only, never write authority. Presenting it commits a revision and bounded audit (at most one aggregate per grant, surface, outcome and UTC day). Conflicts with grantId are refused."
    • changedInput schema / properties / originId / description
      Previous value: -"Capture-origin id; with no project the record belongs to it alone."New value: +"Capture-origin ID for unattributed records when project is omitted."
  4. 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"
      +}
  5. 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."
  6. Changed15 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: -"Restrict to one project, including which neighbours may be pulled in."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"
      +]
    • 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"
      +}
  7. Changed8 schema fields changedv0.40.1
    • addedInput schema / properties / kind / description
      Added value: +"Restrict results to decisions or to attempts. A structured filter, never a content match."
    • 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 / minConfidence / description
      Added value: +"Return only decisions whose current confidence is at least this value, 0-1. A structured filter, never a content match."
    • 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 / project / description
      Added value: +"Restrict to one project, including which neighbours may be pulled in."
    • addedInput schema / properties / query / description
      Added value: +"Whitespace-separated terms matched against the declared content fields (title, goal, chosen, assumption, evidence, alternative, attempt solution, attempt result, attempt reason, environment), exactly as in shadowgraph_search. Omit to retrieve by filters alone."
    • addedInput schema / properties / status / description
      Added value: +"Return only decisions in this lifecycle state. A structured filter, so matching it is never counted as a content match."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Matching records plus their one-hop neighbours, with pagination and completeness.",
      +  "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"
      +        },
      +        "contentFields": {
      +          "description": "The declared content fields a query term could match.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "includesGraphNeighbours": {
      +          "description": "Always true: this result may contain items reached by relationship rather than by content.",
      +          "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"
      +        },
      +        "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"
      +        },
      +        "total": {
      +          "description": "Items that matched in total.",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "scope",
      +        "returned",
      +        "total",
      +        "complete",
      +        "omitted",
      +        "losslessItems",
      +        "limitSource",
      +        "contentFields",
      +        "includesGraphNeighbours"
      +      ],
      +      "type": "object"
      +    },
      +    "items": {
      +      "description": "The items in this window, in deterministic order.",
      +      "items": {
      +        "description": "One hit, which may be a content match or a one-hop graph neighbour.",
      +        "properties": {
      +          "filters": {
      +            "description": "The structured filters that were applied.",
      +            "type": "object"
      +          },
      +          "graphBoost": {
      +            "description": "1 for an item included as a graph neighbour, 0 for a direct content match.",
      +            "type": "number"
      +          },
      +          "matched": {
      +            "description": "The content fields that actually matched, never schema keys.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "matchedBy": {
      +            "description": "content when query terms matched, filter when only structured filters applied, graph when the item was pulled in as a neighbour.",
      +            "enum": [
      +              "content",
      +              "filter",
      +              "graph"
      +            ],
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Human-readable explanation built from matched, so it can never claim a match it cannot name.",
      +            "type": "string"
      +          },
      +          "reasons": {
      +            "description": "All reasons this item is present.",
      +            "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": "Relevance score; 0 when no query terms were supplied.",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "record",
      +          "score",
      +          "matched",
      +          "reason",
      +          "matchedBy",
      +          "filters",
      +          "graphBoost",
      +          "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"
      +}
  8. First observedv0.40.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, which would otherwise puzzle an agent calling a 'retrieve' tool; the description resolves this by stating that an own-scope read saves nothing while presenting an access key commits a revision and bounded audit. It also discloses the asymmetric matching rule (seeds must match every term, neighbours need not). It stops short of describing the returned envelope, but an output schema exists to carry that.

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?

Purpose and sibling routing are front-loaded and no sentence is filler. The final sentence is overloaded, packing the all-terms-on-seeds rule, the neighbour exemption, and the matchMode fallback into one line, which costs some readability.

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 13-parameter tool this covers the high-risk semantics: what matches, what doesn't, and the side effect of supplying an access key. With 100% schema coverage and an output schema, the remaining gaps (paging determinism, limit defaults, provenance bounds) are already documented structurally.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description nonetheless adds semantics the schema cannot: Arabic stem-form matching across terms and the seed-versus-neighbour match asymmetry. The access-key/grant conflict and audit-bound behaviour are echoed from the schema rather than newly explained, which keeps it from a 5.

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 opening sentence gives a specific verb-and-resource with its distinguishing behaviour: seed records matching every query term plus their ordered graph neighbours. It immediately separates itself from shadowgraph_search (flat keyword hits) and shadowgraph_recall (vector ranking), so an agent can choose 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 Guidelines5/5

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

It names both alternatives with the condition that selects each: shadowgraph_search for flat hits without neighbours, shadowgraph_recall when ranking memories. It adds a conditional rule for matchMode (partial fallback only at 3+ terms), which tells the agent when to relax matching rather than guess.

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