Skip to main content
Glama
MCP Brain Context Manager

MCP Brain Context Manager

by Big0290

craft_ai_prompt

Crafts context-aware AI prompts from project summaries and user input, using prompt types and focus areas to guide tasks, explanations, debugging, and code reviews.

Instructions

Craft an intelligent AI prompt using context summary and user input

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_id": "<project_id>"
    },
    "name": "craft_ai_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesProject identifier
focus_areasNoSpecific areas to focus on
prompt_typeNoType of prompt to craft
user_messageNoUser message to incorporate into the prompt

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?

No annotations are provided, so the description carries the full burden. It doesn't say whether the tool reads stored project context, whether it persists anything, what permissions are required, or whether the prompt is returned directly.

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 front-loaded sentence with no redundant wording. The brevity is efficient, though it leaves the definition under-specified.

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?

For a tool with four parameters, no annotations, and no output schema, the description is too thin. It doesn't explain what the returned prompt looks like, how focus_areas and prompt_type affect generation, or whether existing project context is automatically incorporated.

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 coverage is 100%, so the schema already documents all four parameters and the prompt_type enum. The description's mention of 'context summary and user input' loosely maps to project context and user_message but adds no syntax or behavioral meaning beyond the schema.

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?

The description states a verb and resource ('Craft ... AI prompt'), which is understandable, but 'intelligent' is vague and it doesn't clarify what crafting entails or how the result differs from siblings like get_context_summary.

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?

There is no when-to-use guidance, no prerequisites, and no named alternative. An agent cannot tell from the description when this tool is preferable to fetching a context summary or searching memory first.

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