Skip to main content
Glama

OpenSkopos

Convert or format a document

convert
Read-onlyIdempotent

Write a document as JSON, YAML or Markdown in the canonical key order and layout. Use the same format to format a file (as skopos fmt does). Markdown is the readable agent file (specification section 10).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document": "<document>",
      "to": "<to>"
    },
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe format to write.
formatNoThe format of the text. Default: from `filename`, else detected (JSON starts with '{'; Markdown has a '# ' title line).
documentYesThe whole document: OpenSkopos JSON, YAML or Markdown text, as in the file.
filenameNoThe name of the file, for example INTENT.md or app.skopos.yaml. Sets the format, and the kind of a Markdown file without one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds real behavioral context: output is in canonical key order and layout, Markdown is the 'readable agent file'. However, 'Write a document' and 'format a file' sit awkwardly against readOnlyHint=true and the fact that the document arrives as a schema string, leaving mild ambiguity about whether anything is persisted.

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?

Three short sentences, with the core action front-loaded and the format-equals-format trick immediately after. The trailing '(specification section 10)' pointer is low-value noise an agent cannot act on without the spec in context.

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

Completeness3/5

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

For a read-only transformer with 100% schema coverage and no output schema, the main missing piece is what comes back, specifically the converted text string versus a structured object, and whether the input document is validated or errors on malformed input. The canonical-ordering promise is stated but its failure modes are not.

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 100%, so baseline is 3, but the description adds genuine meaning: setting `to` and `format` to the same value performs a format-in-place rewrite rather than a conversion, and the layout/key-order guarantee applies to the output. It does not clarify the filename-versus-format precedence beyond what the schema already says.

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: write/emit a document as JSON, YAML or Markdown in canonical key order, and also reformat a document in its existing format. The dual convert-or-reformat behavior is spelled out, which a bare name like 'convert' alone would not convey. It stops short of distinguishing itself from siblings such as render, export, or fix.

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?

It gives an implicit when: use it to change formats, and 'use the same format to format a file (as skopos fmt does)' covers the reformat-in-place case. There are no explicit when-not conditions and no named sibling alternatives (e.g., render or export), and the `skopos fmt` reference assumes knowledge of an external CLI the agent may not have.

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.