Skip to main content
Glama

Update a CMS collection

update_collection
Destructive

Changes a collection: settings (name, singular, plural, urlFolder, which moves the item pages with their route, the links to them and redirects for published ones, reservedSlugs, sort, manualOrder, groups, translatable and translatedOnly for the site's languages), collection page settings (page: SEO title and description templates with {field} tokens, Open Graph, canonical, noindex, JSON-LD, custom code) and fields: add, update (label, required, help, options, reference target, validation, default, translatable), rename (moves the key in every item, the page settings and code bindings of files that name the collection, in one reviewable change), reorder (every id) and delete (refused when items hold values unless allowDataLoss: ask the user first). dryRun counts what rename and delete would touch. Parts run in that order; each part that fails is listed and the rest still apply. 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>",
      "projectId": "<projectId>"
    },
    "name": "update_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoCollection page settings: titleTag and metaDescription templates with {field} tokens ("{title} | Blog", "{summary}"; system tokens slug, createdAt, updatedAt, publishedAt, "|date" formats a date), ogTitle and ogDescription ("sameAsSeo" or a template), ogImageField (an image field id), canonical, noindex (true or a switch field id), jsonLd {preset: article, product, event, jobPosting or custom, template}, customCode {head, bodyEnd} with tokens (values HTML-escaped). Replaces the whole page object; null clears it
branchNoOptional branch; default the branch the workspace has open
dryRunNoOnly count what rename and delete would change; writes nothing
fieldsNo
settingsNo
projectIdYesProject id from list_projects
collectionYesThe collection id (its folder under content/), from list_collections
allowDataLossNoDeleting a field that items have values in is refused unless this is true. Ask the user first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive write and closed-world, but the description goes well beyond them: parts run in a fixed order, each failing part is listed while the rest still apply, rename touches item keys, page settings and code bindings "in one reviewable change", saves land in the open branch only, and Git push/publishing remain the user's action. Plan limits (Free: 2 collections, 100 items) are also disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is largely load-bearing, but it is delivered as one dense run-on paragraph with deeply nested parentheses, and the actual when-to-use framing sits buried near the end. Front-loading the verb is good; the readability of a definition this consequential suffers.

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 an eight-parameter nested mutation tool with no output schema, the description covers execution order, partial-failure semantics, dry-run behavior, data-loss protection, and persistence scope. An agent has enough to call this correctly and warn the user before destructive changes.

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 75%, so the baseline is 3, but the description adds genuine meaning the schema cannot: urlFolder "moves the item pages with their route, the links to them and redirects for published ones", reservedSlugs reserves item-level slugs for static pages, and {field} tokens are explained for page settings. The allowDataLoss/data-loss refusal is reinforced in prose as well.

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?

The opening clause names a specific verb and resource ("Changes a collection") and then enumerates the three change surfaces: settings, collection page settings, and fields (add/update/rename/reorder/delete). That level of specificity distinguishes it from create_collection and update_item without the reader needing the 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 real conditional guidance: delete is refused when items hold values unless allowDataLoss, "ask the user first"; dryRun is for counting rename/delete impact; translatable is "Only when the user asks". It does not explicitly contrast itself with update_item or create_collection, so the sibling routing is inferred rather than stated.

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