Skip to main content
Glama

find_prior_work

Search past work sessions for similar tasks by describing your current task. Returns relevant threads with key decisions to avoid rework.

Instructions

Find PRIOR SESSIONS where the user already worked on something similar to a task you're about to start — the 'have I done this before?' guard. Pass a short description of the task/problem as query; returns past threads (each with its most-relevant decision or gotcha and the threadId) so you can reuse the earlier solution instead of redoing or re-deciding it. Searches ALL projects unless project is given. Call at the START of a task. Requires distilled threads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax facts to return (default 20).
queryYesWhat to recall about (e.g. "auth token refresh", "database migration approach").
projectNoSubstring-match the project path to scope results. Empty = all projects.
Behavior4/5

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

With no annotations, the description fully discloses behavior: searches past threads, returns relevant decisions/gotchas and threadId, scopes to project if provided. It doesn't mention side effects, but none are implied for a read-only search.

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

Conciseness5/5

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

The description is concise with 4 sentences, each serving a purpose. The main verb and resource are front-loaded. No unnecessary words.

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

Completeness5/5

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

For a search tool with no output schema, the description adequately explains the return value (past threads with decisions/gotchas and threadId). It also notes a prerequisite and when to call, making it self-contained.

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 adds meaning by explaining query as a task description, project as substring match, and limit default. This exceeds the schema's minimal descriptions.

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 clearly states the tool finds prior sessions similar to a task, using specific language like 'have I done this before?' guard. It distinguishes from siblings by specifying it searches all projects and returns decisions/gotchas with threadId.

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?

The description advises calling at the start of a task and to pass a short description as query. It doesn't explicitly state when not to use or compare to alternatives, but provides clear context including a prerequisite about distilled threads.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BetaBots-LLC/callimachus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server