Skip to main content
Glama

Create PDF Layout

pdf-layout

Create PDFs with precise positioning using Yoga flexbox layout. Design dashboards, slides, certificates, and flyers with exact placement control.

Instructions

Create a PDF with precise positioning using Yoga flexbox layout.

Best for: Dashboards, slides, certificates, flyers, and designs requiring exact placement.

All items are positioned absolutely on specific pages. Use the "page" property to target different pages (e.g., page: 2 for multi-slide presentations). Pages are created as needed.

Use groups for flexbox containers - they support direction, gap, justify, alignItems, and alignment properties for sophisticated layouts.

Default margins: 0 (full canvas access for precise positioning).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNoOptional logical filename (metadata only). Storage uses UUID. Defaults to "document.pdf".
titleNoDocument title metadata
authorNoDocument author metadata
fontNoFont strategy (default: auto). Built-ins: Helvetica, Times-Roman, Courier. Use a path or URL for Unicode.
layoutNoLayout configuration for overflow handling
pageSetupNoPage configuration including size, margins, and background color.
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well: explains pages are created as needed, default margins (0 for full canvas), positioning strategies (absolute vs relative), and group functionality for flexbox containers. Could improve by mentioning output format or error handling, but covers key behavioral aspects for a creation tool.

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?

Perfectly structured with front-loaded purpose, usage guidelines, key features (page targeting, groups, default margins) in 5 focused sentences. Zero wasted words - every sentence provides essential information about when and how to use the tool effectively.

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?

Given the tool's complexity (7 parameters, nested objects) and no annotations, the description does well covering purpose, use cases, key behaviors, and flexbox capabilities. With an output schema present, it doesn't need to explain return values. Could mention error conditions or performance considerations, but provides solid foundation for agent understanding.

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 high (86%), so baseline is 3. The description adds some value by explaining groups support 'direction, gap, justify, alignItems, and alignment properties for sophisticated layouts' and mentions 'page' property for multi-page targeting. However, it doesn't significantly enhance understanding beyond the well-documented schema parameters.

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 'Create a PDF with precise positioning using Yoga flexbox layout' - specific verb (create) + resource (PDF) + method (Yoga flexbox). It distinguishes from siblings by emphasizing precise positioning and flexbox layout, unlike pdf-document (general), pdf-image (image-focused), pdf-resume (resume-specific), and text-measure (measurement only).

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

Usage Guidelines5/5

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

Explicitly states 'Best for: Dashboards, slides, certificates, flyers, and designs requiring exact placement' - clear when-to-use guidance. Implicitly distinguishes from siblings by focusing on layout-intensive designs rather than general documents (pdf-document), image handling (pdf-image), or resume generation (pdf-resume).

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/mcp-z/mcp-pdf'

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