Skip to main content
Glama
AIMLPM

AIMLPM/markcrawl

extract_data

Use an LLM to extract structured fields from crawled pages. Define fields or let the LLM auto-discover by sampling. Results saved to extracted.jsonl. Ideal for competitive research, API analysis, and dataset creation.

Instructions

Extract structured fields from crawled pages using an LLM.

Analyzes each crawled page and pulls out specific data fields you define
(e.g. company_name, pricing, features, api_endpoints). If no fields are
specified, the LLM automatically discovers relevant fields by sampling
pages from the crawl.

This tool makes external API calls to OpenAI (requires OPENAI_API_KEY
environment variable). Results are saved to extracted.jsonl and include
LLM attribution metadata.

Use this for competitive research, API documentation analysis, or building
structured datasets from unstructured web content.

Args:
    jsonl_path: Full path to the pages.jsonl file. If empty, defaults to
        <MARKCRAWL_OUTPUT_DIR>/pages.jsonl.
    fields: Comma-separated field names to extract. Example:
        "company_name,pricing,features,api_endpoints". Leave empty to
        let the LLM auto-discover the most relevant fields.
    context: Description of your analysis goal. Improves auto-field
        discovery quality. Example: "competitor pricing analysis" or
        "API documentation review". Ignored when fields are specified.
    sample_size: Number of pages to sample for auto-field discovery.
        Default: 3. Higher values give better field suggestions but
        cost more tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonl_pathNo
fieldsNo
contextNo
sample_sizeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It transparently discloses that the tool makes external API calls to OpenAI (requiring OPENAI_API_KEY), saves results to extracted.jsonl, and includes LLM attribution metadata. It also mentions token cost implications for sample_size. Missing details on error handling or rate limits, but overall provides good behavioral insight.

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?

The description is well-structured and appropriately sized. It starts with a concise summary sentence, followed by a paragraph on how it works, a phrase on use cases, and a clear bullet-like list for arguments. Every sentence adds value, with no redundant or irrelevant content.

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?

Given the tool complexity (4 parameters, all optional, an output schema exists), the description is complete. It explains auto-discovery when fields are empty, the role of context, and environment requirements. Despite not detailing the output schema content, the presence of an output schema reduces the need for that detail. The description covers all essential behavioral and usage aspects.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description thoroughly documents all four parameters in a dedicated 'Args' section: jsonl_path (full path, default location), fields (comma-separated, example, auto-discovery behavior), context (purpose, ignored when fields specified), and sample_size (default, effect on quality and cost). This fully compensates for the lack of schema descriptions.

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 clearly states the tool's purpose: 'Extract structured fields from crawled pages using an LLM.' It uses a specific verb ('extract') and identifies the resource ('crawled pages') and method. It also lists use cases (competitive research, API documentation analysis, building structured datasets), effectively distinguishing it from sibling tools like crawl_site, list_pages, read_page, and search_pages.

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?

The description provides clear usage context: 'Use this for competitive research, API documentation analysis, or building structured datasets from unstructured web content.' It implies when to use the tool but does not explicitly state when not to use it or suggest alternatives among sibling tools. Thus, while helpful, it lacks explicit exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIMLPM/markcrawl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server