Skip to main content
Glama

ck_skill_validate

Read-onlyIdempotent

Validate skill output against a JSON Schema to enforce structured, typed results. Pass output with schema or skill name.

Instructions

Validate skill output against a JSON Schema defined in the skill's result-schema frontmatter field. Skills can define a result_schema in their frontmatter; agents call this tool after running a skill to enforce typed, structured output. Accepts output + schema directly, or output + skill_name to validate against the skill's built-in schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outputYesThe skill output to validate. Can be a JSON string or plain text, up to 100KB.
schemaNoJSON Schema as a string to validate against. Required if skill_name is not provided.
skill_nameNoOptional skill name to use the skill's built-in result_schema. If provided, schema is not required.
project_rootNoAbsolute path to the project root. Only used when skill_name is provided.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validNo
errorsNo
skill_nameNo
Behavior4/5

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

Annotations declare readOnly, idempotent, non-destructive. Description adds behavioral details: output size limit (100KB), that validation uses the skill's frontmatter field, and the two validation paths. No contradictions; description complements 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?

Two well-structured sentences. First sentence states the core purpose and mechanism. Second sentence covers both invocation patterns. No redundant or unclear phrasing. Front-loaded with actionable information.

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?

Given 4 parameters (1 required), full annotations, and presence of an output schema, the description covers the key behavioral aspects: validation origin, size limit, two modes. Lacks explicit mention of return value, but output schema likely covers that. Sufficient for an agent to select and call 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 description coverage is 100%, baseline 3. Description adds semantic value: explains that 'output' can be JSON string or plain text (not in schema), clarifies that 'skill_name' makes 'schema' optional, and ties 'project_root' to usage with skill_name. This goes beyond what the schema alone tells the agent.

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 clearly states the action ('Validate skill output against a JSON Schema'), specifies the resource (skill output), and distinguishes two modes (direct schema vs. built-in schema). The verb 'validate' is specific and distinguishes it from sibling tools like ck_validate, which may validate other things.

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

Usage Guidelines4/5

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

Explicitly says when to use: after running a skill to enforce typed output. Describes two invocation modes (output+schema or output+skill_name). Does not explicitly state when not to use, but context is clear. No mention of alternatives, but sibling names suggest other validation tools (e.g., ck_validate) exist.

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