Skip to main content
Glama

Create image from template

craftmypdf_create_image
Destructive

WRITE: uses the CraftMyPDF account's own quota (credits; a successful generation is a billable transaction, typically 1 credit per document, and every call counts even with identical data). Generate ONE image (JPEG or PNG) from a template and your JSON data. Returns a hosted file URL (never file bytes) that expires after expiration minutes. POST /create-image with export_type=json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe JSON object that fills the template's {{placeholders}}, e.g. {"invoice_number":"INV38379","total_amount":82542.56}. The whole request must stay under about 3.8 MB.
versionNoTemplate version number (from craftmypdf_list_template_versions). Latest version when omitted.
expirationNoMinutes until the hosted file is deleted from CraftMyPDF's CDN, 1-10080 (default 60; the vendor default is 5).
output_fileNoFile name of the output (default output.jpg).
output_typeNoImage type (default jpeg).
template_idYesCraftMyPDF template id, e.g. 05f77b2b18ad809a (from craftmypdf_list_templates).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag non-idempotent, open-world, destructive behavior, and the description reinforces this with concrete operational detail the annotations cannot express: cost model (1 credit per document, every call billed even with identical data), return shape (hosted URL, never bytes), and expiry semantics tied to `expiration`. This is exactly the kind of cost/side-effect disclosure that matters for a non-idempotent paid write.

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?

Three dense sentences, each loading distinct information: billing/side effects first, then the action and scope, then the return value and endpoint. No sentence repeats the schema or the title.

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

Completeness5/5

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

With no output schema, the description correctly compensates by explaining the return value (hosted file URL that expires) and its expiry coupling to a parameter. Combined with a fully documented 6-parameter schema and rich annotations, an agent has everything needed to call this correctly.

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 coverage is 100%, so every parameter is already documented in the schema, including defaults for output_type (jpeg) and output_file behavior. The description only echoes the expiration semantics already in the schema, so the baseline of 3 is appropriate — no meaningful additional parameter guidance is provided.

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?

States a specific verb and resource ('Generate ONE image (JPEG or PNG) from a template and your JSON data'), including the accepted output formats and that input is JSON data. This cleanly separates it from the sibling craftmypdf_create_pdf family without the agent needing to open either schema.

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 'WRITE' prefix and the credit/billing note tell the agent this is a mutating, paid operation, which implies when it is appropriate. However, no alternative is named and there is no explicit 'use this instead of craftmypdf_create_pdf when you need an image rather than a PDF' routing, so the selection logic is only implied.

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.