Skip to main content
Glama

Set recipe cover

set_recipe_cover
Destructive

Set a recipe's cover from a ready generation you made (an image for an image recipe, a clip for a video one — the clip's own poster is used), or remove it with generation_id: null. publish_recipe refuses a row with no cover. before_generation_id supplies the input half of a guided recipe's before/after diptych and is optional.

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": {
      "recipe_id": "<recipe_id>",
      "generation_id": "<generation_id>"
    },
    "name": "set_recipe_cover"
  }
}

Input Schema

NameRequiredDescriptionDefault
recipe_idYes
generation_idYes
before_generation_idNo

Output Schema

NameRequiredDescriptionDefault
recipeYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changed
    • addedOutput schema / properties / recipe / properties / recipe / description
      Added value: +"A template that asks a few questions and makes something."
    • addedOutput schema / properties / recipe / properties / recipe / properties / action / description
      Added value: +"`arm` makes one generation from your answers; `reprompt` does too, with a model writing the prompt from them; `run` starts a multi-step run (`GET /v1/runs/{id}`). New values may be added."
    • changedOutput schema / properties / recipe / properties / recipe / properties / action / enum
      Previous value: -[
      -  "arm",
      -  "run",
      -  "reprompt"
      -]New value: +[
      +  "arm",
      +  "reprompt",
      +  "run"
      +]
    • removedOutput schema / properties / recipe / properties / recipe / properties / allowed_models
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / recipe / properties / recipe / properties / app_url / $ref
      Added value: +"#/properties/recipe/properties/recipe/properties/cover_url/anyOf/0"
    • removedOutput schema / properties / recipe / properties / recipe / properties / app_url / format
      Removed value: -"uri"
    • removedOutput schema / properties / recipe / properties / recipe / properties / app_url / type
      Removed value: -"string"
    • removedOutput schema / properties / recipe / properties / recipe / properties / arrangement
      Removed value: -{}
    • addedOutput schema / properties / recipe / properties / recipe / properties / choices
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "help": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "key": {
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "max_picks": {
      +        "type": "integer"
      +      },
      +      "options": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "label": {
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "value",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "shown_when": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "choice": {
      +                "type": "string"
      +              },
      +              "values": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "choice",
      +              "values"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Asked only when that earlier choice holds one of these values."
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "label",
      +      "help",
      +      "options",
      +      "max_picks",
      +      "shown_when"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / recipe / properties / recipe / properties / id
      Added value: +{
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedOutput schema / properties / recipe / properties / recipe / properties / inputs
      Added value: +{
      +  "description": "The media an `arm` or `reprompt` recipe takes, by key.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "help": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "key": {
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "max_items": {
      +        "type": "integer"
      +      },
      +      "media": {
      +        "description": "\"image\", \"video\" or \"audio\".",
      +        "type": "string"
      +      },
      +      "required": {
      +        "type": "boolean"
      +      },
      +      "takes_subject": {
      +        "description": "Whether this input takes one of your Subjects as `{ \"type\": \"subject\", \"subject_id\" }`.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "label",
      +      "help",
      +      "media",
      +      "required",
      +      "max_items",
      +      "takes_subject"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / recipe / properties / recipe / properties / model
      Added value: +{
      +  "description": "The default model; null on a `run` recipe, whose steps choose their own.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / recipe / properties / recipe / properties / model_id
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / recipe / properties / recipe / properties / model_kind
      Removed value: -{
      -  "enum": [
      -    "image",
      -    "video",
      -    "tts",
      -    "music"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / recipe / properties / recipe / properties / object
      Added value: +{
      +  "const": "recipe",
      +  "type": "string"
      +}
    • addedOutput schema / properties / recipe / properties / recipe / properties / prompt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "label": {
      +          "type": "string"
      +        },
      +        "max_length": {
      +          "type": "integer"
      +        },
      +        "placeholder": {
      +          "type": "string"
      +        },
      +        "required": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "label",
      +        "placeholder",
      +        "required",
      +        "max_length"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What `prompt` asks for when you run it; null when it asks for none."
      +}
    • removedOutput schema / properties / recipe / properties / recipe / properties / recipe_id
      Removed value: -{
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedOutput schema / properties / recipe / properties / recipe / properties / recommended_model
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / recipe / properties / recipe / properties / recommended_models
      Added value: +{
      +  "description": "Models its author tested. Any model of its medium that can take its inputs runs it too.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / recipe / properties / recipe / properties / run_inputs / description
      Added value: +"What a `run` recipe takes, by key; empty on the others."
    • addedOutput schema / properties / recipe / properties / recipe / properties / run_inputs / items / additionalProperties
      Added value: +true
    • addedOutput schema / properties / recipe / properties / recipe / properties / run_inputs / items / properties
      Added value: +{
      +  "key": {
      +    "type": "string"
      +  },
      +  "label": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / recipe / properties / recipe / properties / run_inputs / items / required
      Added value: +[
      +  "type",
      +  "key",
      +  "label"
      +]
    • addedOutput schema / properties / recipe / properties / recipe / properties / run_inputs / items / type
      Added value: +"object"
    • addedOutput schema / properties / recipe / properties / recipe / properties / type
      Added value: +{
      +  "description": "What it makes. New values may be added.",
      +  "enum": [
      +    "image",
      +    "clip",
      +    "voiceover",
      +    "music"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / recipe / properties / recipe / properties / uses / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / properties / recipe / properties / recipe / required
      Previous value: -[
      -  "recipe_id",
      -  "model_kind",
      -  "action",
      -  "name",
      -  "description",
      -  "visibility",
      -  "featured",
      -  "tags",
      -  "uses",
      -  "cover_url",
      -  "app_url"
      -]New value: +[
      +  "object",
      +  "id",
      +  "name",
      +  "description",
      +  "action",
      +  "type",
      +  "model",
      +  "recommended_models",
      +  "prompt",
      +  "inputs",
      +  "choices",
      +  "run_inputs",
      +  "tags",
      +  "uses",
      +  "cover_url",
      +  "app_url",
      +  "visibility",
      +  "featured"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare non-read-only, destructive, non-idempotent behavior, and the description adds real context beyond them: the clip poster is auto-derived, removal is expressed as generation_id null, and a cover is a precondition for publish_recipe. It does not spell out what happens to a previously set cover or whether the operation can fail on a non-ready generation, so it stops short of full behavioral disclosure.

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?

Three dense sentences, front-loaded with the action and the accepted input, then removal semantics, then the publish dependency, then the optional parameter. Nothing is repeated from the annotations or schema and 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 three-parameter mutation with an output schema (so return values need not be explained), the description covers input validity, the null-removal path, the optional diptych parameter, and the cross-tool precondition. An agent has everything needed to invoke it correctly; only permission requirements remain implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load, and it does: generation_id is constrained to a ready generation with type rules per recipe kind and to null for removal, and before_generation_id is explained as the optional input half of a guided recipe's before/after diptych. Only recipe_id is left to inference, which is self-evident from the tool name.

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 ('Set a recipe's cover') and immediately qualifies the accepted input type by recipe kind (image for image recipes, clip for video recipes, using the clip's poster). It also names the removal mode, so an agent can distinguish it from siblings like set_recipe_gallery or save_recipe_from_generation 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear conditions: use a ready generation, pass null to remove, and it flags the prerequisite relationship with publish_recipe refusing a coverless row — which tells the agent when this must be called. It stops short of explicitly excluding alternatives (e.g. when to prefer set_recipe_gallery or save_recipe_from_generation), so it is strong but not fully routing.

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