Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

Edit Style Details

edit_style_details
DestructiveIdempotent

Update a Magic Lane Studio style's name, description, tags, or purposes without changing its content; resend with the latest version to resolve save conflicts.

Instructions

Change the name, description, tags and/or purposes of one of your Magic Lane Studio styles. Only the fields sent change: "" clears description, [] clears tags or purposes (never send null). The style content is not touched (use update_style for that). Send the "version" last read as baseVersion; a conflict means the style was saved since — read it again and resend. Limits: name 1–100 characters without line breaks; description up to 1000; up to 20 tags of 1–16 characters without commas; purposes only from the fixed list. Templates cannot be edited. Requires "Studio: Read & write". Publishing, reverting and deleting styles, previews, thumbnails and privacy settings are Studio actions (https://developer.magiclane.com/studio) and are not available through these tools; a save here only saves.

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": {
      "id": "<id>",
      "baseVersion": "<baseVersion>"
    },
    "name": "edit_style_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of one of your styles (UUID); a template cannot be changed.
nameNoStyle name, 1–100 characters, no line breaks or tabs.
tagsNoFree-text tags. Replaces the whole list; [] clears it. Up to 20, each 1–16 characters, no commas; duplicates are removed.
purposesNoPurposes the style is meant for. Replaces the whole list; [] clears it. Only these values: browse, navigation-car, navigation-truck, navigation-bike, navigation-pedestrian, satellite, elevation; duplicates are removed.
baseVersionYesThe "version" string of the style as last read (from get_style, list_styles, create_style or a previous write), unchanged. Opaque: never parse or edit it. If the style was saved since (for example in Studio) the write is refused with a conflict and nothing changes.
descriptionNoDescription, up to 1000 characters, line breaks allowed. "" clears it.

Output Schema

NameRequiredDescriptionDefault
idYesStyle id (UUID).
nameYesStyle name.
noteNoPresent when the save's outcome was unclear (its answer was lost, or it was sent twice) and reading the style back confirmed the change.
tagsYesFree-text tags.
updatedYesLast save, ISO date-time.
versionYes
purposesYesWhat the style is meant for, such as "browse".
publishedYesWhen the style was last published, or that it never was.
isTemplateYesTrue for a shared template, which cannot be changed.
resolutionYes
descriptionYesStyle description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true, and openWorldHint=true; the description adds real context beyond them: partial-update semantics (only sent fields change), explicit clearing rules ("" and [] , never null), template immutability, the "Studio: Read & write" permission requirement, and that a save here does not publish. The conflict/baseVersion explanation is the main behavioral disclosure. It stops short of saying whether the replaced tag/purpose lists are recoverable, which is the one gap against destructiveHint=true.

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 with purpose, then clearing rules, then the sibling pointer, then conflict handling, then limits and exclusions — a sensible priority order with no filler. Minor redundancy: the length limits (100/1000/20 tags) are restated from the schema, costing a sentence that doesn't add information.

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 mutation tool with an output schema and full annotation coverage, this covers everything an agent needs: which fields are editable, how to clear them, how to avoid conflicts, auth scope, template restriction, and what the tool deliberately does not do. Return values are correctly left to the output 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 description coverage is 100%, so the schema already documents id, name, tags, purposes, description and baseVersion, including the character limits. The description adds semantics the schema does not: "only the fields sent change," "never send null," and the read-again-and-resend recovery loop for baseVersion conflicts, which is the highest-value parameter guidance here.

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 ("Change the name, description, tags and/or purposes of one of your Magic Lane Studio styles") and immediately bounds the scope by saying content is untouched and pointing to update_style for that. An agent can distinguish it from update_style, create_style, and the read siblings without opening any 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?

Gives explicit routing: use update_style for content, templates cannot be edited, and publishing/reverting/deleting/previews/thumbnails/privacy are Studio actions outside these tools, with a link. It also sets the retry protocol for conflicts (re-read and resend), which is exactly the when-to-use guidance an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.