Skip to main content
Glama

Inspect PDF form

inspect_pdf
Read-onlyIdempotent

List the pages and fillable form fields of a PDF: field name, type, current value, options, page and position, plus a suggested profile key (fullName, email, ssn, ...). Use this first to learn the field names for fill_pdf.

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": "inspect_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idNoA file id from POST /api/v1/files or an earlier result. Use this, template_id or pdf_base64.
pdf_base64NoThe PDF, base64 encoded (max 15 MB). Prefer file_id for big files.
template_idNoA template id from list_templates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is free to add value elsewhere — and it does, by disclosing the response shape (field metadata plus a suggested profile key). With no output schema present, this return-content disclosure is the main behavioral contribution and it is substantive, though it says nothing about limits on very large PDFs or how unfillable/static PDFs behave.

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, zero filler: the first front-loads what the tool returns, the second front-loads the routing instruction. Nothing is redundant with the title or restated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter, no-output-schema inspection tool, the description covers purpose, output contents, and downstream usage, which is what an agent needs to call it correctly. Minor gaps — no mention of behavior on PDFs without form fields or of size/rate limits — keep it short of complete.

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 each of the three alternative input sources (file_id, pdf_base64, template_id) is already documented with selection hints in the schema itself. The description adds no parameter-level meaning beyond that — the parenthetical 'fullName, email, ssn' describes output, not inputs — so the 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?

States a specific verb+resource ('List the pages and fillable form fields of a PDF') and enumerates exactly what each listed field carries: name, type, current value, options, page and position, plus a suggested profile key. That level of detail distinguishes it immediately from siblings like fill_pdf or annotate_pdf, which act on the PDF rather than inspect it.

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?

Explicitly routes the agent: 'Use this first to learn the field names for fill_pdf' establishes a clear ordering relative to the main downstream tool. It gives no when-not-to-use condition (e.g. what to do for non-form PDFs), but the sequencing guidance is unambiguous for the primary workflow.

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