Skip to main content
Glama

Update a CMS item

update_item
Destructive

Changes one item: values (only the ones you send; null or "" clears one), newSlug (renames the file and its URL), draft (false publishes it with the site), publishedAt, order. Checked against the fields like create_items; a wrong type is refused with the field and why. With locale (a language from list_locales): writes that language's translation of the item instead (content//..md): values for translatable fields only (shared fields are refused: they are the same in every language), newSlug as the item's slug in that language, draft as that language's publish state (a new translation is a draft unless draft is false); publishedAt and order can't take a locale. Translate only when the user asks. Writes go to the branch the workspace has open, the same as the Content tab. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. Works on every plan within its collection and item limits (Free: 2 collections and 100 items a site); turning a folder into a Xodia collection needs a paid plan.

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": {
      "collection": "<collection>",
      "slug": "<slug>",
      "projectId": "<projectId>"
    },
    "name": "update_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe item to change
draftNofalse publishes it with the site. With locale: this language's publish state
orderNo
branchNoOptional branch; default the branch the workspace has open
localeNoOptional: a language code from list_locales (not the default) to read or write the item in that language; leave out for the default language
valuesNoChanged values only; null or "" clears one. With locale: translatable fields only
newSlugNoRenames the item (its URL changes: add a redirect when it was published). With locale: the item's slug in that language only
projectIdYesProject id from list_projects
collectionYesThe collection id (its folder under content/), from list_collections
publishedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=false, and the description adds substantial behavior: edits save immediately but Git push and publishing remain the user's job, writes land on the workspace's open branch, a rename changes the URL and needs a redirect if published, wrong types are refused with the field and reason, and plan limits apply. The clearing semantics (null or "" wipes a value) make the destructive hint concrete.

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 main action and partial-update semantics are front-loaded, and the sentences are information-dense without filler. The nested parentheticals around locale make the middle section harder to parse than necessary, but nothing is truly redundant.

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 10-parameter mutation with no output schema, the description covers the failure mode (type validation with field-level messages), side effects (file/URL rename, immediate save), environment behavior (open branch, per-plan limits), and the full locale interaction matrix. Nothing an agent needs in order to call this correctly is 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 already 80%, but the description adds cross-parameter rules the schema cannot express: locale switches the write target to a translation file, only translatable fields are accepted there, newSlug becomes the per-language slug, draft becomes that language's publish state, and publishedAt/order are invalid with locale. It also clarifies that values are partial updates where null or "" clears a field. The branch default is the one notable point left mostly to the schema.

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?

"Changes one item" states a specific verb and resource, then enumerates exactly which fields can change (values, newSlug, draft, publishedAt, order). It is immediately distinguishable from create_items and get_item, which appear in the siblings list.

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 strong conditional guidance: use locale only when the user asks for a translation, and translate only when asked. It explains that publishedAt and order cannot take a locale and that shared fields are refused in locale mode. It stops short of naming a read alternative (e.g., get_item) for inspecting an item before editing, so it is clear context rather than a full when/when-not 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