Skip to main content
Glama
pdf4me
by pdf4me

split_pdf_by_barcode

Split PDF by barcode: detect barcodes on pages, then divide the document into new files according to matched barcode values and chosen split position.

Instructions

Split a PDF by barcode text via PDF4me SplitByBarcode (/api/v2/SplitByBarcode). Provide barcode_string, barcode_filter, barcode_type, split_barcode_page, combine_pages_with_same_consecutive_barcodes, and pdf_render_dpi.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
barcode_typeNoany
pdf_file_pathYes
barcode_filterNocontains
barcode_stringYes
pdf_render_dpiNo300
request_doc_nameNo
split_barcode_pageNoafter
combine_pages_with_same_consecutive_barcodesNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It names several parameters but does not explain how splitting behaves (e.g., page placement rules, multiple barcodes, output handling). The tool likely creates new PDFs, but this is not disclosed, and there is no information about side effects or requirements.

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?

The description is a single sentence that front-loads the primary purpose and lists relevant parameters. It is efficient and free of fluff, though the parameter list could be better structured (e.g., grouping or formatting) to enhance readability.

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

Completeness2/5

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

The tool has 9 parameters, no annotations, and no output schema, so the description must provide substantial context. It fails to explain how the parameters interact, what output to expect, or any prerequisites. The description is a bare minimum that does not enable confident tool invocation.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must compensate. It only lists some parameter names (barcode_string, barcode_filter, etc.) without explaining their meanings, relationships, or required values. Required parameters like pdf_file_path and output_dir are not even mentioned, leaving the agent without the necessary semantics to invoke the tool correctly.

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 clearly states the tool splits a PDF by barcode text, naming the specific API endpoint. This distinguishes it from sibling tools like split_pdf (generic split) and split_pdf_by_text (splits by text), making the purpose unambiguous.

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

Usage Guidelines3/5

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

The description implies usage context by stating the barcode-based splitting functionality, but it does not explicitly provide when-to-use guidance or compare with alternatives. No exclusions or alternative tool references are given, so guidance is only implied.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server