Skip to main content
Glama

search_my_sessions

Find past agent sessions by meaning, not just keywords. Get ranked results with a why and session summary to quickly recall how a problem was solved.

Instructions

Semantic search over the user's own agent sessions — matches by MEANING, not just keywords (a query about 'retries' finds a session about 'exponential backoff'), ranked by relevance with a one-line why per hit. Each result shows what was asked and a summary of what the session did. Private: only the user's own sessions are reachable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYeswhat to find — a topic, error, or how something was solved (e.g. 'how did I fix the 401')
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does an excellent job. It discloses key behaviors: semantic matching (with example), relevance ranking, a 'why' explanation per hit, result contents (what was asked and a summary), and the privacy boundary ('only the user's own sessions'). This is substantial and goes beyond a minimal tool description.

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 three concise sentences: core purpose and semantics, result format, and privacy. Each sentence adds distinct information with no filler. It is front-loaded with the main action and immediately conveys what the tool does.

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?

Given there is no output schema and no annotations, the description adequately covers what the tool does, what results look like (why line, asked query, summary), and the access scope. This is complete enough for an agent to understand when and how to invoke it without missing critical context.

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?

The schema already documents the 'query' parameter with a helpful description. The tool description adds value by explaining how the query is interpreted semantically (e.g., 'retries' finds 'exponential backoff'), enriching the meaning beyond the schema's literal field description.

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 a specific action (semantic search) over a specific resource (the user's own agent sessions) and differentiates from siblings like list_recent_sessions by emphasizing meaning-based retrieval rather than listing. The phrase 'matches by MEANING, not just keywords' adds a distinctive feature that sets it apart.

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?

Provides clear context that this tool is for finding sessions by meaning or topic, with a note about privacy. It does not explicitly list alternatives or exclusions, but the context distinguishes it from the sibling tools (list, share, unshare, pull), and the description implies it is the go-to for semantic discovery of past sessions.

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/danielamiao/sessions-mcp'

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