Skip to main content
Glama
pdf2mcp

pdf2mcp

by iSamBa

read_section

Reads the complete text of a specified PDF section in document order, returning all chunks with page numbers. Call get_sections first to get exact section titles.

Instructions

Read the full content of a named section from a document.

Use this after get_sections to read a section you're interested in.
Returns all text chunks for that section in document order, with page
numbers.

Get available section titles from get_sections first.

Args:
    filename: The PDF filename (e.g., 'manual.pdf').
    section_title: Exact section title as returned by get_sections
        (e.g., 'Safety Guidelines').

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": {
      "filename": "<filename>",
      "section_title": "<section_title>"
    },
    "name": "read_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
section_titleYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add useful behavior — all text chunks returned in document order with page numbers — but says nothing about failure modes (unknown section title, unknown filename) or whether access is read-only/full-document-parsed, which matter for a tool the agent will retry on.

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 what, then the when, then parameters in an Args block — easy to scan. The prerequisite is stated twice ('Use this after get_sections' and 'Get available section titles from get_sections first'), one of which is redundant.

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 two-parameter read tool with an output schema already covering return shape, the description covers purpose, ordering, prerequisites, and parameter meaning. The remaining gap is error/mismatch behavior when a section title is not found.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema only offers bare titles, so the description does the real work: filename is a PDF filename with a concrete example, and section_title must be the exact title returned by get_sections with an example. The 'exact' constraint is meaningful semantics an agent would otherwise get wrong by fuzzy-matching.

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 opening sentence names a specific verb and resource with scope: 'Read the full content of a named section from a document.' The scope ('full content', 'named section') makes it distinguishable from a page-level or whole-document read without opening 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 gives explicit sequencing ('Use this after get_sections') and states the dependency twice, so the agent knows the call is blocked until section titles exist. It stops short of an exclusion clause (e.g., when to use a page-level read instead), which keeps it from a 5.

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