Skip to main content
Glama

data_schema

Validate, manage, and associate schemas for JSON, YAML, and TOML files to ensure data integrity and consistency across configurations.

Instructions

Unified schema operations tool.

Actions:

  • validate: Validate file syntax and optionally against schema

  • scan: Recursively search for schema directories

  • add_dir: Add custom schema directory

  • add_catalog: Add custom schema catalog

  • associate: Bind file to schema URL or name

  • disassociate: Remove file-to-schema association

  • list: Show current schema configuration

Examples:

  • action="validate", file_path="config.json"

  • action="associate", file_path=".gitlab-ci.yml", schema_name="gitlab-ci"

  • action="disassociate", file_path=".gitlab-ci.yml"

  • action="list"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: validate, scan, add_dir, add_catalog, associate, disassociate, or list
file_pathNoPath to file (for validate/associate/disassociate actions)
schema_pathNoPath to schema file (for validate action)
schema_urlNoSchema URL (for associate action)
schema_nameNoSchema name from catalog (for associate action)
search_pathsNoPaths to scan (for scan action)
pathNoDirectory path (for add_dir action)
nameNoCatalog name (for add_catalog action)
uriNoCatalog URI (for add_catalog action)
max_depthNoMax search depth (for scan action)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it lists actions and provides examples, it doesn't describe important behavioral aspects like whether operations are read-only vs. mutating (e.g., 'add_dir', 'associate' appear to modify configuration), error handling, permission requirements, or side effects. The examples help but don't constitute comprehensive behavioral transparency.

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

Conciseness4/5

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

The description is well-structured with clear sections for actions and examples, making it easy to scan. It's appropriately sized for a multi-action tool with 10 parameters, though some sentences in the examples could be more concise. Every section earns its place by providing 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 the tool's complexity (10 parameters, 7 actions) and the presence of both comprehensive schema descriptions (100% coverage) and an output schema, the description provides adequate context. The action list and examples complement the structured data well. However, for a tool with mutation capabilities and no annotations, more behavioral context would be beneficial.

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?

The input schema has 100% description coverage, providing clear documentation for all 10 parameters including their purposes and which actions they apply to. The description adds minimal value beyond the schema - it lists actions and provides examples showing parameter usage, but doesn't explain parameter semantics that aren't already covered in the schema descriptions.

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

Purpose4/5

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

The description clearly states this is a 'Unified schema operations tool' and lists 7 specific actions, providing a comprehensive overview of what the tool does. However, it doesn't explicitly differentiate from sibling tools like 'constraint_validate' or 'data', which might have overlapping functionality with schema validation or data operations.

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 provides examples showing when to use specific actions with certain parameters, which gives implied usage guidance. However, it lacks explicit guidance on when to choose this tool over sibling tools like 'constraint_validate' (for validation) or 'data' (for data operations), and doesn't mention prerequisites or exclusions.

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/bitflight-devops/mcp-json-yaml-toml'

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