Skip to main content
Glama

PDF to text

blackwood_pdf_extract
Read-onlyIdempotent

Use when you need to extract text from a pdf for document parsing, search or an LLM. Do not use for scanned PDFs (no OCR), password-protected files or files over 15 MB. Returns JSON with the text of each page of a PDF (first 20 pages) plus title, author and producer metadata for 0.0025 USDC per page, up to 0.05 USDC per call (clients without upto pay the cap). Result in the same call (about 10000 ms); a status tool polls for free if it takes longer. Category: Data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic http(s) URL of the PDF file, e.g. https://example.com/report.pdf (up to 15 MB)
response_formatNoconcise (the default when omitted) keeps the JSON short: long fields such as base64 images or audio come back as separate image/audio content blocks and other long strings are cut with a marker; detailed returns the full JSON

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "done": {
      -        "type": "boolean"
      -      },
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "message": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "jobId": {
      -        "type": "string"
      -      },
      -      "output": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "metadata": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "author": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "creationDate": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "producer": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "subject": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "title": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "title",
      -              "author",
      -              "subject",
      -              "producer",
      -              "creationDate"
      -            ],
      -            "type": "object"
      -          },
      -          "pageCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "pages": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "chars": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "page": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "text": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "page",
      -                "text",
      -                "chars"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "pagesWithoutText": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "processedPages": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "truncated": {
      -            "type": "boolean"
      -          },
      -          "url": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "url",
      -          "pageCount",
      -          "processedPages",
      -          "pages",
      -          "pagesWithoutText",
      -          "metadata",
      -          "truncated"
      -        ],
      -        "type": "object"
      -      },
      -      "pollUrl": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "queued",
      -          "running",
      -          "paused",
      -          "errored",
      -          "terminated",
      -          "complete",
      -          "waiting",
      -          "waitingForPause",
      -          "rollingBack",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "jobId",
      -      "status",
      -      "done",
      -      "pollUrl"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "x402 PaymentRequired (returned with isError when payment is needed)",
      -    "properties": {
      -      "accepts": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "extensions": {
      -        "type": "object"
      -      },
      -      "resource": {
      -        "type": "object"
      -      },
      -      "x402Version": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "x402Version",
      -      "accepts"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "done": {
      +        "type": "boolean"
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "message": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "jobId": {
      +        "type": "string"
      +      },
      +      "next": {
      +        "additionalProperties": false,
      +        "description": "Suggested next paid call in the same family (call it in a loop when the task continues)",
      +        "properties": {
      +          "method": {
      +            "enum": [
      +              "GET",
      +              "POST"
      +            ],
      +            "type": "string"
      +          },
      +          "sample": {
      +            "description": "Free fixed sample of the whole family",
      +            "type": "string"
      +          },
      +          "service": {
      +            "description": "Service id of the suggested next paid call",
      +            "type": "string"
      +          },
      +          "tool": {
      +            "description": "MCP tool name of the same call",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Paid route of the next call",
      +            "type": "string"
      +          },
      +          "useWhen": {
      +            "description": "When the next call is the right one",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "service",
      +          "tool",
      +          "method",
      +          "url",
      +          "useWhen",
      +          "sample"
      +        ],
      +        "type": "object"
      +      },
      +      "output": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "metadata": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "author": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "creationDate": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "producer": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "subject": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "title": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "title",
      +              "author",
      +              "subject",
      +              "producer",
      +              "creationDate"
      +            ],
      +            "type": "object"
      +          },
      +          "pageCount": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "pages": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "chars": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "page": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "text": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "page",
      +                "text",
      +                "chars"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "pagesWithoutText": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "processedPages": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "truncated": {
      +            "type": "boolean"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url",
      +          "pageCount",
      +          "processedPages",
      +          "pages",
      +          "pagesWithoutText",
      +          "metadata",
      +          "truncated"
      +        ],
      +        "type": "object"
      +      },
      +      "pollUrl": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "queued",
      +          "running",
      +          "paused",
      +          "errored",
      +          "terminated",
      +          "complete",
      +          "waiting",
      +          "waitingForPause",
      +          "rollingBack",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "jobId",
      +      "status",
      +      "done",
      +      "pollUrl"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "x402 PaymentRequired (returned with isError when payment is needed)",
      +    "properties": {
      +      "accepts": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "extensions": {
      +        "type": "object"
      +      },
      +      "resource": {
      +        "type": "object"
      +      },
      +      "x402Version": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "x402Version",
      +      "accepts"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/openWorld), it discloses pricing (0.0025 USDC/page, 0.05 cap), the 20-page truncation, latency (~10000 ms), and the free polling fallback via a status tool. These are exactly the operational traits an agent needs to plan a call.

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?

Front-loaded with the 'Use when...' clause, then exclusions, then return/pricing/latency details. Dense but every clause is load-bearing; only the trailing 'Category: Data' is filler.

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?

Despite an existing output schema, it still summarizes the return shape and adds the pricing, latency, async fallback and input limits needed to invoke correctly. Nothing material is missing.

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 both url and response_format are fully documented in the schema itself; the description adds only the 15 MB constraint, which is already in the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

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+resource ('extract text from a pdf') and immediately signals the use cases (document parsing, search, LLM). It is clearly distinguishable from the sibling blackwood_pdf_extract_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit positive conditions plus explicit exclusions ('Do not use for scanned PDFs (no OCR), password-protected files or files over 15 MB'). It also routes to the status tool when the call runs long, naming the alternative and the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources