Skip to main content
Glama
Webcite MCP Server

Webcite MCP Server

Analyze figures in a document

analyze_document

Extracts and analyzes figures from PDFs, spreadsheets, and images, returning values, conflicts, recomputations, and a review flag to check internal numeric consistency and flag reads needing source verification.

Instructions

Analyze figures in an uploaded PDF, spreadsheet or JPEG/PNG/WebP image. Image figures are OCR/model reads that need source review; an absent or ambiguous figure is not a verified zero. Returns figures, conflicts, recomputations, a review flag and category. Checks internal numeric consistency only; external fact-checking of every claim is done by review_document.

  • Spreadsheets (xlsx/xls/csv): extracted deterministically with exact cell provenance. No model calls.

  • PDFs: the page image is read for the printed figures (it never computes); those are image reads, capped at needs_review. Requires image reading to be configured on the server.

  • JPEG/PNG/WebP: OCR reads the image, then source-grounded finance analysis checks recognized figures. Incompatible or missing arithmetic scope remains unresolved.

Credits: 3. The document is downloaded and parsed. PDFs and images may require vision reads. Rate-limited more strictly than compute-only endpoints.

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": {
      "asset_id": "<asset_id>"
    },
    "name": "analyze_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYesThe uploaded PDF, spreadsheet or JPEG/PNG/WebP asset ID from upload_file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.67

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds substantial context beyond that: a 3-credit cost, tighter rate limiting than compute-only endpoints, per-format behavior (deterministic cell extraction for spreadsheets vs. model/image reads for PDFs and images), the needs_review cap on image reads, and the server-side requirement that image reading be configured. It also warns that an absent or ambiguous figure is not a verified zero, which is a meaningful correctness caveat.

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?

The core purpose and the review_document handoff are front-loaded in the first sentence, and the per-format bullets are an efficient way to present three distinct behaviors. The credits/rate-limit sentence is a bit dense but each clause carries operational information an agent needs.

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?

For a single-parameter analysis tool with no output schema, the description covers cost, prerequisites, per-format processing differences, limitations, and even summarizes the return payload (figures, conflicts, recomputations, review flag, category). Nothing essential to correct invocation is missing.

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?

With one parameter at 100% schema coverage, the baseline is high, and the description still adds value by explaining which asset formats are accepted and how each is processed, plus that the asset originates from upload_file. It does not add format or validation rules for the asset_id string itself, but the schema already documents that.

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?

States a specific verb and resource ('Analyze figures in an uploaded PDF, spreadsheet or JPEG/PNG/WebP image') and explicitly demarcates scope against the sibling review_document, which handles external fact-checking. An agent can distinguish it from review_document without opening a schema.

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?

Explicitly states the boundary: 'Checks internal numeric consistency only; external fact-checking of every claim is done by review_document.' That is a clear when-not plus a named alternative. It does not, however, advise when to use this versus extract_figures or analyze_conflicts, so routing among the figure-oriented siblings 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.