Skip to main content
Glama
pdf4me
by pdf4me

AI-Process Shipping Label

process_shipping_label

Extract structured data from shipping labels in PDF or image files using AI. Provide the file path and get JSON output with parsed label fields.

Instructions

AI-Process Shipping Label (processShippingLabel): extract structured data via PDF4me POST /api/v2/ProcessShippingLabel. Body: docName (non-empty), docContent, isAsync (true), optional profiles. docName resolution: uses doc_name if set else the file basename. Provide pdf_file_path (local .pdf/.png/.jpg/.jpeg). Optional profiles: trim, omit if empty; wrap in outer braces when not starting with an opening curly brace or square bracket. 202 + Location poll; saves process_shipping_label.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_nameNo
profilesNo
output_dirNo
pdf_file_pathNo
Behavior4/5

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

With no annotations, the description carries the full transparency burden. It discloses key behavioral aspects: the API call is asynchronous (isAsync: true, 202 + Location poll), it saves output to process_shipping_label.json, and it explains docName resolution logic. It does not mention auth or error handling, but it provides substantial behavioral context beyond what structured fields offer.

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 dense paragraph that efficiently packs the endpoint, request body, parameter rules, and asynchronous behavior. While it could benefit from bullet points for readability, every sentence adds necessary information without redundancy.

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?

The tool has no annotations and no output schema, so the description must cover the essentials. It does: purpose, API endpoint, parameter semantics, async flow, and output file location. This is sufficient for an agent to invoke the tool correctly, though it does not describe the content of the resulting JSON, which is acceptable given the absence of an output schema.

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

Parameters4/5

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

The schema has no descriptions for its 4 parameters, so the description must compensate. It explains doc_name resolution (uses doc_name if set, else file basename), profiles formatting (trim, omit if empty, wrap in outer braces), and pdf_file_path extensions. output_dir is not explicitly addressed, but its purpose is inferable from the output file mention.

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's function: 'extract structured data via PDF4me POST /api/v2/ProcessShippingLabel' from a shipping label. It uses a specific verb and noun, and distinguishes itself from sibling process_* tools by explicitly naming the document type.

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?

The description implies when to use this tool (for shipping label extraction) and provides concrete usage constraints such as requiring a local pdf_file_path with specific extensions (.pdf/.png/.jpg/.jpeg). It does not explicitly mention alternatives, but the context is unambiguous as this is the only shipping-label-specific extraction tool among the siblings.

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