Skip to main content
Glama

riddle_preview

Read-onlyIdempotent

Shows the user the current DRAFT of a Riddle as a playable preview - the Riddle as it looks right now, published or not. Call it after riddle_builder_create or riddle_builder_update whenever the user wants to see the result (right after riddle_publish the draft and the live version are identical, so it shows what is live); do not call it on every edit of a multi-step build, once at the end is enough. In a client that renders UI this tool draws the preview widget (playable Riddle, a publish button, a link into the Creator); in any other client use the returned "previewUrl" - it works anonymously and serves the draft for "previewExpiresInSeconds" seconds, after which calling this tool again renews it. Changes nothing about the Riddle; the draft is served from a temporary cache under that anonymous previewUrl. Whether it is live and where: "isPublished", "viewUrl" (null until published - reference_get(topics: ["riddle://reference/concepts/publish"]) explains the draft/live split).

Input Schema

NameRequiredDescriptionDefault
UUIDYesThe UUID of the Riddle to preview

Output Schema

NameRequiredDescriptionDefault
UUIDYesThe UUID of the previewed Riddle.
typeYesThe Riddle type (Quiz, Poll, ...).
titleYesThe draft title of the Riddle.
viewUrlYesThe public URL of the published Riddle, null while it is not reachable there (not published, or its landing page is disabled).
creatorUrlYesThe Riddle opened for editing in the Riddle Creator (requires the user to be logged in there).
previewUrlYesAnonymous URL that serves the DRAFT as a playable Riddle for previewExpiresInSeconds seconds. Not a link to share - it expires.
isPublishedYesWhether the Riddle is currently live.
hasUnpublishedChangesYesWhether the draft differs from what visitors currently get. Always true for a Riddle that was never published.
previewExpiresInSecondsYesHow long previewUrl serves the draft from now. Call riddle_preview again to renew.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safe-read profile; the description adds substantially more: no mutation occurs, the draft is served from a temporary cache, the previewUrl is anonymous, it expires after previewExpiresInSeconds, and re-calling renews it. It also discloses client-dependent behavior (renders a widget in UI clients, returns a URL elsewhere), which no structured field conveys.

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?

The core (what it previews, when to call, when not to) is front-loaded and the sizing is justified by the amount of behavioral detail. A few clauses are redundant, notably restating 'the Riddle as it looks right now' and the trailing reference_get pointer, which mildly dilutes an otherwise dense paragraph.

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?

Return values are covered by an output schema, so the description is free of that burden, and it still explains previewUrl semantics and expiry that the agent needs to act on. Client-rendering divergence, publication state fields, and renewal behavior are all covered, so nothing an agent needs to call this correctly is missing.

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?

There is a single required parameter with 100% schema description coverage, so the schema already does the work and the baseline is 3. The description doesn't add format, sourcing, or lookup guidance for the UUID beyond referring to 'a Riddle', leaving nothing extra but nothing missing either.

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 concrete verb+resource ('Shows the user the current DRAFT of a Riddle as a playable preview') and immediately scopes it to the draft-vs-live distinction, which separates it from riddle_get and riddle_publish. An agent can tell exactly what this does without opening the schema.

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?

Gives explicit triggers ('after riddle_builder_create or riddle_builder_update whenever the user wants to see the result') and an explicit anti-pattern ('do not call it on every edit of a multi-step build, once at the end is enough'). It also notes the equivalence right after riddle_publish, so the agent knows when calling is pointless.

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