Skip to main content
Glama

Save style presets

styles_put
Destructive

Free. REPLACES the whole list of style presets, so send the complete list you want (from styles_get, changed): a partial list deletes the rest. At most 5, unique ids. A Premium voice is removed on save. It reads the saved list first and refuses if that read fails, and when a list is already saved it needs expected_updated_at (the updated_at from styles_get) so it never overwrites a newer change.

Args: presets: the full list, max 5, each {id, name, look:{preset, prompt}, voice, captions:{enabled, style, position?, size?, highlight?}, aspect, music_genre, length_s, watermark_key}. Captions position is middle|top (absent = bottom), size s|l (absent = m), highlight one of #FFE600 #00E5FF #7CFF4F #FF4FD8 #FF8A00 #FFFFFF (absent = the caption style's own). expected_updated_at: updated_at from styles_get.

Returns: {ok, updated_at}. Errors: conflict (changed since you read it: styles_get again), conflict_unchecked.

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": {
      "presets": "<presets>"
    },
    "name": "styles_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
presetsYes
expected_updated_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true; the description goes far beyond by explaining that a partial list deletes the rest, that Premium voices are dropped on save, that a pre-read must succeed or the call is refused, and that optimistic concurrency is enforced. This is exactly the destructive/irreversible context an agent needs before invoking.

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?

The destructive replacement warning is front-loaded before any structural detail, which is the right ordering. The Args block is dense but every clause carries a constraint; the lone 'Free.' opener is minor padding rather than a real cost.

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?

With no output schema, the description still documents the return shape ({ok, updated_at}) and both error codes (conflict, conflict_unchecked). Combined with the replacement semantics and concurrency requirement, an agent has everything needed to call and recover from this tool correctly.

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 coverage is 0%, so the description carries the full burden and does: it enumerates every preset field (id, name, look, voice, captions, aspect, music_genre, length_s, watermark_key), defines caption enum values and their defaults, caps the list at 5 with unique ids, and defines expected_updated_at as the updated_at from styles_get.

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 ('REPLACES the whole list of style presets') and immediately establishes the contrast with the read counterpart styles_get. An agent can tell this is a wholesale write of the preset collection, not an incremental patch.

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?

States the required workflow explicitly: read via styles_get, send the changed complete list, and supply expected_updated_at when a list already exists. It also names the failure path ('conflict ... styles_get again'), so the agent knows exactly when to re-read and retry.

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