Mustache template validate

mustache-template-validate · version 1.0.0 · Developer tools · free, no key needed

Check Mustache template syntax (spec v1.4.2) and its partials; returns valid or the first error with line and column.

Use when you need to: validate mustache template syntax · check a mustache template for errors · find an unclosed mustache section.

Decide before calling

Read the versioned contract and the supported scope below. Reuse mustache-template-validate@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use mustache-template-validate@1.0.0 for validate mustache template syntax. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "template": "Hello, {{name}}!"
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "partial": null,
    "line": null,
    "column": null
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "mustache-template-validate",
  "version": "1.0.0",
  "input": {
    "template": "Hello, {{name}}!"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/mustache-template-validate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"template":"Hello, {{name}}!"}'

The machine-readable contract is at /v1/tools/mustache-template-validate/versions/1.0.0.

CLI

node cli.mjs run mustache-template-validate 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.