Skip to main content
Glama

Render template

render_template
Read-only

Render a template with variables and frontmatter to preview output without creating a note.

Instructions

Render a template with variables, without creating a note

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

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
variablesNoTemplate variables
targetPathNoTarget note path (for context)
frontmatterNoAdditional frontmatter
templatePathYesPath to template file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / frontmatter / additionalProperties
      Added value: +{}
    • addedInput schema / properties / frontmatter / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / templatePath / minLength
      Added value: +1
    • addedInput schema / properties / variables / additionalProperties
      Added value: +{}
    • addedInput schema / properties / variables / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "templatePath"
      -]New value: +[
      +  "templatePath"
      +]
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

The readOnlyHint and openWorldHint annotations already establish safety and locality. The description usefully adds that no note is created, but it does not clarify the rendered output, return format, or how targetPath and frontmatter affect rendering.

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?

It is a single front-loaded sentence with no filler. Every word contributes to scope and the key non-side-effect distinction.

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?

Given full schema coverage, annotations covering safety, and no output schema, the definition is largely sufficient. The main remaining gap is that it does not describe what rendering returns or how targetPath/frontmatter are used.

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 coverage is 100%, so every parameter is already documented in the input schema. The description only confirms that variables are supplied, adding no extra semantics beyond the structured fields.

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 states a specific verb (Render) and resource (template), and explicitly contrasts with note-creating behavior. An agent can distinguish this from create_from_template without opening the schema.

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?

The phrase 'without creating a note' clearly signals the preview/non-persistent use case and implicitly directs note creation to create_from_template. It does not explicitly name the alternative, but the usage boundary is clear.

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