text_template
Mustache template render — Render a Mustache template with JSON data, offline and spec-compliant (passes all 136 official Mustache spec tests: interpolation, dotted names, sections, inverted sections, lists, comments, partials with indentation, set delimiters, standalone-line rules). template= (URL-encode it; # must be %23, up to 50,000 chars), data= JSON object (optional; omit it to just list the variables the template expects), partials= JSON object of name to template (optional), escape=html (default, escapes & < > quote apostrophe) or none, strict=true returns 422 when any variable or partial is missing. Returns the rendered text plus every variable with its kind (var, raw, section, inverted, partial) and the section it sits in, missing variables, absent sections, values missing in only some loop iterations, and warnings. Syntax errors return 422 with line and column. Use it for email, SMS, prompt and report templates. Price: $0.001 USDC (Base, via x402).
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>",
"data": "<data>"
},
"name": "text_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | {"name":"Ada","order_id":"A-1001","items":[{"qty":2,"title":"Pen"},{"qty":1,"title":"Notebook"}],"total":"$7.50"} | |
| template | Yes | Hi {{name}}, your order {{order_id}} has {{#items}}{{qty}} x {{title}}; {{/items}}total {{total}}. |