Skip to main content
Glama

Make a video from a niche

generate_from_niche
Destructive

Runs ONE niche on the signed-in account and returns the new job's id at once; it does NOT wait for the video. WHEN: the user wants a format list_niches lists; read that niche in full first. A plan_required niche runs from a ready preview_niche_script: send its plan_id, no revision or values. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: this spends the user's tokens. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions). The flow: get_recipe niche-run.

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": {
      "slug": "<slug>"
    },
    "name": "generate_from_niche"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe niche's `slug`, from `list_niches`.
audioNoSound on the video, where `settings.options.audio_selectable` is true. Only if the user asked; never to save tokens, never carried over.
mediaNoOne entry per picked image or music.
modelNoA `settings.options.models` value. Only if the user asked; never to save tokens, never carried over.
valuesNoAnswers by input `key`: the user's own words, or a select's `options` value (own words only where `allow_custom`).
plan_idNoA ready `preview_niche_script` `plan_id`.
revisionNoThe `revision` you read (`list_niches` with `slug`).
resolutionNoOne of the niche's `settings.options.resolutions`; higher costs more. Only if the user asked; never to save tokens, never carried over.
aspect_ratioNoA `settings.options.aspect_ratios` value. Only if the user asked; never to save tokens, never carried over.
estimate_onlyNoPrice only; creates nothing.
idempotency_keyNoRetry key (IDEMPOTENCY).
duration_secondsNoOne of the niche's `settings.options.durations_seconds`; longer costs more. Only if the user asked; never to save tokens, never carried over.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / media / description
      Previous value: -"One entry per picked image."New value: +"One entry per picked image or music."
    • changedInput schema / properties / media / items / properties / input / description
      Previous value: -"The `key` of the image input this fills."New value: +"The `key` of the image or music input this fills."
    • changedInput schema / properties / media / items / properties / source / description
      Previous value: -"`preset` (give `index`), `mine` (an account image: `id`) or `url` (a public https image address or a `confirm_upload` url)."New value: +"`preset` (`index`; music takes only this), `mine` (an image `id`) or `url` (a public https image or a `confirm_upload` url)."
    • addedInput schema / properties / plan_id
      Added value: +{
      +  "description": "A ready `preview_niche_script` `plan_id`.",
      +  "type": "string"
      +}
    • changedInput schema / properties / revision / description
      Previous value: -"The `revision` of the niche as you read it (`list_niches` with `slug`)."New value: +"The `revision` you read (`list_niches` with `slug`)."
    • changedInput schema / properties / values / description
      Previous value: -"Answers to the text and select inputs, by input `key`: the user's own words, or a select's `options` value (own words only where `allow_custom`)."New value: +"Answers by input `key`: the user's own words, or a select's `options` value (own words only where `allow_custom`)."
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "revision"
      -]New value: +[
      +  "slug"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description discloses the async contract (returns immediately, does not wait), a UI side effect the agent would otherwise duplicate ('this call already opened the aicut card: do not call show_generation'), and the cost model ('this spends the user's tokens'). It also states the confirmation protocol and idempotency expectation, which are exactly the traits the annotations cannot express.

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 and labelled (WHEN, THE CARD, WAIT, COST), so the most decision-critical facts arrive first. It is dense with backtick jargon and parenthetical cross-references ('(SPENDING RULES: `get_recipe` `spending-rules`)', 'The flow: `get_recipe` `niche-run`') that add pointer noise, but almost every clause carries an operative instruction.

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 12-parameter, nested-media, token-spending generation tool with no output schema, the description covers the full lifecycle: selection, precondition, cost confirmation, the immediate return value (job id), the card side effect, and the correct way to await completion. Nothing an agent needs in order to call this safely and correctly appears to be 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 the baseline is 3, but the description adds real routing rules the schema does not: the plan_id vs revision/values exclusion for plan_required niches, the pricing-first use of `estimate_only: true`, and the rule that audio/model/resolution must never be set to save tokens or carried over between runs. It stops short of explaining media/source pairing, which the schema already handles well.

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?

Opens with a specific verb and resource ('Runs ONE niche on the signed-in account') and immediately bounds the outcome ('returns the new job's id at once; it does NOT wait for the video'). It names the adjacent tools that share the workflow (list_niches, preview_niche_script, wait_for_generation, show_generation), so an agent can separate this from its siblings without opening a 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?

Explicit WHEN section names the precondition ('read that niche in full first'), gives the branch condition for `plan_required` niches ('send its plan_id, no revision or values'), and routes follow-up to `wait_for_generation` rather than timers. It also points to `get_recipe` `niche-run` for the full procedure, so both the entry condition and the alternative paths 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.