Skip to main content
Glama

Try a template without saving

render_template
Read-onlyIdempotent

Substitutes variable values into a chosen template revision and shows account/platform variants, rejecting missing or unknown variables and invalid HTTPS URLs before publication.

Instructions

Substitute literal variable values at the chosen template revision and show account/platform variants. Rejects missing/unknown variables and invalid HTTPS URLs. Does not save, read platform credentials/media, call AI, contact platforms or publish. Custom recipes require the local vault key. Still requires preview_draft before publication.

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

Input Schema

NameRequiredDescriptionDefault
valuesNo
accountIdsNo
templateIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations already flag readOnly, idempotent, closed-world and non-destructive, yet the description adds genuinely new behavioral facts: it rejects missing/unknown variables and invalid HTTPS URLs, does not touch credentials or media, makes no AI or platform calls, and custom recipes need the local vault key. Those are exactly the operational constraints an agent cannot get from structured fields.

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 action is front-loaded, followed by validation rules, then a compact list of non-actions, then prerequisites. Every clause carries a distinct fact and there is 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?

An output schema exists, so return values need not be explained, and the description covers validation, side-effect boundaries and auth prerequisites well for a read-only renderer. The remaining gap is the concurrency meaning of expectedRevision, which matters for correct invocation.

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?

With 0% schema description coverage and four parameters, the description must compensate, and it partly does: 'literal variable values' clarifies that values are substituted verbatim rather than evaluated, 'chosen template revision' maps to expectedRevision, and 'account/platform variants' explains what accountIds produces. It never explains why expectedRevision is required or what happens on a revision mismatch, so half the semantics remain implicit.

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?

The description states a specific verb and resource: substitute literal variable values at a chosen template revision and show account/platform variants. That is far more precise than the title. It stops short of explicitly distinguishing this from preview_post or create_draft_from_template, so an agent must infer the boundary from the 'does not save... publish' list.

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?

Usage is only implied: the tool is for a dry-run check of a template, and the closing sentence notes preview_draft is still required before publication, which gives workflow context. However, it never says when to pick this over a sibling that also renders or previews, nor any exclusion beyond the publication path.

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