Skip to main content
Glama

get_template

Read-onlyIdempotent

Generate a complete workflow JSON from a saved template using supplied parameters, ready to pass to run_workflow for execution.

Instructions

Generate workflow JSON from a template with provided parameters. Returns a complete workflow that can be passed to run_workflow. Works with built-in and custom saved templates.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "templateId": "<templateId>"
    },
    "name": "get_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
parametersNoParameters for the template (e.g., { prompt: 'a cat', width: 1024 })
templateIdYesThe template ID (from search_templates results)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety and repeatability profile needs no restating. The description adds the useful disclosure that the return value is a complete, executable workflow and that saved custom templates are in scope. It says nothing about behavior when templateId is unknown or when parameters don't match the template's expected inputs.

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 purpose and followed by the return value and template scope. No restatement of the tool name or filler wording.

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?

With no output schema, the description correctly covers the return value ('a complete workflow that can be passed to run_workflow'). For a two-parameter tool with a free-form nested parameters object, the only real gap is guidance on satisfying that object's requirements.

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% and the schema itself gives a concrete parameters example and the provenance of templateId (from search_templates). The description only restates 'with provided parameters' and adds no explanation of how free-form parameters bind to template placeholders, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and output ('Generate workflow JSON from a template') and names the resource plus its two sources (built-in and custom saved templates). It also implicitly separates itself from run_workflow by noting the result is an artifact to be passed there, though it stops short of an explicit sibling contrast.

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?

Gives a clear usage context: the output is meant to feed run_workflow, which tells the agent this is a preparation step rather than an execution step. It also states that both built-in and custom saved templates qualify. It does not state any when-not conditions or prerequisites for a failed templateId lookup.

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