Skip to main content
Glama

Create a CMS collection

create_collection

Creates a collection: from blank (a required Title field) or a starter (Blog posts, Projects, Team, Products, Events, Jobs, Testimonials, FAQ, with fields and sample items), plus extra fields and page settings. On a Xodia template or a Vite React site with React Router it also installs the CMS kit when missing and creates the collection page (src/pages/collections/Page.tsx on //:slug) with its route: never hand-write collection.json, item files or that page's route. Plain HTML sites and React sites on another router (TanStack Router file routes) get the collection only: no kit, no and no collection page, so items are edited in the Content tab and with the item tools, and the answer says what pages can do instead. 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. Reference fields (up to 10 a collection) need their target collection to exist first.

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": {
      "name": "<name>",
      "projectId": "<projectId>"
    },
    "name": "create_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOptional id (the folder name); default from the name
fromNo"blank" (a Title field only; add yours in fields) or a starter with its fields and sample items: blog (Blog posts), projects (Projects), team (Team), products (Products), events (Events), jobs (Jobs), testimonials (Testimonials), faq (FAQ)blank
nameYesThe collection's name, like "Blog" or "Team"
pageNoCollection page settings (same as update_collection page)
branchNoOptional branch; default the branch the workspace has open
fieldsNoFields to add after the starter's (or after Title on blank)
pluralNo
samplesNoStarters: write their sample items (default true). Use false when you add your own items next
singularNoOne item, like "Team member"
projectIdYesProject id from list_projects
urlFolderNoOptional: item pages are /<urlFolder>/<slug>; one or more folder levels ("blog", "resources/blog"); default from the starter or the id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say it is a non-destructive write; the description adds real behavioral context: writes land on the branch the workspace has open (matching the Content tab), changes are saved immediately, and pushing to Git/publishing remain the user's responsibility. It also discloses plan limits (Free: 2 collections, 100 items) and the 10-reference-field cap.

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?

It is front-loaded: what the tool creates comes first, then environment-dependent behavior, then persistence, then limits. The single dense paragraph is long and some clauses (e.g. re-explaining starter names) are close to redundant with the schema, but nearly every sentence carries decision-relevant information, so it stays efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex 11-parameter mutation with nested objects, and the description covers side effects, environment branches, persistence, and pricing limits — the gaps an agent would otherwise hit. What it does not cover is the return value or idempotency on name/id collisions, which matters given there is no output schema, though 91% schema coverage offsets this somewhat.

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 91%, so parameter descriptions already do most of the work and the baseline is 3. The description still adds meaning the schema does not, notably that reference fields need their target collection to exist first and that the generated page lives at /<urlFolder>/:slug, tying urlFolder to page generation.

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 and enumerates the two creation modes (blank with a required Title field, or one of the listed starters) plus the additional effects (extra fields, page settings). It also discloses the side effects an agent would not guess from the name: installing the CMS kit and generating src/pages/collections/<Name>Page.tsx with its route on capable sites.

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?

It gives explicit when-to-use/when-not guidance: on Xodia templates or Vite+React Router sites the kit and page are created automatically and the agent must never hand-write collection.json, item files, or the route; on plain HTML or TanStack Router sites only the collection is created and items are edited via the Content tab and item tools. It also states prerequisites (reference target collections must exist, paid plan needed to convert a folder).

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