Template-engine transform plugin for mcpg. Reshapes a JSON value by rendering an operator-supplied MiniJinja template with the value as context — emit a formatted string (e.g. a human-readable summary of a tool result) or, with `output: json`, render JSON text that is parsed back into a structured value. Usable as a global pre/post-dispatch transform and as a pipeline `plugin_transform` step. Pure compute — no I/O; the gateway core never depends on it.
Single tool 'transform' has a well-structured schema with all parameters typed and described. Naming is clear and verb-based. Description is comprehensive (280+ chars) and explains the tool's purpose, modes, and use cases. However, the tool is a pure compute/transform utility rather than an agent-facing action tool, which limits its alignment with typical agentic patterns. No error recovery guidance or examples of common failure modes. Output schema is implicit (Value type) rather than explicitly documented for LLM consumption.
Renders a MiniJinja template with the input JSON value as context. Supports two output modes: string (default) returns rendered text as a JSON string, or json mode parses the rendered text back into a structured value. Optionally uses a JSON Pointer to select a sub-value as the render context.
Output schema not explicitly documented for LLM consumption. Tool returns a JSON Value but LLMs need to know the structure: is it always a string, always an object, or context-dependent?
Error messages are technical (e.g., 'template parse: ...', 'pointer not found') but lack recovery guidance. LLMs cannot infer next steps from parse errors or pointer failures.
No examples or common use cases documented in description. LLMs benefit from seeing 'e.g., render a summary of tool results' or 'format JSON into human-readable text' to understand when to invoke.
Parameter 'phase' is documented but its interaction with pipeline mode is unclear. Description says 'Ignored by pipeline bridge' but LLMs may not understand when to set it.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |