Skip to main content
Glama

extract_article

Extracts article content from HTML, removes navigation, ads, and sidebars, and converts the result to clean Markdown with available title, author, and date metadata.

Instructions

Extract article content from HTML and convert to Markdown.

Strips navigation, ads, sidebars, and other clutter. Returns clean Markdown plus metadata (title, author, date) when available.

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": {
      "html": "<html>"
    },
    "name": "extract_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYes
include_linksNo
include_imagesNo
include_tablesNo
include_commentsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/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 it does disclose real behavior: it strips navigation, ads, and sidebars, and returns Markdown plus optional metadata. It leaves out whether this is a read-only local transform, whether metadata may be missing, and how it behaves on non-article pages — meaningful gaps for a tool with zero annotation coverage.

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 short sentences, front-loaded with the core action, then the clutter-removal behavior, then the return shape. No filler and no repetition of the tool name.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value enumeration is rightly omitted, but the definition is incomplete for a five-parameter tool: the include_* toggles are completely undocumented in both schema and description. The agent can call it with just `html`, but it cannot make informed choices about the other four parameters.

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%, so the description must compensate, and it does not. Five parameters exist, four of them boolean toggles (`include_links`, `include_images`, `include_tables`, `include_comments`) whose effect on the output is never explained; notably `include_comments` defaults to false, which is a non-obvious extraction choice the description ignores. The only parameter implicitly addressed is `html`.

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 ('Extract article content from HTML and convert to Markdown') and adds a scoping detail — clutter removal — that separates it from a generic HTML-to-Markdown converter. It does not name or distinguish itself from the available `html_to_markdown` / `fetch_as_markdown` siblings, so an agent must infer the difference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the input is raw HTML and the goal is article content, which suggests use when you already have a page's HTML. There is no explicit 'use this instead of X when Y' routing, and no guidance on what happens if the page is not an article (index page, product listing).

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