Skip to main content
Glama

Prompt Cleaner MCP Server

by Da-Colon

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LLM_MODELNoModel identifier sent to the APIopen/ai-gpt-oss-20b
LOG_LEVELNoLog verbosity (error|warn|info|debug)info
LLM_API_KEYNoBearer token for the API
LLM_API_BASENoOpenAI-compatible base URLhttp://localhost:1234/v1
LLM_BACKOFF_MSNoInitial backoff delay in milliseconds250
LLM_TIMEOUT_MSNoRequest timeout60000
LLM_MAX_RETRIESNoRetry count for retryable HTTP/network errors1
ENFORCE_LOCAL_APINoIf true, only allow localhost APIsfalse
LLM_BACKOFF_JITTERNoJitter factor applied to backoff (0..1)0.2
RETOUCH_CONTENT_MAX_RETRIESNoRetries when the cleaner returns non-JSON content1

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
cleaner

Pre-reasoning prompt normalizer and PII redactor. Use when: you receive raw/free-form user text and need it cleaned before planning, tool selection, or code execution. Does: normalize tone, structure the ask, and redact secrets; preserves user intent. Safe: read-only, idempotent, no side effects (good default to run automatically). Input: { prompt, mode?, temperature? } — defaults mode='general', temperature=0.2; mode='code' only for code-related prompts. Output: JSON { retouched, notes?, openQuestions?, risks?, redactions? }. Keywords: clean, sanitize, normalize, redact, structure, preprocess, guardrails

sanitize-text

Alias of cleaner. Keywords: sanitize, scrub, redact, filter, pii, normalize, preprocess. Same input/output schema as 'cleaner'.

normalize-prompt

Alias of cleaner. Keywords: normalize, restructure, clarify, tighten, format, preflight. Same input/output schema as 'cleaner'.

health-ping

Liveness probe; returns { ok: true }

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/Da-Colon/prompt-cleaner-mcp'

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