Skip to main content
Glama

Intelligent Extract

intelligent_extract
Read-only

Extract specific data from web pages with an LLM by defining an extraction goal, and save full results as JSON to disk for a slim response.

Instructions

Extract specific data from web pages using LLM. Use output_path to persist the full extraction output to disk as JSON and receive a slim response.

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>",
      "extraction_goal": "<extraction_goal>"
    },
    "name": "intelligent_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget URL
use_llmNoEnable LLM
llm_modelNoLLM model
overwriteNoOverwrite an existing output file at output_path. Defaults to False.
output_pathNoAbsolute file path (auto .json extension) to persist the full extracted data + content as JSON. When set, the response is slimmed to metadata+file path (extracted_data.raw_content, content, markdown, table_data removed).
filter_queryNoBM25 filter keywords
llm_providerNoLLM provider
chunk_contentNoSplit content
content_filterNo'bm25'|'pruning'|'llm'bm25
extraction_goalYesData to extract
custom_instructionsNoLLM instructions
include_content_in_responseNoWhen True (with output_path set), also keep extracted_data/content in the response. Defaults to False.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.3.2

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, which is questionable given that output_path persists a file to disk — a side effect the annotations don't capture. Setting that aside, the description adds genuinely useful behavioral context: it discloses that the response is slimmed and which fields are removed when output_path is set. That is real value beyond the annotations, though it omits LLM cost/latency implications.

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?

Two tight sentences with the persist-to-disk behavior front-loaded. No filler, though the second sentence largely restates the schema's output_path description rather than adding new meaning.

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?

An output schema exists, so return values needn't be explained. However, for a 12-parameter tool with LLM and content-filter options, the description leaves the agent without guidance on choosing an extraction strategy or how this compares to sibling extract tools. The readOnlyHint versus file-writing tension also goes unaddressed.

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 description coverage is 100%, so the schema already documents all 12 parameters in detail, including the output_path slim-response behavior and overwrite semantics. The description repeats the output_path/persist behavior but adds nothing about llm_model, content_filter modes, or filter_query usage. Baseline 3 applies when the schema does the heavy lifting.

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 specific data from web pages using an LLM. This distinguishes it from crawl_url and extract_entities reasonably well, though it doesn't explicitly name which sibling to use for schema-driven versus goal-driven extraction.

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?

No when-to-use or when-not-to-use guidance is given. There is no mention of how this differs from extract_structured_data or extract_entities, both of which are close siblings. The output_path sentence explains mechanics, not selection criteria.

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