Skip to main content
Glama

canon_render

Renders raw AI text or structured contracts into a CanonDocument with confidence marks and verification beats, returning markdown plus an audit verdict to gate downstream actions.

Instructions

Canon — render any AI text as a CanonDocument (Setting Phase, confidence-marked body, verification beats, folk-theory notes, identity statement). Tier 1 from raw text; Tier 2 from a structured contract. Returns markdown by default plus the audit verdict so the caller can gate downstream actions on it. Reference: ivd/canon_layer.md.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "canon_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoRaw AI output to render (Tier 1 path). Provide either `text` or `contract`.
stakesNoStakes hint that gates verification beat emission.medium
contractNoStructured CanonContract (Tier 2 path). Fields: setting, body, confidence_marks[], decision_points[], folk_theory_corrections[], identity_statement, domain_pack, stakes.
domain_packNoDomain pack id (e.g., 'general', 'medical', 'finance'). Default 'general'.general
output_formatNoWhat to return.markdown
identity_statementNoAI identity statement (R14). Default: 'I am an AI assistant.'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the default return medium (markdown) and that an audit verdict accompanies the output, which is useful, but says nothing about whether rendering has side effects, whether it is deterministic or idempotent, what the audit verdict's possible values mean, or what happens on the Tier 1 path when `stakes` suppresses verification beats. For a tool whose whole purpose is producing a governed artifact, that safety/mutation profile is left unstated.

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

Conciseness4/5

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

Three sentences, front-loaded with the verb and the artifact, followed by path selection and return behavior; nothing is padded. The jargon ('Setting Phase', 'verification beats', 'folk-theory notes') is dense but is at least defined by the artifact's own component list rather than left as pure filler.

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

Completeness3/5

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

With six parameters, a nested contract object, and no output schema, the description does the necessary work of naming the return shape and the accompanying audit verdict. However, the domain vocabulary is never grounded — an agent cannot tell what a 'verification beat' or an audit verdict value looks like, nor how `stakes` interacts with emission beyond the schema's one-line hint — so it is adequate rather than complete.

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 description coverage is 100% and every parameter including the nested contract fields is documented in the schema, so the baseline is 3. The description corroborates the text-versus-contract parameter roles through the tier framing but adds no format, syntax, or interaction detail beyond what the schema already states.

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?

States a specific verb and product: render AI text into a CanonDocument, and enumerates the sections that document contains (Setting Phase, confidence-marked body, verification beats, folk-theory notes, identity statement). It also splits the tool into a Tier 1 raw-text path and a Tier 2 contract path. Sibling routing is only implicit — canon_check and canon_diff are never named, so an agent must infer from their names alone that this is the producing/rendering step rather than the auditing or diffing step.

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?

The tier split ('Tier 1 from raw `text`; Tier 2 from a structured `contract`') is real guidance about which input path to take, and the 'gate downstream actions' clause hints at where it sits in a pipeline. But there is no explicit when-to-use versus canon_check/canon_diff, no statement that canon_check is the alternative for pure auditing, and no prerequisite or ordering information.

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