Skip to main content
Glama

render_template

Renders Handlebars templates with supplied data, including helpers and expressions, to generate dynamic text output.

Instructions

Renders Handlebars templates with provided data. Supports all Handlebars syntax including helpers and expressions.

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": {
      "template": "<template>"
    },
    "name": "render_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoData object to pass to the template
templateYesThe Handlebars template string (e.g., "Hello {{name}}!")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully reveals a real behavioral trait beyond the schema — that all Handlebars syntax including helpers and expressions is supported — but says nothing about error behavior on malformed templates, missing context keys, or whether helper execution is sandboxed.

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 short sentences, front-loaded with the action and resource, with the capability scope in the second. No padding or repetition, though the second sentence is somewhat vague marketing-style language rather than a concrete constraint.

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?

The tool is simple (2 params, 1 required), but there is no output schema and no annotations, so the description should ideally state that it returns the rendered string and how failures surface. It is adequate to attempt a call, but not complete for a caller that needs to handle the result.

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%, with both `template` and `data` documented in-schema including an example. The description only restates "provided data" and "template," adding no syntax, escaping, or default-value detail beyond what the schema already gives, so the baseline of 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?

"Renders Handlebars templates with provided data" is a specific verb-plus-resource statement that clearly identifies the operation. It does not explicitly name or route against siblings, but the sibling set (calculate, read_file, search_users) is unrelated enough that no ambiguity realistically arises.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance, no preconditions, and no alternatives. An agent is left to infer that this is for templating/string generation rather than, say, format_output, with nothing in the text confirming that.

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