Skip to main content
Glama

util_toml_json

Read-only

TOML to JSON converter — Offline TOML 1.0 parser: text= or url= (Cargo.toml, pyproject.toml, config files; GitHub blob links work) returns JSON with stats, or exact error with line number (duplicate keys, redefined tables, bad strings/numbers). Supports dotted keys, inline tables, arrays of tables, multi-line strings, hex/octal/binary, inf/nan; dates come back as ISO strings. Reverse: json= (a JSON object) returns TOML. Price: $0.002 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "util_toml_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes[package] name = "demo" version = "0.1.0"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered and the description goes further: it discloses the return shape ('JSON with stats'), error surfacing with line numbers for specific failure classes, and date normalization to ISO strings. It also discloses a cost ($0.002 USDC via x402), which is behaviorally significant and not present in any structured field.

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?

Front-loaded with the verb and resource, then input modes, then feature coverage, then price — a sensible ordering. The feature enumeration ('dotted keys, inline tables, arrays of tables, multi-line strings, hex/octal/binary, inf/nan') is dense but each item signals parser coverage an agent may need to reason about; minor bloat only.

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?

With no output schema, the description does the work of explaining return values and error behavior, which is appropriate for a simple single-param tool. However, the phantom url= and json= modes create an unresolved gap: the description promises functionality the schema cannot express, leaving the agent unsure how reverse conversion is actually invoked.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema declares exactly one property, 'text', at 100% coverage, yet the description advertises two additional input modes — 'url=' and 'json=' — that do not exist in the schema. An agent following the description would attempt parameter names that will fail validation, and the advertised reverse-conversion path is unreachable from the documented schema.

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?

Names a specific verb and resource ('TOML to JSON converter', 'Offline TOML 1.0 parser') and extends it to a reverse direction ('json= (a JSON object) returns TOML'). It is clearly distinguishable from the format siblings like util_yaml_json and util_xml_json, though it never names them explicitly.

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?

Gives concrete usage contexts — Cargo.toml, pyproject.toml, config files, GitHub blob links — which tells an agent when this is the right tool. It stops short of explicit exclusions or naming an alternative for the JSON-to-TOML direction, so a 4 rather than a 5.

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