Skip to main content
Glama

get_template

Read-onlyIdempotent

Retrieve an n8n workflow template by ID with adjustable detail: nodes only, structure, or full workflow JSON.

Instructions

Get template by ID. Use mode to control response size: nodes_only (minimal), structure (nodes+connections), full (complete workflow).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateIdYesThe template ID to retrieve
modeNoResponse detail level. nodes_only: just node list, structure: nodes+connections, full: complete workflow JSON.full
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, indicating safe, idempotent behavior. The description adds the ability to control response size via mode, providing useful behavioral context beyond the annotations.

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?

The description is two sentences long with no wasted words. It front-loads the primary function and then details the mode parameter, making it efficient and easy to parse.

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?

Despite lacking an output schema, the description sufficiently explains the return options via mode. The tool is simple and the sibling tools provide enough context. It could mention that the response is a template object, but current wording is adequate.

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?

With 100% schema coverage, the schema already documents both parameters. The description adds value by explaining the meaning of each mode option ('nodes_only: just node list, structure: nodes+connections, full: complete workflow JSON'), clarifying what the agent can expect.

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 'Get template by ID', specifying the verb and resource. It also explains the mode parameter for controlling response size, distinguishing it from sibling tools like get_node (specific node) or n8n_get_workflow (workflow resource).

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 description provides context on using mode to control response detail, but lacks explicit guidance on when to use this tool versus alternatives like n8n_get_workflow or search_templates. No exclusion criteria are given.

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/czlonkowski/n8n-mcp'

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