Skip to main content
Glama
tairqaldy

CodeArchitect MCP

by tairqaldy

search_session

Search saved AI conversation sessions by keyword to find relevant context, with full-text matching and date filtering.

Instructions

[CodeArchitect] Search across all stored sessions to find relevant conversations.

=== WHEN TO USE ===

  • User says: "use codearchitect search_session [query]", "search for [topic]", "find sessions about [topic]"

  • User wants to find sessions by keyword or topic

  • User remembers discussing something but not the exact session name

=== STORAGE BEHAVIOR ===

  • Always searches in main folder: ~/.codearchitect/sessions/ (user's home directory)

  • Searches through all date folders unless filtered

=== SEARCH BEHAVIOR ===

  • Full-text search across topic, content, and messages

  • Case-insensitive matching

  • Returns relevance scores and context snippets

  • Results sorted by relevance (highest first), then by date (newest first)

=== PARAMETERS ===

  • query (required): Search query string

  • date (optional): Filter by specific date (YYYY-MM-DD format)

  • dateFrom (optional): Filter from date (YYYY-MM-DD format)

  • dateTo (optional): Filter to date (YYYY-MM-DD format)

  • limit (optional): Limit number of results returned

=== RESPONSE === Returns matching sessions with:

  • Relevance score (0-1)

  • Matched snippets showing context

  • Match count

  • Session metadata (topic, date, filename)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoOptional: Filter sessions by specific date (YYYY-MM-DD format)
limitNoOptional: Limit number of results returned. Default: no limit
queryYesRequired: Search query string to find in sessions
dateToNoOptional: Filter sessions up to this date (YYYY-MM-DD format)
dateFromNoOptional: Filter sessions from this date onwards (YYYY-MM-DD format)
Behavior5/5

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

With no annotations, the description fully covers behavioral traits: storage location (~/.codearchitect/sessions/), search behavior (full-text, case-insensitive, relevance scoring, sorting), and response structure (relevance score, snippets). No contradictions.

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

Conciseness3/5

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

Well-structured with clear sections (WHEN TO USE, STORAGE BEHAVIOR, etc.), but verbose with repeated examples (e.g., user phrases). Could be more concise while retaining key information.

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?

Despite no output schema, description details return values (relevance score, snippets, match count, metadata). Covers parameters, search behavior, and storage. Contextually complete for a search tool.

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

Parameters3/5

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

Schema coverage is 100%, so baseline is 3. Description adds some value like default for limit (not in schema) and format hints, but mostly repeats schema info. No major additional meaning beyond 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?

The description clearly identifies the tool as searching across sessions, using specific verb 'search' and resource 'sessions'. It distinguishes from siblings like store_session and get_session by focusing on search functionality.

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 explicit user action phrases and scenarios (e.g., 'User remembers discussing something but not the exact session name'), guiding when to use. Lacks explicit when-not-to-use and direct sibling comparison, but context is clear enough.

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/tairqaldy/codearchitect-mcp'

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