Skip to main content
Glama
mistakeknot

interdeep

by mistakeknot

extract_batch

Extract content from multiple web pages simultaneously to gather research data efficiently. Processes URLs concurrently to compile structured information from various sources.

Instructions

Extract content from multiple URLs concurrently. Returns a list of extraction results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsYesList of URLs to extract content from.
max_concurrentNoMaximum concurrent extractions (default 5).

Implementation Reference

  • Implementation of `extract_batch_async`, which performs concurrent extraction from multiple URLs.
    async def extract_batch_async(urls: list[str], max_concurrent: int = 5) -> list[ExtractionResult]:
        """Extract content from multiple URLs concurrently."""
        semaphore = asyncio.Semaphore(max_concurrent)
    
        async def _extract(url: str) -> ExtractionResult:
            async with semaphore:
                return await extract_hybrid_async(url=url)
    
        return await asyncio.gather(*[_extract(url) for url in urls])
  • Handler function `_handle_extract_batch` which processes tool calls for batch extraction.
    async def _handle_extract_batch(arguments: dict) -> list[TextContent]:
        urls = arguments.get("urls", [])
        if not urls:
            return _err("urls is required and must be non-empty")
        max_concurrent = arguments.get("max_concurrent", 5)
        try:
            results = await extract_batch_async(urls, max_concurrent=max_concurrent)
            return _ok({"results": [_result_to_dict(r) for r in results]})
        except Exception as e:
            logger.exception("extract_batch failed")
            return _err(f"Batch extraction failed: {e}")
  • Registration of `extract_batch` in the `_HANDLERS` dictionary in the MCP server.
    "extract_batch": _handle_extract_batch,
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions concurrency and the return type ('list of extraction results'), but lacks details on permissions, rate limits, error handling, or what 'extract content' entails (e.g., text, metadata). For a batch operation with no annotations, this is insufficient behavioral disclosure.

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 extremely concise—two sentences with zero waste. It front-loads the core purpose and follows with the return value, making it easy to parse. Every sentence earns its place by adding essential information.

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?

Given the tool's moderate complexity (batch extraction with concurrency control), no annotations, and no output schema, the description is minimally adequate. It covers the basic operation and return type but lacks details on output format, error cases, or integration with siblings. It meets the bare minimum for a read-like tool but leaves gaps.

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 fully documents both parameters ('urls' and 'max_concurrent'). The description adds no additional meaning beyond what the schema provides—it doesn't explain parameter interactions, constraints, or usage examples. Baseline 3 is appropriate when 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?

The description clearly states the tool's purpose: 'Extract content from multiple URLs concurrently.' It specifies the verb ('extract'), resource ('content'), and scope ('multiple URLs concurrently'), but doesn't explicitly differentiate from sibling tools like 'extract_content' (which might handle single URLs). The description is specific but lacks sibling comparison.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'extract_content' (for single URLs) or 'compile_report' (for processing extracted data), nor does it specify prerequisites or exclusions. Usage context is implied but not articulated.

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/mistakeknot/interdeep'

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