Skip to main content
Glama

validate_content

Validate content for structural integrity, code quality issues, and security concerns using multi-tier checks including JSON validation, bracket balancing, and secret detection.

Instructions

Run multi-tier validation on content.

Tier 1 (Deterministic):

  • Balanced brackets/braces

  • Valid JSON structure

  • Non-empty content

Tier 2 (Heuristic):

  • TODO/FIXME detection in code

  • Console statement detection

  • Hardcoded URL detection

  • Line length checks

Also scrubs secrets automatically (can be disabled).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesContent to validate
content_typeNoType of content for context-aware validationraw_text
file_pathNoOptional file path for context
scrub_secretsNoEnable secret scrubbing (default: true)

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