Skip to main content
Glama

URL to mind map

url_to_mindmap
Read-only

Convert server-rendered web pages or PDFs into mind-map outlines by extracting main content and removing navigation and boilerplate.

Instructions

Fetch an http(s) page (or a PDF served over http) and turn its main content into a mind-map outline. Article text is extracted with Readability; navigation and boilerplate are dropped. Pages that render entirely in JavaScript will come back empty — paste the text into text_to_mindmap instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAn http(s) page or PDF. Server-rendered pages only — a JS-only SPA will come back empty.
modeNoauto (default): use a configured API key if there is one, otherwise "client". client: get a draft plus the source text back and write the outline yourself. llm: the server calls the model configured by ANTHROPIC_API_KEY / OPENAI_API_KEY. heuristic: rule-based only, no model.
titleNoRoot node title. Derived from the source if omitted.
exportNoAlso render the outline to a standalone HTML file and return its path.
languageNoLanguage for the node labels, e.g. "English" or "中文". Defaults to the source language.
maxDepthNoLevels including the root (default 4).
outputPathNoWhere to write the HTML when export is true. A directory gets a generated file name. Defaults to $MINDMAP_OUTPUT_DIR or ./mindmaps/.
maxChildrenNoChildren kept per node before the rest collapse into "…(+N)" (default 8).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real behavioral context the annotations cannot: Readability extraction, dropping of navigation/boilerplate, and the hard failure mode of empty results on JS-rendered pages. It does not note network/auth constraints for fetching, but the failure-mode disclosure is the valuable part.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action, then extraction detail, then the failure mode and fallback. No filler; each sentence carries a distinct fact.

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

Completeness4/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 tell the agent what comes back (a mind-map outline, plus source text in client mode). Given eight parameters fully documented in the schema and annotations covering the safety profile, this is nearly complete; only the PDF-vs-pdf_to_mindmap overlap is left ambiguous.

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

Parameters3/5

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

Schema coverage is 100%, and each parameter already carries its own enum explanation, default, and range. The description adds nothing parameter-specific beyond what the schema states. Baseline 3 is appropriate when the schema does all the work.

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: fetch an http(s) page/PDF and convert its main content into a mind-map outline. It names Readability as the extraction mechanism, which tells the agent exactly what content is used. It does not, however, clarify its boundary against the pdf_to_mindmap sibling, despite explicitly advertising PDF support.

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 an explicit exclusion and a named alternative: JS-only pages will come back empty, so use text_to_mindmap instead. That is exactly the kind of routing guidance an agent needs. It does not mention when to prefer pdf_to_mindmap or export_mindmap, so the routing is partial rather than complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.