Skip to main content
Glama

inject

Enhance AI agent prompts by automatically inserting relevant user context before LLM calls. This tool retrieves and injects user-specific facts into your base system prompt to personalize interactions.

Instructions

Inject user context into a base system prompt before an LLM call. Returns an enriched prompt with relevant facts about the user inserted automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesThe unique identifier for the user (UUID).
basePromptYesYour base system prompt for the agent.
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It states the tool returns an 'enriched prompt with relevant facts about the user inserted automatically,' which implies a read-only or transformative operation. However, it lacks details on potential side effects (e.g., whether it modifies stored data), authentication needs, rate limits, or error handling, leaving significant gaps in behavioral understanding.

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 concise, consisting of two sentences that directly state the tool's function and output. It is front-loaded with the core purpose, and every sentence contributes essential information without redundancy. However, it could be slightly more structured by explicitly separating purpose from output details.

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?

Given the tool's complexity (involving user context injection and LLM integration), lack of annotations, and no output schema, the description is incomplete. It doesn't explain what 'relevant facts' entail, how the enrichment process works, potential limitations, or the format of the returned prompt. This leaves critical gaps for an agent to understand the tool's full behavior and output.

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% description coverage, clearly documenting both parameters (userId and basePrompt). The description adds minimal semantic value beyond the schema, only implying that userId is used to fetch 'relevant facts about the user' and basePrompt is the input to be enriched. This meets the baseline for high schema coverage but doesn't provide extra insights like format examples or constraints.

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 clearly states the tool's purpose: 'Inject user context into a base system prompt before an LLM call.' It specifies the verb ('inject'), resource ('user context'), and target ('base system prompt'), making the function evident. However, it doesn't explicitly differentiate from the sibling tool 'update', which could be related to modifying prompts or user data, leaving room for ambiguity in sibling distinction.

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 description provides no guidance on when to use this tool versus alternatives. It mentions the action but doesn't specify prerequisites, constraints, or compare it to the sibling tool 'update'. Without such context, an agent might struggle to choose between tools in a given scenario.

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/vidursharma202-del/threadline-mcp'

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