Skip to main content
Glama

contentrain_validate

Idempotent

Validate content against model schemas to detect required field violations, type mismatches, broken relations, secret leaks, and i18n parity issues. Optionally auto-fix structural issues: canonical sort, orphan meta, missing locale files.

Instructions

Validate project content against model schemas. Detects required field violations, type mismatches, broken relations, secret leaks, i18n parity issues, and more. If fix:true, auto-fixes structural issues (canonical sort, orphan meta, missing locale files) — do NOT manually edit .contentrain/ files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel ID to validate (omit for all models)
fixNoAuto-fix structural issues (canonical sort, orphan meta, missing locale files). Default: false
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations provide idempotentHint=true and destructiveHint=false. The description adds valuable context: lists detectable issues, warns against manually editing .contentrain/ files, and describes auto-fix behavior. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (three sentences), front-loaded with purpose, and every sentence adds value. No redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Most aspects are covered: parameters, behavior, warnings. No output schema, so return format is not described, but the tool's validation role is clear. Minor gap: no mention of output structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema covers both parameters with descriptions (100% coverage). Description adds context for 'fix' parameter (auto-fixes structural issues) but not for 'model'. Meets baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly specifies the action 'validate' against 'project content' and lists specific issues detected (required field violations, type mismatches, etc.), distinguishing it from sibling tools like contentrain_scan or contentrain_doctor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for validation but does not explicitly state when to use this tool over alternatives (e.g., contentrain_scan, contentrain_doctor). It provides a behavioral note about fix:true but lacks when-to-use or when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/Contentrain/ai'

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