Skip to main content
Glama

Create a template version

lob_template_versions_create
Idempotent

Create a new version of a template's HTML content without publishing it. Publishing requires a separate update step.

Instructions

Add a new version of a template's HTML. Creating a new version does NOT automatically publish it — use lob_templates_update to set published_version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYesTemplate ID (`tmpl_…`).
descriptionNo
htmlYesHTML content for this version.
engineNo
extraNoAdditional Lob API parameters not enumerated above. Merged into the request body verbatim. See https://docs.lob.com for the full parameter list per resource.
Behavior4/5

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

Annotations already indicate the tool is idempotent and non-destructive. The description adds key behavioral context: creating does not auto-publish, and publishing requires a separate call. This goes beyond what annotations provide.

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?

Two sentences, front-loaded with the core action. Could be slightly more structured (e.g., separate usage note), but overall efficient and clear.

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

Completeness3/5

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

Given no output schema and 5 parameters with nested objects, the description is minimal. It covers the key behavioral aspect (publishing) but omits what the tool returns or how to handle parameters like `extra`. Leaves some gaps for the agent.

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

Parameters2/5

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

Schema coverage is 60%, but the description adds no information about parameters. It does not explain the role of `description`, `engine`, or `extra`, nor does it clarify any parameter constraints beyond the schema. The description should compensate for the moderate coverage but fails to do so.

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?

Description clearly states the verb 'Add' and resource 'a new version of a template's HTML'. It also distinguishes from the sibling tool `lob_templates_update` by noting that creation does not automatically publish.

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 when to use this tool (to create a version) and when not (for publishing, use `lob_templates_update`). Provides a direct alternative, making the usage context clear.

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/optimize-overseas/lob-mcp'

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