Skip to main content
Glama

memory_for_paths

What the org already knows about these files, newest first.

Returns current-truth memories tagged path:<p> (via memory_remember(paths=) or session distill) for any of paths or a path under one of them (src/billing matches src/billing/webhooks.ts, not src/billing2/...), each with the memory_recall provenance block and metadata.matched_paths. Shared brain: no agent filter. An exact path lookup, not search: use memory_recall for keywords.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNoMax memories to return, newest first
repoNoWorkspace slug. Drops memories tagged for a different repo:<slug>; memories with no repo/github tag still match.
pathsYesRepo-relative POSIX file or directory paths to look up (e.g. ['src/foo.ts'] or ['src/billing']; a directory also matches memories tagged for files under it). Same normalization as memory_remember(paths=): absolute paths and '..' escapes are rejected. [] returns no records.
githubNoGitHub owner/repo. Drops memories tagged for a different github:<owner>/<repo>; pass it so paths from another repo with the same layout do not match.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / paths / description
      Previous value: -"Repo-relative POSIX file paths to look up (e.g. ['src/foo.ts']). Same normalization as memory_remember(paths=): absolute paths and '..' escapes are rejected. [] returns no records."New value: +"Repo-relative POSIX file or directory paths to look up (e.g. ['src/foo.ts'] or ['src/billing']; a directory also matches memories tagged for files under it). Same normalization as memory_remember(paths=): absolute paths and '..' escapes are rejected. [] returns no records."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses newest-first ordering, prefix-match semantics, 'current-truth' filtering (implying superseded memories are excluded), the shared-brain scope ('no agent filter'), and the provenance/matched_paths payload. It does not mention required permissions, rate limits, or pagination behavior beyond the schema's k.

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 leading sentence is front-loaded with the core purpose and ordering, followed by tight, evidence-dense detail. The parenthetical examples earn their space, though the middle sentence is somewhat run-on and could be split for 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?

An output schema exists, so return-value explanation is not strictly required, and the description still usefully describes the provenance block and metadata.matched_paths. For a read-only, 4-param lookup the coverage is nearly complete, missing only explicit statements of permission requirements and whether the operation is side-effect free.

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 the baseline is 3, but the description adds real semantic value beyond it: it explains the prefix/directory matching rule for paths and how repo-sharing interacts with tag matching, and ties the tag format back to memory_remember(paths=). The k, repo, and github behaviors are largely left to the schema.

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?

States a specific verb and resource ('returns current-truth memories tagged path:<p>') and pins down the exact matching semantics, including that a directory matches files under it and that 'src/billing' will not match 'src/billing2'. An agent can distinguish this from memory_recall (keyword search) without opening either 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?

Explicitly frames the tool as 'An exact path lookup, not search' and names the alternative ('use memory_recall for keywords'), giving both when-to-use and when-not. It also names memory_remember(paths=) as the producer of the data being looked up, closing the loop on the workflow.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.