Skip to main content
Glama

Update Custom Style

update_user_style
Idempotent

Update a public RD Pro user style using /v2/styles/{style_id}.

Use style_reference_images and style_reference_caption for style-level references. These are baked into the custom style and are not the same as per-inference reference_images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew display name for the custom style.
style_idYesStyle id — the internal id or the prompt_style/public id (e.g. user__mystyle_ab12).
min_widthNoForce a fixed width (96-256); must be provided together with min_height.
min_heightNoForce a fixed height (96-256); must be provided together with min_width.
rd_api_keyNoRetroDiffusion API key (rdpk-...) for this call only; overrides session or header auth.
style_iconNoIcon name for the style (e.g. 'sparkles').
descriptionNoShort description of the custom style.
force_paletteNoAlways apply palette constraining for this style.
force_bg_removalNoAlways remove backgrounds for this style.
llm_instructionsNoInstructions for the prompt-expansion LLM when this style is used.
reference_imagesNoAlias for style_reference_images on this tool; prefer style_reference_images and never provide both.
reference_captionNoAlias for style_reference_caption on this tool; prefer style_reference_caption and never provide both.
apply_prompt_fixerNoLet the API tidy prompts automatically for this style (default true).
user_prompt_templateNoPrompt template for the style; must contain the {prompt} token.
style_reference_imagesNoStyle-level reference image(s), base64, baked into the custom style (max 1 via the public API).
reset_forced_dimensionsNoClear previously forced dimensions; do not combine with min_width/min_height.
style_reference_captionNoCaption describing the style reference image(s).
expanded_llm_instructionsNoExtended instructions for the prompt-expansion LLM.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • addedInput schema / properties / apply_prompt_fixer / description
      Added value: +"Let the API tidy prompts automatically for this style (default true)."
    • addedInput schema / properties / description / description
      Added value: +"Short description of the custom style."
    • addedInput schema / properties / expanded_llm_instructions / description
      Added value: +"Extended instructions for the prompt-expansion LLM."
    • addedInput schema / properties / force_bg_removal / description
      Added value: +"Always remove backgrounds for this style."
    • addedInput schema / properties / force_palette / description
      Added value: +"Always apply palette constraining for this style."
    • addedInput schema / properties / llm_instructions / description
      Added value: +"Instructions for the prompt-expansion LLM when this style is used."
    • addedInput schema / properties / min_height / description
      Added value: +"Force a fixed height (96-256); must be provided together with min_width."
    • addedInput schema / properties / min_width / description
      Added value: +"Force a fixed width (96-256); must be provided together with min_height."
    • addedInput schema / properties / name / description
      Added value: +"New display name for the custom style."
    • addedInput schema / properties / rd_api_key / description
      Added value: +"RetroDiffusion API key (rdpk-...) for this call only; overrides session or header auth."
    • addedInput schema / properties / reference_caption / description
      Added value: +"Alias for style_reference_caption on this tool; prefer style_reference_caption and never provide both."
    • addedInput schema / properties / reference_images / description
      Added value: +"Alias for style_reference_images on this tool; prefer style_reference_images and never provide both."
    • addedInput schema / properties / reset_forced_dimensions / description
      Added value: +"Clear previously forced dimensions; do not combine with min_width/min_height."
    • addedInput schema / properties / style_icon / description
      Added value: +"Icon name for the style (e.g. 'sparkles')."
    • addedInput schema / properties / style_id / description
      Added value: +"Style id — the internal id or the prompt_style/public id (e.g. user__mystyle_ab12)."
    • addedInput schema / properties / style_reference_caption / description
      Added value: +"Caption describing the style reference image(s)."
    • addedInput schema / properties / style_reference_images / description
      Added value: +"Style-level reference image(s), base64, baked into the custom style (max 1 via the public API)."
    • addedInput schema / properties / user_prompt_template / description
      Added value: +"Prompt template for the style; must contain the {prompt} token."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The description adds one meaningful behavioral detail: style-level references are 'baked into the custom style' and are distinct from per-inference reference_images. It does not disclose whether unspecified fields are preserved or reset, what side effects updating a style has, or any auth-related behavior. The annotations are also internally inconsistent because destructiveHint appears twice with conflicting values.

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?

The description is three short sentences with no filler. The core operation is front-loaded, and the important caveat about style-level references is stated clearly and compactly.

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

Completeness3/5

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

For a tool with 18 parameters, an output schema, and several mutual-exclusion constraints, the description is somewhat thin. It covers the endpoint and the reference distinction, and the schema compensates for parameter-level details, but it omits update semantics such as whether omitted fields are preserved and does not guide the agent on when to update versus create or delete a style.

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%, and the schema already documents parameter meanings, defaults, and constraints such as min_width being required together with min_height. The description adds only the style-level versus per-inference reference distinction, which is useful but only partially extends beyond the schema text.

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?

The description opens with 'Update a public RD Pro user style using /v2/styles/{style_id}', which names a specific verb, resource, and endpoint. This clearly identifies the operation as an update rather than a read or list operation, though it does not explicitly contrast with create_user_style or delete_user_style.

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?

The description gives useful guidance for choosing style_reference_images/style_reference_caption over per-inference reference_images, which helps with parameter selection. However, it does not explain when to prefer update_user_style over create_user_style or delete_user_style, nor does it mention preconditions or when not to use 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