Skip to main content
Glama

extract_chart_pdf

Extract structured chart data from PDF pages by URL or base64, returning chart types, data series, axis titles, and geometry for selected pages.

Instructions

Extract chart data from a PDF.

Provide exactly one of pdf_base64 or pdf_url. pages accepts "1-5", "3", or "1,3,7". Returns {pages: [{page, panels: [...]}], meta}.

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

Input Schema

NameRequiredDescriptionDefault
pagesNo
pdf_urlNo
pdf_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden, and it does disclose two useful traits: the mutual-exclusivity constraint on the PDF input and the accepted page-range syntax. It stays silent on limits and failure modes that matter for this operation — maximum PDF size, whether scanned/image-only PDFs are supported, what happens when a page has no charts, and error behavior.

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?

Three short sentences, front-loaded with the purpose, then the invocation constraint, then the return shape. No filler and nothing repeated from the name or schema.

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?

The brief return shape sketch compensates for the absence of an output schema, and all three parameters get at least minimal treatment. For a file-ingestion tool with no annotations, though, an agent still lacks size limits, support for scanned PDFs, and error/partial-result semantics, so it is only adequate rather than complete.

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?

Schema description coverage is 0%, so the description must supply all parameter meaning, and it does: the exclusivity rule between pdf_base64 and pdf_url is information the schema cannot convey, and the pages examples ("1-5", "3", "1,3,7") define the accepted grammar. It stops short of clarifying what pdf_url accepts (public URL, auth requirements) or what empty-string defaults mean.

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 chart data from a PDF" gives a specific verb (extract) and resource (chart data in a PDF), which is unambiguous on its own. It does not mention the sibling extract_chart or explain how the two differ, so an agent cannot distinguish them from the description alone.

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 line "Provide exactly one of pdf_base64 or pdf_url" is a real invocation rule that steers input selection, which is more than nothing. However, there is no guidance on when to pick this over extract_chart, no prerequisites (e.g. accessibility of the URL, whether the PDF must contain selectable text), and no exclusions.

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

Deploy Server

Other Tools