Skip to main content
Glama

apply_template

Applies parameter values to a workflow template and returns executable or save-ready workflow JSON. Use it after building a template to populate prompts, seeds, and other settings.

Instructions

Apply parameter values to a workflow template. Returns workflow JSON ready to execute or save. Use create_template to build a template, then apply_template with values.

Input Schema

NameRequiredDescriptionDefault
valuesYesParameter values (e.g. { prompt: "a cat", seed: 42 })
templateYesTemplate JSON string (from create_template)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden; it does disclose the return value (executable workflow JSON). However, it omits error behavior — what happens on missing/extra parameter keys, whether values are validated, or whether the template is checked for structural validity. Sibling validate_template_params hints these concerns exist and go unaddressed.

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 short sentences, front-loaded with the action and the return value, then the upstream tool reference. No filler.

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?

For a two-parameter tool with a fully described schema and no output schema, the description covers purpose, output shape, and upstream dependency. The main missing piece is failure-mode guidance (invalid values vs. invalid template), which would fully close the gap.

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 100%, so both parameters are documented in the schema, making 3 the baseline. The description adds only a conceptual framing of 'parameter values' and a provenance note that the template string comes from create_template, without extra syntax or format detail.

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 ('Apply parameter values to a workflow template') and immediately describes the output ('workflow JSON ready to execute or save'). It also contrasts with the sibling create_template, so an agent can distinguish the two without opening schemas.

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?

Explicitly gives the workflow: use create_template to build a template, then apply_template with values. That establishes context and ordering. It does not mention when-not-to-use (e.g., when params are unvalidated, validate_template_params might be a prerequisite), so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.