Skip to main content
Glama

compile_project_context

Gather project memories and compile them into a context draft. Use before set_project_context() to auto-produce or refresh context from episodic memories, experience data, and abandoned approaches.

Instructions

Gather all stored memories for a project and compile them into a structured context draft. Use this before set_project_context() to auto-produce or refresh a project's context from its episodic memories, experience data, and abandoned approaches.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_name": "<project_name>"
    },
    "name": "compile_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
auto_saveNo
project_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries full disclosure duty and does add useful context: it names the data sources (episodic memories, experience data, abandoned approaches) and calls the result a 'draft', suggesting nothing is persisted immediately. However, it never states whether any side effect occurs, so the auto_save flag's write behavior is left unexplained — a notable gap for a tool that can mutate state.

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?

Two sentences, front-loaded with the action and followed by the workflow placement. There is no padding, though the second sentence is dense and could have split the 'what you get' clause from the 'when to call' clause for faster scanning.

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

Completeness3/5

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

No output schema exists, so the description should say what a 'structured context draft' actually is or whether it is returned to the caller — it does not. Combined with the unaddressed auto_save parameter, an agent still has gaps about the result and side effects, though the core call path is clear.

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

Parameters2/5

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

Schema coverage is 0%, so the description must carry the parameter meaning, and it drops the main burden: auto_save is completely unexplained, even though it defaults to false and implies a persistence decision. Only project_name is effectively obvious from the description's subject matter, so half the parameters remain undocumented anywhere.

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?

Names a specific verb and resource: gather stored memories for a project and compile them into a structured context draft. It also implies the boundary with set_project_context by saying it runs before that call, though it does not explicitly distinguish itself from compile_project_domains, which is the closest ally in the sibling list.

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 gives clear usage context: 'Use this before set_project_context() to auto-produce or refresh a project's context.' That is a real when-to-use statement tied to a workflow. It does not state when to skip it (for example, when a context already exists and needs no refresh), but the alternatives gap is small.

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