Skip to main content
Glama
MCP Brain Context Manager

MCP Brain Context Manager

by Big0290

auto_inject_context

Injects relevant project memories into new conversation sessions so AI agents start with needed context and avoid manual setup.

Instructions

Automatically inject context for new conversation sessions

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "auto_inject_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNoProject identifier (auto-detected if not provided)
max_memoriesNoMaximum number of memories to include
include_recentNoInclude recent memories
use_ai_craftingNoUse AI prompt crafting for intelligent context
show_notificationNoShow injection notification

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden and does not meet it. It never says whether the call is read-only or mutates session state, whether use_ai_crafting triggers an LLM invocation with cost/latency implications, or what 'automatically' implies for side effects — all critical for a zero-required-param tool that seems to act on a live session.

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?

A single tight sentence with no filler and the scoping qualifier placed at the end. It earns its length but is too thin to be a 5, since brevity here comes at the cost of specification rather than from disciplined editing.

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?

Five optional parameters, no annotations, and no output schema mean the description must explain both side effects and the shape of what comes back — yet it says nothing about return values (injected context text? confirmation?) or what 'automatic' behavior occurs. For a tool whose entire purpose is a side-effecting or context-returning operation, this is a significant gap.

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 description coverage is 100%, so all five optional parameters (project_id, max_memories, include_recent, use_ai_crafting, show_notification) are already documented in the schema. The description adds no additional meaning about defaults, interactions between flags, or how auto-detection of project_id behaves.

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

Purpose3/5

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

States a verb and object ('inject context') scoped to 'new conversation sessions', which gives some orientation. But 'inject' is ambiguous — it could mean writing into an active session, returning a context blob for the caller to use, or mutating stored state — and nothing distinguishes it from siblings like get_context_summary or craft_ai_prompt.

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

Usage Guidelines2/5

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

The only usage hint is 'for new conversation sessions', which implies a timing condition but never states when to call this versus get_context_summary or fetch_memory. No exclusions, prerequisites, or alternative-routing guidance are provided.

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