Skip to main content
Glama

Create CMS items

create_items

Creates up to 50 items in one call, each checked against the collection's fields (required, types, options, validation, references to existing items or items in this call). Items that fail are listed with their index and field problems and the others are still written: send only the failed ones again. Values never go into page code: pages show them through the CMS kit, on sites that have it. Values by field type: plainText and richText a string (richText is Markdown; the field marked body is the item file's body), image {"src": "/images//x.webp" or https URL, "alt": "..."}, multiImage a list of those, videoLink an https URL, link an https URL, a /path, mailto: or tel:, email, phone, number a number, date "YYYY-MM-DD", dateTime an ISO date and time, switch true or false, color "#rrggbb", option the option id, file a path or URL, reference the target item's slug, multiReference a list of slugs. null or "" clears a value on update. New items are drafts unless draft is false. 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>",
      "items": "<items>",
      "projectId": "<projectId>"
    },
    "name": "create_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
branchNoOptional branch; default the branch the workspace has open
projectIdYesProject id from list_projects
collectionYesThe collection id (its folder under content/), from list_collections

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?

Beyond the non-read-only, non-destructive annotations, it discloses important behavior: per-field validation, partial success where valid items are still written, immediate save without Git push or publish, and plan/collection limits. The note that values never go into page code and are surfaced via the CMS kit is context an agent could not infer from annotations alone.

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?

Purpose and the 50-item limit are front-loaded, and the field-type list is dense but necessary. However, the paragraph is one long run-on, and the trailing plan/billing remark about converting folders into collections is tangential to create_items and slightly dilutes focus.

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 four-parameter batch write with no output schema, the description supplies the missing return semantics (failed items with index and field errors), default draft behavior, branch targeting, and per-type value formats. An agent has enough to call this correctly on the first attempt.

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%, and the description compensates heavily for the free-form `values` object by enumerating the exact value shape for each field type (image object, multiImage list, date format, reference slug, etc.) and by explaining that null or an empty string clears a value. It does not add much on branch or order beyond the schema, keeping it just below the top mark.

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 sentence names the specific verb and resource ('Creates ... items'), states the batch cap of 50, and scopes the operation to a collection, which cleanly separates it from list_items, get_item, and delete_items. The agent knows exactly what the tool does without opening 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 clear operational context: new items default to drafts, writes go to the workspace's open branch, and failed items should be resent alone rather than re-sending the whole batch. It stops short of explicit when-not or alternative-tool guidance (e.g., adding values to existing items versus page code), so it lands at 4 rather than 5.

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