Skip to main content
Glama

x402-markdown-toc

Markdown Toc: Parses # to ###### headings into level, title, and slugged anchor items and builds a nested Markdown table of contents string 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
mdNo
textNo
inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / md / description
      Removed value: -"Md to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / md
      Added value: +{
      +  "description": "Md to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the output shape (level, title, slugged anchor items, nested TOC string) and a pricing/trial constraint, which is useful context. But it says nothing about edge cases such as documents with no headings, malformed heading syntax, or how the three input parameters interact.

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?

A single front-loaded sentence covers the purpose, with the pricing note appended. It is efficient, though the trial/pricing emoji line is marketing rather than functional information an agent needs to invoke the tool.

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 simple transformation with no output schema, the description reasonably conveys input domain and result, but the completely undocumented and ambiguous three-parameter set is a real gap. An agent could understand the tool's intent yet still be unsure how to call it.

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?

Schema description coverage is 0% across three string parameters (md, text, input), and the description mentions none of them. It gives no hint whether these are alternative aliases for the source markdown or distinct fields, leaving the agent unable to choose correctly.

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 (parses, builds) and resource (Markdown headings into a nested TOC), so the agent knows exactly what transformation happens. However, it does not differentiate from neighbors like x402-markdown, x402-markdown-table, or x402-markdown-links, which an agent choosing among markdown utilities would need.

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?

There is no when-to-use guidance, no prerequisite, and no named alternative despite a dense cluster of sibling markdown tools. The description only asserts what the tool does, leaving selection entirely to inference.

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