Skip to main content
Glama

assemble_active_context

Consolidates relevant context from prompt modules, markdown memory, and SQLite memory, using the current query to prioritize session-local data for accurate responses.

Instructions

Assemble active context from prompt modules, markdown memory, and SQLite memory

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoReasoning mode (architecture, rfc, debugging, incident, review, slack)
limitNoLimit for memory snippets (default: 8)
queryYesCurrent user request for relevance filtering
session_idNoSession ID to prioritize session-local memory
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It lists the data sources but does not state whether the operation is read-only, whether it mutates any memory, what the return value looks like, or what 'active context' means practically. This is a significant transparency gap.

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?

The description is a single, front-loaded sentence with zero fluff. It is concise and easy to read, though the brevity leaves out usage and behavioral details that could be included without much bloat.

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

Completeness2/5

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

There is no output schema and no annotations, so the description needs to explain what the assembled context returns and when to use the tool. It only lists the input sources, leaving the agent without enough information to confidently invoke the tool or interpret its results.

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?

The input schema has 100% coverage with descriptive parameter definitions, so the baseline is 3. The description adds no additional parameter context, but the schema already explains query, mode, limit, and session_id adequately.

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?

The description uses the verb 'assemble' and specifies the resources (prompt modules, markdown memory, SQLite memory), making the primary function clear. It distinguishes itself from sibling tools by implying a cross-source aggregation, though 'active context' remains somewhat vague.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a combined context from multiple memory sources is needed, but it does not explicitly state when to prefer this tool over alternatives like retrieve_session_context or memory_search. No exclusions or alternative recommendations are provided.

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/lovellfelix/session-memory'

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