Skip to main content
Glama

Tidy Byte Tools API

YAML ↔ JSON

yaml_json
Read-onlyIdempotent

Convert a common YAML subset to JSON, or JSON to YAML.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yaml_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonNoA JSON value to turn into YAML. Use this instead of text when you already have an object.
textNoThe YAML text to convert to JSON, or the JSON text to convert to YAML.
directionNoWhich way to convert: "to-json", "to-yaml", or "auto" (the default, which guesses).

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / direction / description
      Added value: +"Which way to convert: \"to-json\", \"to-yaml\", or \"auto\" (the default, which guesses)."
    • addedInput schema / properties / json
      Added value: +{
      +  "description": "A JSON value to turn into YAML. Use this instead of text when you already have an object."
      +}
    • addedInput schema / properties / text / description
      Added value: +"The YAML text to convert to JSON, or the JSON text to convert to YAML."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral caveat — that only a 'common YAML subset' is supported — but says nothing about error behavior on unsupported YAML, how 'auto' guessing resolves, or output shape.

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?

A single front-loaded sentence with zero filler; the bidirectional scope and the subset limitation both land immediately.

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?

The tool is simple, has a full output schema (so return values need no prose), and 100% schema coverage, leaving little the description must carry. The remaining gap is failure/edge behavior for non-subset YAML and how 'auto' resolves, which a complete definition would mention.

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?

Schema description coverage is 100%, so all three parameters (json, text, direction) are already documented with examples including the enum-like values for direction. The description adds no additional parameter meaning, so the baseline of 3 applies.

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?

States a specific verb and resource ('Convert ... YAML ... to JSON, or JSON to YAML') and scopes it with the qualifier 'a common YAML subset', which tells an agent this is not a full-spec converter. It does not explicitly distinguish itself from siblings like json_format or xml_json, but the name plus description make the resource unambiguous.

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

Usage Guidelines2/5

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

The description offers no when-to-use or when-not-to-use guidance and names no alternatives. Any routing hints (e.g. preferring the 'json' field for existing objects, or 'direction: auto' as the default) live only in the input schema, not in the description text.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.