Skip to main content
Glama

publish_canvas

Publish a canvas artifact you presented with canvas_present at a public URL on the Ankra pages host, so the person can share it with someone who has no Ankra account. Pass the artifact_id canvas_present returned; the tool publishes the latest version you presented in this conversation (edits the person made by hand in the canvas panel are not seen here - they use the Publish button in the panel). Only html, svg and markdown artifacts can be published; javascript, json, yaml and text cannot. The page is a static snapshot served in a sandbox: its scripts run with no network, cookies or storage, window.ankra live data is not available, and a fixed notice names it as an AI-generated page published by an Ankra user. Anyone with the link can view it until it expires (ttl_hours, default 7 days, at most 30). Publishing the same artifact again keeps the same URL and extends the expiry. An organisation can have 50 live pages at once. The person approves the publication on a confirmation card before it goes public. Undo with unpublish_canvas.

Input Schema

NameRequiredDescriptionDefault
ttl_hoursNoHow long the page stays up, in hours. Omit for the default of 7 days.
artifact_idYesThe artifact_id a canvas_present call in this conversation returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Far exceeds what the annotations convey: sandboxed static snapshot with no network/cookies/storage, no live window.ankra data, AI-generated-page notice, link-anyone access until expiry, 50 live pages per organisation, and user confirmation before going public. Idempotent-ish republish behavior (same URL, extended expiry) is also disclosed.

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?

Dense and front-loaded: the action, the required id, the version caveat, format restrictions, then the page behavior and limits. Long, but nearly every clause carries decision-relevant information; only mild trimming is possible.

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?

No output schema exists, yet the description covers what the agent needs to know about the result (public URL, permanence until expiry, republish semantics, quota) and all preconditions, formats, and approvals. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuine meaning: artifact_id must be the value a canvas_present call in this conversation returned, and ttl_hours defaults to 7 days and caps at 30, which contextualises the 1–720 bounds.

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 (publish) and resource (canvas artifact presented via canvas_present) plus the outcome (public URL on the Ankra pages host) and the audience (someone with no Ankra account). It is clearly separable from canvas_present and unpublish_canvas.

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?

Explicitly names the prerequisite (artifact_id returned by canvas_present), the inverse operation (Undo with unpublish_canvas), and a non-obvious exclusion: hand edits in the canvas panel are not published by this tool and must use the Publish button instead.

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