Skip to main content
Glama

PDF to text

blackwood_pdf_extract
Read-onlyIdempotent

Use when you need to extract text from a pdf, pdf to text or document parsing for an LLM. Do not use for scanned PDFs (no OCR), password-protected files or files over 15 MB. Returns JSON with PDF text extraction: the text of each page (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.

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": {
      "url": "<url>"
    },
    "name": "blackwood_pdf_extract"
  }
}

Input 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

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.6/5.0
Behavior5/5

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

Annotations already declare the read-only, idempotent, non-destructive profile, and the description layers on substantial operational detail the annotations cannot carry: no OCR, no password-protected files, 15 MB ceiling, 20-page cap, per-page pricing with a per-call cap, and ~10 s synchronous latency with a polling fallback. That is exactly the extra context this dimension rewards.

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?

Front-loaded with the 'Use when' condition and the exclusions, with cost and latency trailing — the right ordering. It loses a point because the pricing clause ('for 0.0025 USDC per page, up to 0.05 USDC per call (clients without upto pay the cap)') is a run-on that takes a second read to parse.

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 paid, latency-bound extraction tool with a sibling status endpoint, the description covers the inputs it rejects, the cost envelope, the synchronous time budget, and the polling escape hatch. An output schema exists, yet the description still sketches the return shape, so nothing an agent needs before invoking 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 description coverage is 100% — both 'url' and the 'response_format' enum are fully documented in the schema, including the concise/detailed trade-off — so the baseline is 3. The description corroborates the 15 MB limit but adds no syntax, format, or default nuance beyond what the schema already states.

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 — extract text from a PDF — and extends it to the practical framing ('document parsing for an LLM'), which is enough for an agent to distinguish it from unrelated siblings such as webpage_markdown or audio_transcribe. The scope limit ('first 20 pages') is stated up front.

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?

Explicitly gives both directions: 'Use when you need to extract text from a pdf...' and 'Do not use for scanned PDFs (no OCR), password-protected files or files over 15 MB.' It also names the escalation path (the status tool polls for free) rather than leaving the agent to guess what to do on timeout.

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