Skip to main content
Glama

media gif

media_gif
Read-only

Turn a video clip into a palette-optimised animated GIF: start, duration (up to 15 s), fps (4-20) and width (100-800 px). Costs $0.014 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsNoDefault 12
urlNohttps URL of the file (max 20 MB)
startNo
storeNoReturn 7-day share links instead of base64 (+$0.001); automatic above 3 MB
widthNoDefault 480
formatNobinary = raw file bytes (single output)
durationNoSeconds, default 5, max 15
filenameNoName with extension, helps detect the type
file_base64NoOr the file as base64 / data URI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations are minimal (readOnlyHint, openWorldHint), so the description does real work: it discloses the $0.014 USDC per-call cost via x402 and the palette-optimisation behavior, plus the fps (4-20) and width (100-800) bounds that are absent from the schema. It stops short of stating output format or what triggers the automatic store behavior.

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

Conciseness5/5

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

Two tight clauses with the core action and output format front-loaded, followed by a single cost sentence. No filler; every phrase (ranges, price) adds information.

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

Completeness4/5

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

For a 9-parameter paid conversion tool with no output schema, the definition covers the key control parameters and the billing model. It omits return-shape expectations (base64 vs link) and input-source requirements, but those are largely covered by the schema.

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 high (89%), so the baseline is 3, but the description adds constraints the schema lacks: fps range 4-20 and width range 100-800 px, plus the 15 s duration cap and the fact that 'start' selects the clip offset. This meaningfully supplements the structured fields.

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 resource: 'Turn a video clip into a palette-optimised animated GIF.' The output format is named precisely, though it does not explicitly distinguish itself from conversion siblings like media_convert, which also transforms media.

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?

Usage is only implied by the input/output described (video in, GIF out); there is no explicit 'use this when' or a named alternative such as media_convert or media_thumbnail. The parameter ranges hint at applicability but do not route the agent between siblings.

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