Skip to main content
Glama

toml-parse

TOML parse. A TOML document in, URL-encoded as the toml query parameter (up to 12,000 bytes), a parsed document out: the full nested config as JSON (tables, dotted keys, arrays of tables, inline tables, strings, integers in all four radices, floats, booleans, RFC 3339 datetimes), the type counts, and every finding with its line number (malformed lines, duplicate keys and tables, unclosed strings and arrays, trailing content). Price: $0.05 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.

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": {
      "toml": "<toml>"
    },
    "name": "toml-parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
tomlYesThe TOML document to parse (up to 12,000 bytes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the 12,000-byte input cap, the $0.05 USDC-on-Base x402 payment requirement, and the exact HTTP 402 behavior for unpaid calls. It also discloses error semantics — every finding is returned with a line number, covering malformed lines, duplicate keys/tables, unclosed strings and arrays, and trailing content.

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 a two-word purpose statement, then a single dense sentence covering input, output, diagnostics, and pricing. The parenthetical list of TOML constructs is long but each item earns its place by defining parse coverage; the pricing/payment clause is appended rather than integrated, which slightly hurts flow.

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?

No output schema exists, so the description must explain return values — and it does, specifying the parsed JSON tree, type counts, and per-finding line numbers. Combined with input limits and payment mechanics, an agent has everything needed to call it and interpret the result.

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% for the single parameter, so baseline is 3; the description adds two meaningful constraints beyond the schema — that the document must be URL-encoded and that the size cap is enforced at 12,000 bytes in the query string. This is real added meaning rather than restatement.

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?

States a specific verb and resource ('TOML parse') and immediately defines the input (a TOML document via the toml parameter) and the output (parsed nested config as JSON). The enumeration of supported constructs (tables, dotted keys, arrays of tables, all four integer radices, RFC 3339 datetimes) makes the scope unambiguous and distinguishable from the parse/convert siblings.

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?

Clear invocation context: pass a URL-encoded TOML document in the toml parameter, max 12,000 bytes, and note that an unpaid call returns HTTP 402 with payment terms. There are no explicit exclusions or named alternatives, though no sibling in the catalog appears to overlap with TOML parsing, so the missing routing guidance is low-impact.

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