Skip to main content
Glama

scrub_secrets

Detects and masks secrets like API keys, tokens, and passwords in content before sending to LLMs, preventing sensitive data exposure.

Instructions

Scrub secrets from content before sending to LLM.

Detects and masks 15+ types of secrets:

  • AWS keys, OpenAI/Anthropic API keys

  • GitHub tokens, Stripe keys, Firebase/Supabase keys

  • Private keys (PEM), JWTs, connection strings

  • Generic API keys and passwords

Use this before including user content in prompts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesContent to scrub secrets from
show_startNoCharacters to show at start of masked secret (default: 4)
show_endNoCharacters to show at end of masked secret (default: 0)

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/Kirachon/context-engine'

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