Skip to main content
Glama

Compose a PDF from artifacts

compose_pdf

Free. Build one PDF from pages of several artifacts, in the order and rotation you name. Build one PDF from several artifacts: sources is a list of {artifact_id, pages, rotate}; pages is a selection like 1-3,7 (omit for every page), rotate is 90, 180 or 270. Returns the new artifact_id. Page selections: https://getemboss.ai/docs/artifacts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourcesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations are sparse (all hints false), so the description carries some burden. It discloses that the tool is free, creates a new artifact, and returns the new artifact_id, plus page selection and rotation behavior. However, it does not mention side effects on source artifacts, permissions, limits, or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and parameter-focused, but it repeats 'Build one PDF' across the first two sentences and opens with 'Free.', which adds little functional value. The structure is not as tight as it could be.

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 description covers the single complex parameter, return value, and links to documentation for page selections. With an output schema present and the parameter format well specified, it is largely complete for invocation. Minor gaps remain around examples and edge cases.

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?

Schema coverage is 0%, so the description must compensate. It explains that sources is a list of {artifact_id, pages, rotate}, gives page selection syntax like 1-3,7, states pages can be omitted for all pages, and specifies rotate values 90/180/270. It does not explicitly say artifact_id is required per item, but it is strongly implied.

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 it builds one PDF from pages of several artifacts, with order and rotation. This is a specific verb+resource combination that distinguishes it from siblings like merge_pdf, extract_pages, and rotate_pages by combining selection, ordering, and rotation into a single operation.

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 purpose sentence implies when to use the tool (composing selected pages from multiple artifacts into a new PDF), but it does not explicitly contrast it with sibling tools or state when not to use it. Usage is implied rather than directed.

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.