Skip to main content
Glama

preload_context

Pre-load context for a project or workspace. Extracts relevant memories
from the project path and returns them as a compressed summary.

Use this when starting work on a known project to restore working context.

Args:
    project_path: Absolute path to the project or workspace.
                  If empty, uses current working directory.
    k: Number of relevant memories to retrieve (default 8, max 20).

Returns:
    Compressed context summary with project-relevant memories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNo
project_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

With no annotations, the description must carry the burden of explaining side effects. It mentions extracting and returning but does not clarify if it modifies state, has side effects, or is read-only. This leaves some ambiguity.

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, well-structured with separate Args and Returns sections, and every sentence contributes to understanding the tool's purpose and usage. No fluff.

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?

The return value is described as a compressed summary with relevant memories, which is sufficient for many use cases. However, no output schema is provided, and the description does not mention error handling or edge cases, leaving a small gap.

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

Parameters5/5

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

Both parameters are well explained: project_path is described as an absolute path with a fallback to the current working directory, and k is described with its default and max value. This adds meaningful detail beyond 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 exactly what the tool does: pre-loads context by extracting relevant memories and returning a compressed summary. It also differentiates from sibling search tools by specifying the use case of restoring working context for a known project.

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?

Explicitly says when to use it ('when starting work on a known project'), but does not explicitly mention when not to use it or contrast with alternatives like search_hipocampo. Still, the guidance is clear enough for most agents.

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.

Resources