Skip to main content
Glama

Extract facts

extract_facts
Read-only

Fetch a public web page and return compact structured facts, metadata, headings, and focus-matched sentences without the full text—useful for quick lookups, citations, and term scanning.

Instructions

Fetch one public http(s) page and extract compact, structured facts without returning the whole page. Returns JSON with metadata (title, description, canonical URL, author, published date, site name, language) gathered from meta tags, Open Graph and JSON-LD; the first 20 h1-h3 headings; all JSON-LD @type values in jsonLdTypes; and, when focus terms are supplied, up to maxFacts matching sentences in the facts array, each with its text and nearest preceding heading. Use this for quick factual lookups, citation details, or scanning a page for specific terms; prefer fetch_page when you need the full readable text.

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": {
      "url": "<url>"
    },
    "name": "extract_facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http or https URL to analyse.
focusNoOptional terms to look for. Sentences containing any term are returned with their nearest preceding heading.
maxFactsNoMaximum number of focus-matching sentences to return (default 10, maximum 25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint), yet the description still adds real behavior: single-page scope, public pages only, truncation limits (first 20 h1-h3 headings, up to maxFacts capped at 25), and the exact shape of the returned JSON. It doesn't mention failure modes (unreachable pages, non-HTML content) or any rate limits, which keeps it short of a 5.

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?

Purpose and the sibling alternative are front-loaded, then the return payload is enumerated in one dense sentence. It is longer than typical but every clause carries information, since there is no output schema to document the response shape. Minor cost: the return-value sentence is a heavy comma-separated run-on.

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?

With no output schema, the description takes on the full burden of describing the response and does so field by field (metadata, headings, jsonLdTypes, facts). Combined with the explicit alternative and parameter interaction notes, an agent has everything needed to call this correctly.

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%, so the baseline is 3, but the description goes further by explaining how the parameters interact: focus terms are matched against sentences returned in the facts array, each paired with its nearest preceding heading, and maxFacts bounds that output. The url parameter's semantics (absolute http/https) are left to the schema.

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?

The description opens with a specific verb and resource ('Fetch one public http(s) page and extract compact, structured facts') and explicitly differentiates itself from the sibling by saying it avoids returning the whole page. It then enumerates exactly which fields come back, so an agent knows precisely what it gets.

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

Usage Guidelines5/5

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

It names concrete use cases ('quick factual lookups, citation details, or scanning a page for specific terms') and gives an explicit alternative plus the condition that selects it: 'prefer fetch_page when you need the full readable text.' Nothing is left to inference.

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

Deploy Server

Other Tools