Skip to main content
Glama

ck_validate

Read-onlyIdempotent

Validate code, config, shell commands, or text against CK policy before execution. Returns policy violations as findings to block non-compliant actions.

Instructions

Validate proposed code, config, shell commands, or text against CK policy before execution. Read-only — no changes are applied to the project. Returns a validation result with any policy violations as findings. content is required. kind classifies the artifact (code/config/shell/text) for policy routing. source_type identifies the content's origin (developer, tool_output, human_review, issue, pull_request, web) for trust-boundary checks; untrusted sources receive stricter scrutiny. domain_pack applies a domain-specific policy pack (e.g., hipaa, owasp). requested_capabilities declares what the content needs (network, filesystem, shell, deploy) so the trust boundary can evaluate the request. Call ck_validate before writing files, running shell commands, or executing generated code. If validation returns blocked findings, do not proceed — use ck_finding to record them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoArtifact kind classification for validation routing.
pathNoFile or directory path relative to the project root.
contentYesThe content to validate or process: source code, config text, shell command, or freeform text.
task_idNoTask identifier within the session for scoped operations.
session_idNoUnique session identifier for correlating findings, proofs, budget, and audit trail.
domain_packNoDomain-specific policy pack to apply during validation.
source_typeNoOrigin category of the record (e.g., developer, tool_output, human_review).
trust_levelNo
intended_useNoHow the validated content will be used after validation.
policy_packsNoAdditional explicit policy packs to apply. Currently supports ai_tools for AI tool configuration review.
target_scopeNoDeployment scope of the artifact being validated.
artifact_typeNoCanonical artifact type. Compatibility aliases `instruction` and `text` are accepted and normalized to `source`.
requested_capabilitiesNo
security_workflow_phaseNoCanonical workflow phase. Compatibility aliases such as `preflight`, `analysis`, and `pre_edit` are accepted and normalized.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
allowedNo
summaryNo
advisoryNo
decisionNo
findingsNo
precedentNo
scanned_atNo
fix_promptsNo
trust_policy_advisoryNo
Behavior4/5

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

Annotations already readOnlyHint=true, destructiveHint=false. Description confirms 'Read-only — no changes are applied to the project.' Adds context on return structure (validation result with findings) and trust-boundary logic. No contradictions.

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?

Description is 6-7 sentences, front-loaded with purpose and read-only status. Efficient structure: main action, then safety, then return type, then parameter explanations, then usage. No unnecessary sentences.

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

Completeness5/5

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

Given 14 parameters (1 required) and high schema coverage, description covers key behavioral aspects, usage context, and return type. Output schema existence reduces need to explain returns. Provides complete guidance for agent to use tool correctly.

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

Parameters4/5

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

Schema coverage is 86% (high), so baseline is 3. Description adds meaning for key parameters: content (required), kind (policy routing), source_type (trust-boundary checks), domain_pack, requested_capabilities. Not all parameters described, but enough added value to exceed baseline.

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?

Description starts with 'Validate proposed code, config, shell commands, or text against CK policy before execution.' Clearly identifies verb (validate) and resource (content against policy). Differentiates from execution siblings like ck_execute_code by stating to call before those actions.

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

Usage Guidelines5/5

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

Explicitly states when to use: 'Call ck_validate before writing files, running shell commands, or executing generated code.' Also provides alternative: 'If validation returns blocked findings, do not proceed — use ck_finding to record them.'

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/aryaminus/controlkeel'

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