Skip to main content
Glama

ScorpTech x402 Tools

Format Convert

format_convert
Read-onlyIdempotent

Convert data between CSV, TSV, JSON, YAML and XML in one call (auto-detects the input format). CSV header handling and delimiter detection, type inference (numbers, booleans, null), nested objects flattened to dotted CSV columns, XML attributes as @keys and repeated elements as arrays, safe YAML subset (no anchors/tags), optional spreadsheet formula-injection guard. Body: {input, from, to, options}; 256 KB limit, clear errors with line numbers on malformed input. Returns JSON with: from, to, detectedFrom, records, inputBytes, outputBytes, output, warnings. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/format-convert

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": {
      "input": "<input>",
      "to": "<to>"
    },
    "name": "format_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYescsv, tsv, json, yaml or xml
fromNoauto (default), csv, tsv, json, yaml, xml
inputYesThe document text (or, for JSON, the value itself)
optionsNoheader (default true), inferTypes (true), pretty (true), delimiter (, ; | \t), rootName (root), itemName (item), flatten (true), spreadsheetSafe (false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, and the description adds substantial context beyond them: a 256 KB size limit, line-numbered errors on malformed input, the safe-YAML subset restriction (no anchors/tags), the formula-injection guard, and the exact returned fields. This is behavior an agent could not infer from the annotations alone.

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 core capability is front-loaded and the trailing details (limits, error behavior, return shape, pricing, endpoint) are ordered sensibly. The prose is dense and clause-heavy, which costs a little readability, but nearly every clause carries information an agent needs.

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?

With no output schema, the description compensates by enumerating the return fields (from, to, detectedFrom, records, inputBytes, outputBytes, output, warnings) and documenting limits, error format, and pricing. For a 4-parameter conversion tool with a nested options object, nothing essential is missing.

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 the baseline is 3, but the description goes further by explaining what the options actually do: header handling and delimiter detection, type inference of numbers/booleans/null, flattening nested objects to dotted CSV columns, XML attributes as @keys, and repeated elements as arrays. That adds real semantic meaning beyond the schema's terse option list.

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?

The description opens with a specific verb and resource — 'Convert data between CSV, TSV, JSON, YAML and XML in one call' — and lists the exact format set, which clearly separates it from siblings like sql_format or currency_format that also carry 'format' in their names.

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?

It establishes context ('auto-detects the input format', default from=auto) and names an alternate access path (the same tool over HTTPS at the x402 endpoint), which helps an agent pick the right route. It stops short of explicit when-not-to-use or sibling comparisons, so it is clear context without exclusions.

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.

Resources