Skip to main content
Glama

PDF Efforts

PDF information

get_pdf_info
Read-onlyIdempotent

Read basic facts about a PDF without changing it: page count, page sizes, encryption, title/author metadata, file size and whether it has a text layer on page 1. Does not count against the hourly task limit.

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": {
      "file": "<file>"
    },
    "name": "get_pdf_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description's job is to add beyond that; it does, by disclosing a quota exemption and by scoping the text-layer check to page 1 only, which prevents an agent over-trusting the result. Return-shape and error behavior for refused private URLs are left to the schema/output schema.

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?

Two sentences: the first front-loads the operation and its outputs, the second adds the quota caveat. No filler, no restatement of the title, and the read-only constraint comes before the enumeration.

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?

Single-parameter, read-only tool with full annotation coverage and an output schema, so return values need no prose explanation. The description covers scope, the page-1 limitation and the quota behavior — everything an agent needs to call it correctly and interpret the result.

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 every nested field (url, base64, file_id, filename) is documented inline, including the 60-minute file_id validity and the private-address refusal. The description itself says nothing about how to supply the file, so it adds no semantics beyond the schema; baseline 3 applies.

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?

The description gives a specific verb ('Read basic facts') and resource ('a PDF') and then enumerates exactly what is returned: page count, page sizes, encryption, title/author metadata, file size, and text-layer presence on page 1. Against siblings like compress_pdf, ocr_pdf or split_pdf, the read-only inspection scope is unmistakable without consulting the 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?

It communicates the usage context ('without changing it') and a selection-relevant cost fact ('Does not count against the hourly task limit'), which helps an agent choose it as a cheap pre-flight check. It stops short of naming alternatives, e.g. it never says to follow up with ocr_pdf when no text layer is found, despite surfacing that exact signal.

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