LightCMS
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LIGHTCMS_URL | No | Server URL where LightCMS is running. | http://localhost:8082 |
| LIGHTCMS_API_KEY | Yes | API key generated from the LightCMS admin panel (required for stdio mode). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| acquire_content_lockA | Acquire an advisory lock on a content item for the current API user. Returns conflict if another user holds the lock. |
| approve_requestA | Approve an approval request. When all required approvals are collected the content is automatically published. |
| archive_forkA | Archive a fork without merging it. The fork and its pages are preserved but the fork becomes read-only. Requires admin role. |
| backfill_published_datesA | Give published pages that have no published date (created before v7.3.2) a published date equal to their creation date, for structured data and feeds. Metadata only: pages don't re-render. Use dry_run first to see the count. |
| bulk_create_contentA | Create up to 100 content items in a single call using efficient batch insert. Items are inserted via MongoDB InsertMany for maximum throughput. If one item fails (e.g., duplicate path), the rest continue. Published items get their static HTML generated in parallel (up to 10 concurrent). Set upsert: true to update existing pages at the same path instead of failing on duplicates. Returns: total attempted, succeeded, failed counts, and per-item {id, full_path, success, error} details. |
| bulk_field_operationA | Apply a single field operation to all matching content pages in one call. Operations:
Use scope filters to limit which pages are affected (content_ids, folder_path, template_name, category). Set dry_run: true to preview which pages would be changed without saving. Only live pages are changed: fork copies named in content_ids come back in "skipped" as {id, reason}. Example: {"operation": "prepend", "field": "disclaimer", "value": "Note: ", "template_name": "Blog Post"} |
| bulk_update_contentA | Update up to 100 content items in a single call. Use instead of calling update_content in a loop. Each update in the array specifies the content ID and only the fields you want to change (merge semantics on data). Use clear_fields to explicitly clear field values to empty string. Set dry_run: true to validate all IDs exist without committing changes. Returns: total attempted, succeeded, failed counts, and per-item success/error details. Tip: call list_content with include_data: true first to get IDs + current field values, transform as needed, then submit here. Recommended batch size: up to 50 per call for optimal performance. |
| cancel_approval_requestA | Cancel a pending approval request. |
| cancel_import_jobB | Cancel a running import job |
| cancel_scheduled_publishB | Clear the scheduled publish time for a content item. |
| create_approval_workflowC | Create a new approval workflow. Trigger types: all_contributor, folder_path, template_id, tag. Mode: sequential or concurrent. |
| create_collectionB | Create a new content collection. Collections display grouped content with custom templates. |
| create_commentA | Post a discussion comment on a content item. Requires discussion.post permission. |
| create_contentA | Create a new content item. Requires a template_id, title, slug, and the data fields defined by the template. Workflow:
Set use_header=true, use_footer=true, use_theme=true for pages that should use the site layout. Always include version_comment to make history readable. Content data fields support rich markup features:
|
| create_folderB | Create a new content folder. Folders create URL path segments for organizing content. |
| create_forkA | Create a new named fork workspace for staging content changes. A fork is an isolated workspace where you can edit copies of live pages without affecting the public site. When ready, an admin can merge the fork to push all changes live at once. Typical workflow:
Returns the fork ID needed for subsequent fork operations. |
| create_import_sourceB | Create a new RSS/Atom import source that automatically pulls content from a feed |
| create_redirectA | Create a new URL redirect. Use 301 for permanent redirects, 302 for temporary. |
| create_snippetA | Create a new snippet. Snippets are Go templates that render one content item in an lc:query index page. Reference by name: |
| create_templateB | Create a new template. Define fields with name, label, type (text, textarea, richtext, date, image, select), and options. |
| create_webhookA | Create a new webhook. Returns the generated HMAC-SHA256 secret ONCE — save it immediately. Valid event types: content.create, content.update, content.publish, content.unpublish, content.delete, comment.created, content.pending_approval, asset.pending_review |
| delete_approval_workflowC | Delete an approval workflow. |
| delete_assetA | Delete an asset from the library. Removes both the file and database record. |
| delete_collectionA | Delete a collection. This does not delete the content in the collection. |
| delete_commentB | Delete a discussion comment. Requires comment.delete permission (admin only). |
| delete_contentA | Soft-delete a content item. The content can be restored later. Removes the static HTML page. |
| delete_folderA | Delete an empty folder. Cannot delete folders that contain content or subfolders. |
| delete_forkA | Permanently delete a fork and all its page copies. Deleting a merged fork removes only its history record (and any leftover copies) — the merged live pages are not affected. Requires admin role. |
| delete_import_sourceC | Delete an RSS import source |
| delete_redirectC | Delete a redirect. |
| delete_snippetC | Delete a snippet by ID. |
| delete_templateA | Delete a template. Cannot delete system templates or templates that have content using them. |
| delete_webhookB | Permanently delete a webhook. |
| end_agent_sandboxA | End the sandbox session. action='submit' keeps the fork for human review and merge (at /cm/forks/{id}); action='discard' permanently deletes the fork and all its changes. Agents cannot merge their own sandbox — merging is a human decision. |
| end_user_searchB | Search published content using full-text exact match, semantic (AI) similarity, or hybrid mode. Returns page titles, paths, and snippets. |
| export_contentA | Export content items with their full field data as a structured JSON array. Use for batch transformations: export → transform externally → re-import via bulk_update_content. Scope filters (all optional):
Use fields: ["field1", "field2"] to include only specific data fields instead of all fields. Only live pages are exported: fork copies named in content_ids come back in "skipped" as {id, reason}. Returns: total count and array of items with id, title, slug, full_path, template_name, published, and data. |
| force_unlock_contentA | Admin only: force-release any lock on a content item regardless of who holds it. |
| fork_pageA | Copy a live page into a fork workspace so you can edit it without affecting the public site. Provide either:
Returns the fork page ID. Use this ID with update_content to make edits:
If the page is already in this fork, returns the existing fork copy. |
| get_agent_sandboxA | Show whether an agent sandbox is active, and if so its fork ID, name, and the pages changed so far (with per-field diffs against live). |
| get_agent_session_changesA | The audit ledger for an agent session: every content item it changed, with actions and timestamps. Defaults to the current MCP session. Requires audit permissions. |
| get_ai_trafficB | AI visibility report: requests from AI crawlers by purpose (training, AI search, user-initiated fetch) and by crawler, the pages AI reads most, visits referred by AI assistants (ChatGPT, Perplexity, Claude, Gemini…), and where they land. |
| get_approval_requestB | Get details of a single approval request including decisions so far. |
| get_approval_workflowB | Get a single approval workflow by ID. |
| get_assetA | Get asset metadata by ID or path. Does not return file content (use the serve path to access the file). |
| get_backlinksA | Find all published pages that link to the given URL path. Links are tracked automatically whenever a page is published — both [[Wikilinks]] and ordinary links in content fields are indexed. Use this to discover which pages reference a given page (wiki-style backlink graph), assess the impact of deleting or renaming a page, or find orphaned pages with no inbound links. Example: {"path": "/about"} returns every published page whose content contains a link to /about. |
| get_collectionB | Get a collection by ID. |
| get_contentA | Get a single content item by ID or path. Returns full content including all field data (title, slug, full_path, data fields, published state). Prefer path when you know the URL: {"path": "/about"} Use id when you have the MongoDB ObjectID: {"id": "abc123"} Set include_rendered=true to also receive the fully rendered HTML output (template + theme header/footer applied). Useful for verifying what visitors see without publishing. Tip: to preview unsaved edits before publishing, use preview_content instead. |
| get_content_lockA | Get the current advisory lock status for a content item. Returns lock holder and expiry, or {locked: false} if unlocked. |
| get_content_versionB | Get a specific version of a content item with full field data. |
| get_content_versionsB | Get the version history for a content item. Returns list of versions with timestamps. |
| get_folderC | Get a folder by ID. |
| get_forkA | Get details of a fork workspace including its status and list of pages. Returns: fork metadata + array of pages (id, title, full_path, updated_at). Use the page id with get_content or update_content to read/edit fork pages. |
| get_fork_diffA | Per-field differences between each page in a fork and its live counterpart — the review surface for merging a fork. Status 'added' means the page exists only in the fork. |
| get_import_jobB | Get the status, results, and log of a specific import job |
| get_indexnow_statusA | IndexNow notifies Bing, Yandex and other engines when pages change. Returns whether it is active (and why not if inactive), the key file URL, whether the key file verified, total URLs submitted, and recent submissions with HTTP results. |
| get_link_check_resultsB | Get the status and results of a link check job. Status is "running", "done", or "failed". |
| get_maintenance_reportA | The latest site-health scan: stale pages (no update in ~6 months), published pages missing meta descriptions, and lingering drafts. Use it as a work queue — fix issues via the sandbox workflow. |
| get_seo_settingsB | The site's search & AI settings: AI crawler policy (training / AI search / user fetch, per-crawler overrides) with the resulting robots.txt, Markdown copies, default author/publisher for structured data, and feed settings. |
| get_site_configB | Get site configuration including title templates. |
| get_snippetB | Get a snippet by ID. |
| get_templateA | Get a single template by ID or slug. Returns full template including fields and HTML layout. |
| get_themeA | Get current theme settings including colors, fonts, and custom HTML for header/footer. |
| get_theme_versionB | Get a specific version of theme settings with full data. |
| get_theme_versionsA | Get the version history for theme settings. Returns list of versions with timestamps. |
| import_csvB | Import content from CSV data. Each row becomes a content page. Specify which column is the title; all columns become content fields. |
| import_markdownA | Import one or more Markdown pages into LightCMS. Each page can include YAML frontmatter (title, slug, folder, template, published, publish_at). Ideal for bulk content creation by AI agents — generate markdown with frontmatter and import directly. Example frontmatter:title: My Page slug: my-page folder: /blog template: Blog Post published: falsePage body content here. |
| list_approval_requestsA | List pending approval requests. Use filter=mine to see only requests in your queue. |
| list_approval_workflowsA | List all configured approval workflows. Requires approval.manage_workflows permission. |
| list_asset_foldersA | List all unique folder paths in the asset library. |
| list_assetsB | List all assets in the asset library. Assets are files like images, documents, CSS, JS, etc. |
| list_audit_logsA | List recent audit log entries. Admin only. Supports filtering by action and resource type. |
| list_collectionsA | List all content collections. Collections group and display content by category. |
| list_commentsB | List all discussion comments on a content item. |
| list_contentA | List all content items with optional filters. Returns content metadata including title, path, publish status, and timestamps. Add include_data: true to get full field data for all items in one call, or include_fields: ["field1", "field2"] to fetch only specific fields — both avoid per-item get_content calls for bulk workflows. Up to 20 concurrent update_content calls are safe. For larger batches, prefer bulk_update_content (up to 100 items per call). |
| list_foldersB | List all content folders. Folders organize content into URL path segments. |
| list_forksA | List all content fork workspaces. Forks let you stage changes to multiple pages as a batch before merging them live. Each fork shows its status (active/merged/archived), page count, and who created it. Use get_fork to see the specific pages in a fork. |
| list_import_jobsB | List recent import jobs with their status and results |
| list_import_sourcesB | List all configured RSS/Atom import sources |
| list_redirectsA | List all URL redirects configured for the site. |
| list_scheduled_contentA | List all unpublished content items that have a scheduled publish time set. |
| list_snippetsA | List all snippets. Snippets are reusable Go-template HTML fragments used in lc:query index page directives. |
| list_templatesB | List all available templates. Templates define content structure with fields and HTML layout. |
| list_webhook_deliveriesB | List recent delivery attempts for a webhook. |
| list_webhooksA | List all registered webhooks. Secrets are never returned. |
| merge_forkA | Merge all pages in a fork workspace into live content. Requires admin role. For each page in the fork:
After merging, the fork status changes to "merged", its page copies are deleted, and the created/updated counts are kept on the fork record. Published live pages are regenerated immediately. Returns: updated and created counts, created_ids and updated_ids (live page IDs), not_published (new pages publish_new left as drafts, with the reason), and any conflicts detected. ALWAYS confirm with the user before merging, as this pushes changes to the live site. |
| pin_theme_versionA | Lock a theme version so it is protected from automatic pruning or accidental overwrite. Pinned versions are marked with locked=true in get_theme_versions. Use this to preserve milestone theme states (e.g., after a major redesign) before making further changes. Example: {"version": 5} |
| preview_contentA | Render a content item's HTML without saving or publishing. Use this to verify what a page will look like before publishing. Also accepts optional title/data overrides to preview unsaved edits: {"id": "abc123", "data": {"body": "New text"}} Returns rendered_html and any warnings (missing required fields, unclosed tags, unresolved placeholders). |
| publish_contentA | Publish a content item, making it visible on the public site. Generates the static HTML page. |
| publish_multipleA | Publish multiple content items in a single call. Use this instead of calling publish_content in a loop. Examples:
Held pages and fork copies are never published by this tool: they come back in "skipped" as {id, reason}. publish_all_drafts ignores fork copies entirely. Returns published IDs, skipped items, and any failures. |
| purge_fork_copiesA | Delete the page copies still attached to a merged or archived fork. Requires admin role. Merges clean up after themselves since v7.4; forks merged before that kept their copies. Live pages are never touched, and the fork record is kept. Active forks are refused. Use dry_run: true first to see the count and the list of {id, full_path}. Returns the number deleted and writes an audit log entry. |
| regenerate_all_contentA | Regenerate all published static HTML pages. Use after major theme or template changes. |
| regenerate_webhook_secretA | Generate a new HMAC-SHA256 signing secret for a webhook. The old secret stops working immediately. The new secret is returned ONCE — save it. |
| reindex_embeddingsA | Regenerate vector embeddings for all published content. Required after initial setup or if embeddings become stale. |
| reject_requestA | Reject an approval request. A comment explaining the rejection is required and will be posted to the content's discussion thread. |
| release_content_lockA | Release the advisory lock on a content item held by the current API user. |
| remove_fork_pageA | Remove a page from a fork workspace (discards the fork copy, does not affect the live page). |
| restore_contentA | Restore a soft-deleted content item. Regenerates static page if content was published. |
| revert_theme_to_versionA | Revert theme to a previous version. Creates a new version with the old data. |
| revert_to_versionA | Revert content to a previous version. Creates a new version with the old data. |
| rollback_agent_sessionA | Undo every content change made by an agent session as a unit: content the session created is soft-deleted, deleted content is restored, and updated content reverts to its latest pre-session version. Defaults to the current MCP session ("undo everything I did"). Non-content changes (templates, settings) are listed for manual review but not auto-reverted. |
| run_maintenance_scanA | Run a site-health scan now and return the fresh report. Scans also run automatically once a day. |
| schedule_content_publishA | Set a future publish date/time for a content item. The scheduler automatically publishes it when the time arrives. |
| scoped_search_replace_executeA | Execute a search-and-replace limited to a subset of pages. ALWAYS run scoped_search_replace_preview first and show results to the user before executing. Scope options (all optional):
Set auto_republish: true to immediately re-publish all previously-published pages after updating them, collapsing the execute + publish_multiple flow into one call. Only live pages are changed: fork copies named in content_ids come back in "skipped" as {id, reason}. Example: {"search": "old text", "replace": "new text", "folder_path": "/blog", "auto_republish": true, "version_comment": "Updated old references"} |
| scoped_search_replace_previewA | Preview a search-and-replace limited to a subset of pages. Safer than site-wide replacement. Scope options (all optional — leave blank to match all pages):
Only live pages are searched: fork copies named in content_ids come back in "skipped" as {id, reason}. Example: {"search": "old text", "replace": "new text", "folder_path": "/blog"} Always run preview before execute. |
| search_contentB | Search across all content items by title or full text. Returns matching content with paths and match context. |
| search_replace_executeA | Execute a site-wide search-and-replace across all content. Modifies every matching page permanently. MANDATORY workflow:
Set auto_republish: true to immediately re-publish all previously-published pages after updating them, collapsing the execute + publish_multiple flow into one call. For targeted replacements, use scoped_search_replace_execute instead. |
| search_replace_previewA | Preview a site-wide search-and-replace without making any changes. ALWAYS run this before search_replace_execute. Returns: affected page count, total match count, and per-page field breakdown. Only live pages are searched; fork copies are never matched or rewritten. For targeted replacements (a folder, template, or category), use scoped_search_replace_preview instead. |
| set_indexnow_enabledA | Turn automatic IndexNow submission on or off for this site (on by default). |
| start_agent_sandboxA | Start a sandboxed editing session backed by a content fork ("pull request for content"). While the sandbox is active:
Recommended for any multi-page or risky editing task. End with end_agent_sandbox. |
| start_link_checkA | Start an asynchronous broken-link check across all published content. Returns a job_id immediately. Poll get_link_check_results(job_id) until status is "done". Example workflow: start_link_check() → {job_id: "abc123"} get_link_check_results("abc123") → if status=="running", wait and retry; if "done", review broken_links |
| submit_for_approvalB | Explicitly submit a content item for editorial approval. Contributors must submit content for approval before it can be published. |
| submit_indexnowA | Submit pages to IndexNow now. Changes are already submitted automatically on publish/update/delete; use this to resubmit specific paths, or all=true to submit every published page (once per hour max). |
| trigger_import_sourceA | Manually trigger an RSS import source to run immediately |
| unpin_theme_versionA | Remove the lock from a previously pinned theme version. Example: {"version": 5} |
| unpublish_contentA | Unpublish a content item, removing it from the public site. Removes the static HTML page. |
| update_approval_workflowC | Update an existing approval workflow. |
| update_collectionC | Update a collection's settings. |
| update_contentA | Update an existing content item by ID. Creates a new version automatically. Only send fields you want to change. For partial data updates, only the keys you include in "data" are changed — existing keys are preserved (merge semantics). Use clear_fields: ["field1", "field2"] to explicitly set fields to empty string. Set dry_run: true to validate the update without saving. To update by URL path instead of ID, use update_content_by_path. Always include version_comment so the version history is useful. Up to 20 concurrent update_content calls are safe. For larger batches (>20 items), prefer bulk_update_content instead. Example: {"id": "abc123", "data": {"body": "Updated text"}, "version_comment": "Revised intro paragraph"} Content data fields support rich markup features:
|
| update_content_by_pathA | Update content identified by its URL path instead of its ID. Useful when you know the page URL but not the MongoDB ID. Example: {"path": "/about", "title": "About Us", "data": {"body": "Updated content"}} The path always resolves to the live page, never to a fork copy (inside an agent sandbox the write goes to the sandbox copy as usual). Only the fields you provide are changed. Always include a version_comment describing what changed. |
| update_import_sourceC | Update an RSS import source configuration |
| update_redirectC | Update an existing redirect. |
| update_seo_settingsA | Change search & AI settings. Only the fields you pass change. Blocking AI training crawlers does not affect Google/Bing search. |
| update_site_configC | Update site configuration. Title templates support {{title}} and {{site_name}} placeholders. |
| update_snippetA | Update an existing snippet's name and/or HTML template. |
| update_templateA | Update an existing template. Changing the HTML layout will regenerate all content using this template. |
| update_themeA | Update theme settings. Only the fields you provide are changed — all other settings are preserved (partial update, safe to call without get_theme first). Changing header_html or footer_html triggers background regeneration of all published pages. Changing colors, fonts, or custom_css does NOT require content regeneration. Use pin_theme_version to protect important milestones before making major changes. |
| update_webhookB | Update an existing webhook (name, URL, events, active). Partial update — only provided fields change. |
| upload_assetA | Upload or replace an asset in the asset library. Re-uploading to the same serve_path replaces the existing file in place — no need to delete first. Provide file content via one of:
Validates file type and MIME type for security. |
| upload_asset_from_urlA | Fetch a public URL and store it as a LightCMS asset. Useful for importing images or files from the web without downloading them locally first. Example: {"url": "https://example.com/logo.png", "serve_path": "/assets/logo.png", "description": "Site logo"} If serve_path is omitted, the filename is derived from the URL. Returns id, serve_path, mime_type, and size. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Recent Content | Recently modified content items |
| Site Structure | Current site structure including pages, folders, and collections |
| Theme Configuration | Current theme settings including colors, fonts, and header/footer |
TDQS
Scored across 129 tools
Most tools target clearly distinct resources, but several clusters create real ambiguity: the fork tools (create_fork/fork_page/merge_fork) vs the sandbox tools (start_agent_sandbox/end_agent_sandbox) describe the same underlying mechanism, search_replace_execute vs scoped_search_replace_execute vs preview variants overlap, and update_content vs update_content_by_path vs bulk_update_content compete for the same job. Detailed descriptions help, but an agent still has to reason carefully about which of several near-duplicates to pick.
Names overwhelmingly follow a predictable verb_noun snake_case pattern (list_content, get_content, create_content, update_content, delete_content), with parallel families for templates, folders, collections, snippets, redirects, webhooks, and approvals. Minor deviations exist — get_theme_version (singular) alongside get_theme_versions, force_unlock_content vs acquire/release_content_lock, and import_csv/import_markdown — but they remain readable and semantically consistent.
129 tools is excessive even for a broad CMS domain, far past the 50+ 'extreme mismatch' threshold. Many operations could be consolidated (e.g., separate lock get/acquire/release/force, singular/plural version getters, three publish paths), so each tool does not clearly earn its place.
The surface is remarkably complete: full content CRUD plus versions, soft-delete/restore, drafts/publish/scheduling, locks, comments, templates/fields, folders, collections, snippets, themes with versioning, assets, webhooks, redirects, imports, approval workflows, forks/sandbox staging, SEO/IndexNow, maintenance scans, and audit logs. Almost no lifecycle gap is left uncovered.