Skip to main content
Glama
Webcite MCP Server

Webcite MCP Server

Extract selected pages

extract_pages

Split uploaded PDFs, scans, or office files into citation-ready chunks anchored by page, sheet, or section for RAG indexing, returning extraction state and reason even when no chunks exist.

Instructions

Split an uploaded document into citation-ready chunks with page, sheet or section anchors, for RAG indexing. Returns extraction state and reason even when no chunks exist. Costs 1 credit.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "extract_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNolite or standard. When mode is omitted, accounts created on or after 20 November 2026 (04:00 UTC) read in lite and older accounts read in standard. lite is the faster, lower-cost read (balance estimate 0.12 credits a page); standard is the higher-accuracy read (0.75 credits a page), better on complex tables, handwriting and scans. Either can always be sent explicitly.
asset_idNoAn uploaded asset ID from upload_file. Provide this OR asset_url.
asset_urlNoA direct URL to the file (e.g. your own signed storage URL), so the file need not be uploaded to Webcite. Provide this OR asset_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.67

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already indicate this is not read-only but not destructive, and the description adds useful behavior beyond that: it costs 1 credit and returns extraction state and reason even when no chunks exist. It does not cover failure modes or prerequisite details, but the added cost and empty-result disclosure are meaningful.

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 three short sentences: purpose, return behavior, and cost. It is front-loaded and every sentence adds distinct information without repetition.

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?

It covers purpose, cost, and the fact that extraction state/reason is returned even with no chunks, which is useful given there is no output schema. However, it leaves unclear what 'selected pages' means when there is no page-selection parameter, and it does not clarify how this differs from sibling extraction tools.

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 coverage is 100%, so the detailed mode, asset_id, and asset_url descriptions already carry parameter meaning. The tool description adds no parameter-specific guidance beyond 'uploaded document,' so baseline 3 is appropriate.

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 a specific action and outcome: split an uploaded document into citation-ready chunks with page, sheet, or section anchors for RAG indexing. It does not explicitly differentiate from siblings such as extract_document or extract_figures, and the name/title 'selected pages' introduces some ambiguity since no page-selection parameter is listed.

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?

The phrase 'for RAG indexing' implies a usage context, which gives minimal guidance. However, it does not say when to choose this over extract_document, extract_figures, or other extraction tools, nor does it state exclusions or prerequisites.

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