Skip to main content
Glama

Retry video processing

retry_video_processing

Start the HLS encode of a video whose stream_url is null. Starts one unless one has already finished — whether the last attempt failed, died on its way to the encoder, or was never made at all. A workspace that encodes every video on upload needs it only for an encode that failed or stalled. Other workspaces encode on request, and this is the request: reading the asset does not start one. stream_url fills in a few minutes after the call. CALL IT ONCE, NOT IN A LOOP: it cannot tell a running encode from a dead one, so calling it again while one is under way queues a second job. To wait for a result, poll get_asset and watch stream_url. An error back means the encode already succeeded, or the workspace's plan does not stream video.

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": {
      "token": "<token>"
    },
    "name": "retry_video_processing"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesAsset token of the video
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "token",
      -  "context"
      -]New value: +[
      +  "token"
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, and the description reinforces this with the strongest possible warning: it cannot tell a running encode from a dead one, so a second call queues a duplicate job. It also discloses latency (`stream_url` fills in a few minutes) and the meaning of an error response (encode already succeeded, or the plan does not stream video). What it does not cover is permissions or quota implications, which keeps it just under the top mark.

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?

Front-loaded with the action and scoping, then escalates to the loop warning and the polling alternative; every sentence carries information. Slightly dense wording in the opening ('Starts one unless one has already finished — whether the last attempt failed, died on its way to the encoder, or was never made at all') costs a little crispness but no sentence is filler.

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 mutation with no output schema, the description covers everything an agent needs: the precondition (null `stream_url`), single-call discipline, expected latency, how to wait, and error interpretation. There is no meaningful gap left to inference.

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 coverage is 100% and both parameters are documented in the schema, including the org-resolution nuance, so the schema carries the semantic load. The description adds no further meaning about `token` or `organization` — its only field references (`stream_url`) are output fields, not inputs. Baseline 3 is appropriate.

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 and resource — start the HLS encode of a video whose `stream_url` is null — and immediately disambiguates from the read path by noting that reading the asset does not start an encode. An agent can distinguish this from siblings like get_asset or update_asset without opening any 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?

Explicitly splits workspaces into two cases: encode-on-upload workspaces need this only for a failed/stalled encode, while encode-on-request workspaces use this as the request itself. It also names the alternative for waiting — poll get_asset and watch `stream_url` — so both the when and the when-not are covered.

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