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)

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