Skip to main content
Glama

Preview a frame

preview_frame
Read-onlyIdempotent

Use this when the user wants to see a clip at one moment: "show me the captions", "how does the title look". A still as last rendered; after an edit, wait for job_status to say done or it shows the previous version. Not for: playing the clip (show_clips). Free and read only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "clip_id": "<clip_id>"
    },
    "name": "preview_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idYesClip id from list_clips.
at_secondsNoSeconds into the finished clip, e.g. 12.5.

Output Schema

NameRequiredDescriptionDefault
noteYes
photoNo
widthYes
heightYes
clip_idYes
versionYes
media_urlNo
at_secondsYes
link_expires_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / at_seconds / description
      Added value: +"Seconds into the finished clip, e.g. 12.5."
    • removedInput schema / properties / at_seconds / title
      Removed value: -"At Seconds"
    • addedInput schema / properties / clip_id / description
      Added value: +"Clip id from list_clips."
    • removedInput schema / properties / clip_id / title
      Removed value: -"Clip Id"
    • removedInput schema / title
      Removed value: -"preview_frameArguments"
  2. Changed3 schema fields changed
    • addedOutput schema / properties / link_expires_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Link Expires At"
      +}
    • addedOutput schema / properties / media_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Media Url"
      +}
    • addedOutput schema / properties / photo
      Added value: +{
      +  "default": false,
      +  "title": "Photo",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), it discloses two behaviors the agent could not otherwise know: the frame is 'as last rendered' so it can be stale after an edit, and the remedy is to poll job_status until done. It also notes the call is free, which affects how liberally an agent should use it.

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 short lines, front-loaded with the trigger condition, followed by behavioral caveat and then the exclusion. 'Free and read only' partly restates readOnlyHint from the annotations, a small redundancy, but nothing else is wasted.

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?

For a two-parameter read tool with full schema coverage, an output schema, and complete annotations, the description covers everything an agent needs: what it returns (a still), when it may be stale, how to resolve staleness, and which sibling to use instead. Nothing material 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?

Schema description coverage is 100%, so clip_id and at_seconds are already documented in the schema, and an output schema exists. The description adds no parameter-level meaning such as whether at_seconds clamps to clip bounds or accepts fractional values beyond the schema's own example. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb and resource ('see a clip at one moment', 'A still as last rendered') and gives concrete user phrasings ('show me the captions', 'how does the title look'). It explicitly names the sibling it is not (show_clips) for the playback case, so an agent can distinguish it without opening either 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?

It gives an explicit trigger condition ('when the user wants to see a clip at one moment'), sample intents, and an explicit exclusion ('Not for: playing the clip (show_clips)'). It also tells the agent when the result is trustworthy versus stale (wait for job_status to say done), which is the key usage decision for this tool.

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