Skip to main content
Glama

custom_prompt

Execute custom prompts for code analysis and generation tasks using local LLM with optional file context support for single or multi-file projects.

Instructions

Universal fallback executor for any custom prompt with optional file context. Uses dynamic token allocation based on your loaded model - can handle everything from quick tasks to comprehensive multi-file analysis. The Swiss Army knife when no other specialized function matches your needs.

WORKFLOW: Flexible analysis and generation for any development task TIP: Provide clear instructions for any analysis or generation task SAVES: Claude context for strategic decisions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
analysisDepthNoLevel of analysis detaildetailed
analysisTypeNoType of analysis to performgeneral
codeNoThe code to analyze (for single-file analysis)
contextNoOptional structured context object for the task
filePathNoPath to single file to analyze
filesNoArray of specific file paths to include as context
languageNoProgramming language (if applicable)text
maxDepthNoMaximum directory depth for multi-file discovery (1-5)
projectPathNoPath to project root (for multi-file analysis)
promptYesThe custom prompt/task to send to local LLM
working_directoryNoWorking directory context (defaults to current working directory)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'dynamic token allocation based on your loaded model' and 'can handle everything from quick tasks to comprehensive multi-file analysis', which gives some context about scalability and resource usage. However, it doesn't disclose important behavioral traits like whether this is a read-only operation, potential side effects, performance characteristics, error handling, or what 'Saves: Claude context for strategic decisions' actually means operationally.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is poorly structured with mixed messaging. It starts with a tagline, then has WORKFLOW, TIP, and SAVES sections that feel disconnected. The 'Swiss Army knife' metaphor is repeated unnecessarily. Sentences like 'Uses dynamic token allocation based on your loaded model - can handle everything from quick tasks to comprehensive multi-file analysis' are verbose and could be more direct. The structure doesn't front-load the most critical information effectively.

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 complex tool with 11 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what the tool actually returns, how errors are handled, what 'Claude context' saving means, or the relationship between the many file-related parameters (code, filePath, files, projectPath, working_directory). Given the tool's apparent complexity as a general-purpose executor, more complete guidance about its behavior and limitations is needed.

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?

With 100% schema description coverage, the baseline is 3. The description doesn't add meaningful parameter semantics beyond what's already in the schema. It mentions 'optional file context' which aligns with parameters like files, filePath, and projectPath, but doesn't explain when to use which parameter or how they interact. The schema already documents all 11 parameters thoroughly with descriptions and enums.

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 this is a 'Universal fallback executor for any custom prompt with optional file context' and 'Swiss Army knife when no other specialized function matches your needs', which gives a general sense of purpose. However, it's vague about the specific action - it mentions 'analysis and generation' but doesn't clearly distinguish this from sibling tools like analyze_code_quality or generate_unit_tests. The purpose is understandable but lacks specificity about what makes this tool unique.

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 provides clear guidance about when to use this tool: 'when no other specialized function matches your needs' and as a 'Universal fallback executor'. It implies this should be used when sibling tools don't fit the task. However, it doesn't explicitly state when NOT to use it or provide specific examples of alternatives among the many sibling tools listed.

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/houtini-ai/lm'

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