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).
    rerank: Opcional (TypeSafe). Re-ordena los resultados antes de
            comprimir, con un juicio de relevancia calibrado.

Returns:
    Compressed context summary with project-relevant memories.

Input Schema

NameRequiredDescriptionDefault
kNo
rerankNo
project_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / rerank
      Added value: +{
      +  "default": false,
      +  "title": "Rerank",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that memories are extracted and compressed into a summary, and that rerank applies a calibrated relevance judgment before compression. However, it does not state whether the operation is read-only or has side effects, nor any performance or permission implications, leaving gaps for an unannotated tool.

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?

Purpose and usage are front-loaded in the first two lines, followed by structured Args/Returns. The formatting is efficient, though the Returns block and some Args detail are somewhat redundant against the schema and output schema.

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 values need not be re-described. Given zero schema coverage across 3 parameters, the description covers all of them adequately, and only minor behavioral detail (safety/side effects) is missing.

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 description coverage is 0%, so the description must compensate, and it documents all three parameters: project_path (defaults to cwd when empty), k (default 8, max 20 – the max is new information beyond the schema), and rerank. The rerank text is in mixed Spanish and somewhat garbled ('Opcional (TypeSafe)'), which slightly reduces clarity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (pre-load) and resource (project/workspace context) plus the mechanism: extracts memories from the project path and returns a compressed summary. Clear enough to distinguish from siblings like index_project or search_hipocampo, though it does not explicitly name an alternative. No sibling differentiation is spelled out.

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?

'Use this when starting work on a known project to restore working context' gives a clear triggering condition. There are no explicit exclusions or named alternatives (e.g., vs. quick_hipocampo_search), but the when-to-use signal is unambiguous.

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