Skip to main content
Glama
Webcite MCP Server

Webcite MCP Server

Extract figures from a document

extract_figures

Extract financial figures from spreadsheets, PDFs, and text with normalized units, periods, and source citations, so AI agents can read financial models accurately.

Instructions

Extract financial figures from a document with units, periods and source locations. Returns recognized financial metrics as tagged, source-grounded figures: the value normalized to its canonical unit, what it means (metric), unit, optional entity/period, a confidence band, whether it was confirmed against the cited cell (bound), and full provenance (asset, sheet, cell, page). This is not a complete inventory of every number.

This is deterministic financial-model reading: header scale ("$M" / "'000"), accounting negatives, period columns (FY2023 vs FY2024) and unit declarations are all honoured, so a percentage is never mis-read as a currency.

Reads spreadsheets (cell-level), PDFs with a text layer (grounded and cited by page), and other text formats deterministically. Scanned pages and images go through vision OCR first, then grounding, and are marked as model reads.

The output is in the figures format analyze_conflicts accepts. Credits: 2

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_figures"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false/openWorldHint=false/destructiveHint=false; the description adds real behavior: deterministic header-scale and accounting-negative handling, a vision-OCR fallback for scans marked as model reads, a 2-credit cost, and a clear statement of what the output fields mean. The readOnlyHint=false is consistent with a credit-consuming job, so no contradiction.

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 output-shape description are front-loaded, and the caveat is placed immediately after. There is minor redundancy, e.g. "deterministic" is asserted twice across the second and third paragraphs, and the credits line reads as a trailing afterthought.

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?

With no output schema, the description carries the burden of describing returns and does so field-by-field (value, metric, unit, entity/period, band, bound, provenance). Input sources, fallback behavior, cost, and limitations are all covered for a two-parameter tool.

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% and both parameters (asset_id, asset_url) are already documented in the schema, including the either/or relationship. The description adds no further parameter-level meaning, so the baseline 3 applies.

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?

"Extract financial figures from a document with units, periods and source locations" is a specific verb+resource+scope, and the closing caveat "This is not a complete inventory of every number" bounds the purpose precisely. It doesn't differentiate itself from siblings like extract_document or extract_pages, which keeps it from a 5.

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?

It states a downstream consumer ("The output is in the figures format analyze_conflicts accepts"), which implies when this tool belongs in a pipeline. However, it never says when to prefer this over extract_document/extract_pages, nor any explicit when-not condition or prerequisite beyond the asset inputs.

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