Skip to main content
Glama

search

Read-only

Find scoped memories by literal text or explicit filters across initiatives, then report which scopes matched and whether results are current.

Instructions

Find scoped memory using literal text or explicit filters; report currentness and matched scopes.

Input Schema

NameRequiredDescriptionDefault
textNo
limitNo
matchNoany
cursorNo
prefixNo
filtersNo
initiativesYes
budget_charsNo

Output Schema

NameRequiredDescriptionDefault
dataYes
stateYes
issuesYes
coverageNo
replayedYes
operationYes
request_idNo
api_versionYes
continuationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changedv0.8.0
    • addedInput schema / $defs
      Added value: +{
      +  "Filters": {
      +    "additionalProperties": false,
      +    "minProperties": 1,
      +    "properties": {
      +      "current": {
      +        "default": "preferred",
      +        "enum": [
      +          "preferred",
      +          "all"
      +        ],
      +        "type": "string"
      +      },
      +      "layers": {
      +        "items": {
      +          "$ref": "#/$defs/Layer"
      +        },
      +        "minItems": 1,
      +        "type": "array",
      +        "uniqueItems": true
      +      },
      +      "statuses": {
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array",
      +        "uniqueItems": true
      +      },
      +      "tags": {
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array",
      +        "uniqueItems": true
      +      },
      +      "tiers": {
      +        "items": {
      +          "$ref": "#/$defs/Tier"
      +        },
      +        "minItems": 1,
      +        "type": "array",
      +        "uniqueItems": true
      +      },
      +      "types": {
      +        "items": {
      +          "$ref": "#/$defs/NodeType"
      +        },
      +        "minItems": 1,
      +        "type": "array",
      +        "uniqueItems": true
      +      }
      +    },
      +    "required": [],
      +    "type": "object"
      +  },
      +  "Layer": {
      +    "enum": [
      +      "core",
      +      "hot",
      +      "warm",
      +      "cold",
      +      "frozen"
      +    ],
      +    "type": "string"
      +  },
      +  "NodeType": {
      +    "enum": [
      +      "task",
      +      "checklist",
      +      "roadmap",
      +      "experiment",
      +      "hypothesis",
      +      "scratch",
      +      "draft",
      +      "episode",
      +      "audit_event",
      +      "chain",
      +      "board",
      +      "idea",
      +      "outcome",
      +      "reference",
      +      "concept",
      +      "entity",
      +      "summary"
      +    ],
      +    "type": "string"
      +  },
      +  "Tier": {
      +    "enum": [
      +      "operational",
      +      "archival"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "allOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "budget_chars": {
      +            "default": 8000,
      +            "maximum": 64000,
      +            "minimum": 512,
      +            "type": "integer"
      +          },
      +          "cursor": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "filters": {
      +            "$ref": "#/$defs/Filters"
      +          },
      +          "initiatives": {
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array",
      +            "uniqueItems": true
      +          },
      +          "limit": {
      +            "default": 10,
      +            "maximum": 50,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "match": {
      +            "default": "any",
      +            "enum": [
      +              "any",
      +              "all"
      +            ],
      +            "type": "string"
      +          },
      +          "prefix": {
      +            "default": false,
      +            "type": "boolean"
      +          },
      +          "text": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "initiatives",
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "required": [
      +          "text"
      +        ]
      +      }
      +    ]
      +  },
      +  {
      +    "allOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "budget_chars": {
      +            "default": 8000,
      +            "maximum": 64000,
      +            "minimum": 512,
      +            "type": "integer"
      +          },
      +          "cursor": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "filters": {
      +            "$ref": "#/$defs/Filters"
      +          },
      +          "initiatives": {
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array",
      +            "uniqueItems": true
      +          },
      +          "limit": {
      +            "default": 10,
      +            "maximum": 50,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "match": {
      +            "default": "any",
      +            "enum": [
      +              "any",
      +              "all"
      +            ],
      +            "type": "string"
      +          },
      +          "prefix": {
      +            "default": false,
      +            "type": "boolean"
      +          },
      +          "text": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "initiatives",
      +          "filters"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "required": [
      +          "filters"
      +        ]
      +      }
      +    ]
      +  }
      +]
    • addedInput schema / properties / budget_chars
      Added value: +{
      +  "default": 8000,
      +  "maximum": 64000,
      +  "minimum": 512,
      +  "type": "integer"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / filters
      Added value: +{
      +  "$ref": "#/$defs/Filters"
      +}
    • removedInput schema / properties / initiative
      Removed value: -{
      -  "default": null,
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • addedInput schema / properties / initiatives
      Added value: +{
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • removedInput schema / properties / limit / description
      Removed value: -"Maximum results. Capped at 50 internally."
    • removedInput schema / properties / limit / format
      Removed value: -"uint"
    • addedInput schema / properties / limit / maximum
      Added value: +50
    • changedInput schema / properties / limit / minimum
      Previous value: -0New value: +1
    • addedInput schema / properties / match
      Added value: +{
      +  "default": "any",
      +  "enum": [
      +    "any",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / prefix
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • removedInput schema / properties / query
      Removed value: -{
      -  "description": "Cozo FTS query (`AND`/`OR`/`NOT`, `\"phrase\"`, `prefix*`).",
      -  "type": "string"
      -}
    • addedInput schema / properties / text
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "query"
      -]New value: +[
      +  "initiatives"
      +]
    • removedInput schema / title
      Removed value: -"SearchParams"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "AmgOmission": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "count": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "reason": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "reason",
      +        "count"
      +      ],
      +      "type": "object"
      +    },
      +    "ArchiveFormat": {
      +      "enum": [
      +        "markdown",
      +        "amg"
      +      ],
      +      "type": "string"
      +    },
      +    "Artifact": {
      +      "properties": {
      +        "bytes": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "edges": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "format": {
      +          "$ref": "#/$defs/ArchiveFormat"
      +        },
      +        "initiatives": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "nodes": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "omissions": {
      +          "items": {
      +            "$ref": "#/$defs/AmgOmission"
      +          },
      +          "type": "array"
      +        },
      +        "path": {
      +          "type": "string"
      +        },
      +        "sha256": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "path",
      +        "format",
      +        "bytes",
      +        "sha256",
      +        "initiatives",
      +        "omissions",
      +        "nodes",
      +        "edges"
      +      ],
      +      "type": "object"
      +    },
      +    "Change": {
      +      "properties": {
      +        "after": true,
      +        "before": true,
      +        "field": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "field",
      +        "before",
      +        "after"
      +      ],
      +      "type": "object"
      +    },
      +    "ContentRange": {
      +      "properties": {
      +        "end": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "start": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "total": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "start",
      +        "end",
      +        "total"
      +      ],
      +      "type": "object"
      +    },
      +    "Continuation": {
      +      "properties": {
      +        "cursor": {
      +          "type": "string"
      +        },
      +        "next_arguments": true
      +      },
      +      "required": [
      +        "cursor",
      +        "next_arguments"
      +      ],
      +      "type": "object"
      +    },
      +    "Coverage": {
      +      "properties": {
      +        "complete": {
      +          "type": "boolean"
      +        },
      +        "initiatives": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "omitted": {
      +          "items": {
      +            "$ref": "#/$defs/Omission"
      +          },
      +          "type": "array"
      +        },
      +        "rules_complete": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "initiatives",
      +        "complete",
      +        "rules_complete",
      +        "omitted"
      +      ],
      +      "type": "object"
      +    },
      +    "Entity": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "revision": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "revision"
      +      ],
      +      "type": "object"
      +    },
      +    "EvidenceResult": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "relation": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "relation"
      +      ],
      +      "type": "object"
      +    },
      +    "FailedStep": {
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "step": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "step",
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "Issue": {
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "field": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "retryable": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message",
      +        "retryable"
      +      ],
      +      "type": "object"
      +    },
      +    "MutationData": {
      +      "properties": {
      +        "affected": {
      +          "items": {
      +            "$ref": "#/$defs/Entity"
      +          },
      +          "type": "array"
      +        },
      +        "artifacts": {
      +          "items": {
      +            "$ref": "#/$defs/Artifact"
      +          },
      +          "type": "array"
      +        },
      +        "changes": {
      +          "items": {
      +            "$ref": "#/$defs/Change"
      +          },
      +          "type": "array"
      +        },
      +        "created": {
      +          "items": {
      +            "$ref": "#/$defs/Entity"
      +          },
      +          "type": "array"
      +        },
      +        "evidence": {
      +          "items": {
      +            "$ref": "#/$defs/EvidenceResult"
      +          },
      +          "type": "array"
      +        },
      +        "failed_steps": {
      +          "items": {
      +            "$ref": "#/$defs/FailedStep"
      +          },
      +          "type": "array"
      +        },
      +        "primary": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Entity"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "slots": {
      +          "items": {
      +            "$ref": "#/$defs/SlotChange"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "created",
      +        "affected",
      +        "changes",
      +        "evidence",
      +        "failed_steps",
      +        "slots",
      +        "artifacts"
      +      ],
      +      "type": "object"
      +    },
      +    "NodeData": {
      +      "properties": {
      +        "body": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "body_range": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/ContentRange"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "created_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "currentness": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "initiatives": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "layer": {
      +          "type": "string"
      +        },
      +        "metadata_is_current": {
      +          "type": "boolean"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "node_type": {
      +          "type": "string"
      +        },
      +        "properties": true,
      +        "recorded_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "revision": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "successors": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "tags": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "tier": {
      +          "type": "string"
      +        },
      +        "visibility": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "initiatives",
      +        "id",
      +        "revision",
      +        "node_type",
      +        "tier",
      +        "name",
      +        "tags",
      +        "layer",
      +        "visibility",
      +        "currentness",
      +        "successors",
      +        "metadata_is_current"
      +      ],
      +      "type": "object"
      +    },
      +    "Omission": {
      +      "properties": {
      +        "count": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "section": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "section",
      +        "count",
      +        "reason"
      +      ],
      +      "type": "object"
      +    },
      +    "SearchData": {
      +      "properties": {
      +        "hits": {
      +          "items": {
      +            "$ref": "#/$defs/NodeData"
      +          },
      +          "type": "array"
      +        },
      +        "total": {
      +          "format": "uint",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "hits",
      +        "total"
      +      ],
      +      "type": "object"
      +    },
      +    "SlotChange": {
      +      "properties": {
      +        "after": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "before": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "revision": {
      +          "type": "string"
      +        },
      +        "slot": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "slot",
      +        "revision"
      +      ],
      +      "type": "object"
      +    },
      +    "State": {
      +      "enum": [
      +        "ok",
      +        "applied",
      +        "unchanged",
      +        "partial",
      +        "rejected"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "properties": {
      +    "api_version": {
      +      "const": 1,
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "continuation": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/Continuation"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "coverage": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/Coverage"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "data": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/SearchData"
      +        },
      +        {
      +          "$ref": "#/$defs/MutationData"
      +        }
      +      ]
      +    },
      +    "issues": {
      +      "items": {
      +        "$ref": "#/$defs/Issue"
      +      },
      +      "type": "array"
      +    },
      +    "operation": {
      +      "const": "search",
      +      "type": "string"
      +    },
      +    "replayed": {
      +      "type": "boolean"
      +    },
      +    "request_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "state": {
      +      "$ref": "#/$defs/State"
      +    }
      +  },
      +  "required": [
      +    "api_version",
      +    "operation",
      +    "state",
      +    "replayed",
      +    "data",
      +    "issues"
      +  ],
      +  "title": "Response",
      +  "type": "object"
      +}
  2. First observedv0.7.5

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds that search is literal-text based rather than semantic and that results report currentness and matched scopes, which is useful behavioral context, but it omits pagination, truncation via budget_chars, and how 'current' defaults affect results.

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?

A single front-loaded sentence with no filler. The two clauses separate the search mode from output behavior, though the second clause is somewhat compressed and could be clearer.

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

Completeness2/5

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

The output schema is present, so return values need not be explained, and readOnly is covered by annotations. But for an 8-parameter tool with complex anyOf requirements and 0% schema descriptions, the description is too thin to guide correct invocation, especially around cursor/limit and budget_chars truncation.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate and it largely does not. It loosely maps to text, filters, initiatives, and currentness, but leaves limit, match, cursor, prefix, and budget_chars unexplained, making it hard to invoke non-trivially without inspecting the schema.

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

Purpose4/5

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

The description gives a specific verb and resource: 'Find scoped memory' and names the two modes, literal text or explicit filters. It is clear what the tool does, but it does not explicitly distinguish itself from siblings such as read, context, or trail.

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

Usage Guidelines3/5

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

The phrase 'using literal text or explicit filters' implies the two valid search modes and the required initiative scoping is hinted by 'scoped memory'. However, there is no explicit guidance on when to use this instead of sibling tools, no exclusions, and no explanation of when to prefer text vs filters.

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