Skip to main content
Glama

Rellenar plantilla Mustache

template-render
Read-onlyIdempotent

Rellena una plantilla Mustache (subconjunto sin lógica): variables escapadas para HTML, nombres con punto, secciones, bucles sobre listas, secciones invertidas y comentarios. Sin parciales, lambdas ni código. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: rellenar marcadores {{variable}} de una plantilla con valores, informando faltantes y no usados (prompt-template-fill). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Renders a logic-less Mustache template subset: {{variables}} (HTML-escaped; {{{raw}}} and {{&raw}} unescaped), dotted names, {{#sections}} and loops over lists, {{^inverted}} sections and comments. No partials, lambdas or code; output is bounded. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
dataNoView data (object) (object; optional).
strictNoFail when a variable or section name is missing (boolean; optional; default false).
templateYesMustache template (string; required).
escape_htmlNoHTML-escape {{variables}} (Mustache default) (boolean; optional; default true).

Output Schema

NameRequiredDescriptionDefault
lengthNo
outputNoany JSON value
missingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / template / examples
      Added value: +[
      +  "{{#user}}{{name.first}} {{{raw}}}{{/user}} {{! comentario }}{{missing}}"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is free; the description adds real value on top with hard limits (64 KB input, 1 s per call, 1 MB output) and a determinism guarantee. The 'sin efectos secundarios / sin red / sin estado' sentence largely restates the annotations rather than extending them, which keeps this from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The Spanish text is dense and front-loads the feature list, but the description then repeats itself as a parallel EN block that adds no new information and even self-references '[EN completo / full EN: inputSchema.description]'. That meta-pointer and the duplication consume space without earning it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with a nested object input and an existing output schema, the description supplies everything an agent still needs: supported template syntax, explicit exclusions, when/when-not, side-effect profile, size and time limits, and determinism. Return shape can be safely omitted because an output schema exists.

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 the baseline is 3; the description does clarify escaping semantics ({{var}} escaped vs {{{raw}}}/{{&raw}} unescaped), which gives meaning to escape_html. However, the 'strict' switch — the parameter most likely to cause unexpected failures — is never mentioned in the description, and data/template typing is left entirely to the schema.

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?

States a specific verb and resource (render a Mustache template) and immediately bounds the feature subset: variables with HTML escaping, raw braces, dotted names, sections, list loops, inverted sections, comments, and explicit exclusions (no partials, lambdas or code). It also names the sibling template-render is not (prompt-template-fill), so an agent can disambiguate without opening either schema.

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

Usage Guidelines5/5

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

Explicit 'Cuándo' list enumerates concrete scenarios (URLs, HTTP headers, tokens, versions, IP ranges, HTML/Markdown, agent files) and an explicit 'No para' that routes placeholder filling to prompt-template-fill. Both the inclusion and exclusion conditions are stated, which is the top of the scale.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources