Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AI_MODELNoThe specific AI model to use for decomposition and compilation.claude-3-5-haiku-20241022
AI_PROVIDERNoThe AI provider to use for prompt decomposition. Supported values: 'anthropic', 'openai'.anthropic
OPENAI_API_KEYNoAPI key for OpenAI. Required if AI_PROVIDER is set to 'openai' and heuristic fallback is not desired.
ANTHROPIC_API_KEYNoAPI key for Anthropic. Required if AI_PROVIDER is set to 'anthropic' and heuristic fallback is not desired.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
decompose_prompt
Decompose a raw prompt into structured blocks (role, objective, context, constraints, etc.).

Uses AI (Claude/OpenAI) if an API key is configured on the server, otherwise
falls back to keyword-based heuristic analysis.
Returns a JSON list of blocks ready to edit or pass to compile_prompt.

Args:
    prompt: The raw prompt string to decompose.

Returns:
    A summary of extracted blocks + the full JSON to pass to compile_prompt.
compile_prompt
Compile a list of blocks into a Claude-optimized structured XML prompt.

Takes the JSON returned by decompose_prompt (or manually crafted blocks)
and produces a ready-to-use XML prompt with a token estimate.

Args:
    blocks_json: JSON-stringified list of blocks.
                 Each block: {"type": "role|objective|...", "content": "...",
                              "label": "...", "description": "...", "summary": ""}

Returns:
    The compiled XML prompt with token estimate.
list_block_types
List all available block types in flompt with their descriptions.

Useful to know which types to use when manually crafting blocks
to pass to compile_prompt.

Returns:
    Description of each block type and the recommended canonical ordering.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/Nyrok/flompt'

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