Create and update articles with MCP
Let an AI assistant create and edit articles through MCP: body, template fields, tags, translations and files. You review its drafts.
Once an assistant is connected to Elium through MCP, it can save new content in Elium and edit existing articles. It can choose the template of a new article and fill its fields, add tags, attach files and add a translation. Its changes are saved as drafts by default: you review them in Elium, then follow your usual publication or approval process. When content is missing, it can also file an article request for the managers of a space.
| Tool | What it does |
|---|---|
createArticle | Creates an article from Markdown, in a space or in your personal space, with its template, fields, tags and attached files, when writing is enabled. |
updateArticle | Changes the title, the body or the template fields of an article, attaches files or removes its main document, and saves a draft when writing is enabled. |
createArticleTranslation | Adds a language to a translated article, as a draft. |
tagArticle | Adds or removes tags on an article, without creating a draft. |
findSections | Lists the sections (folders) in a space. |
getContentSyntax | Returns the Markdown specification used for article bodies. |
checkArticleBody | Validates a Markdown body before creating an article. |
getUploadUrl | Gives the assistant an address to upload a file to, so it can attach the file to an article. |
createTag | Creates a tag in a tag category, or returns the tag of that name if it already exists. |
updateTag | Renames a tag or moves it to another category. Administrators only. |
createTagCategory | Creates a tag category. Administrators only. |
updateTagCategory | Renames a tag category or changes who can add tags to it. Administrators only. |
createRequest | Files an article request in a space, for missing content or a substantial change to an article. |
updateRequest | Changes the title or the description of a request, or the articles linked to it. |
commentOnRequest | Adds a comment to a request. |
Before it writes, an assistant looks up what it needs with the read tools: the template and its fields with readTemplate, the tags with findTagCategories and findTags, and the users with findUsers. These tools are described in Search and read content with MCP.
createArticle
Ask your connected assistant to save content in Elium, for example: "Create a draft called Meeting notes in the Operations space from this Markdown, with the Meeting template, tagged Finance."
- Ask the assistant to find the space with
findSpacesand check that you can create content there. - To create an article of a given type, name its template. The assistant finds it with
findTemplatesand reads its fields withreadTemplate. - Provide the article title and Markdown body. The assistant sends these with the space identifier, the template, the field values and the tags to
createArticle. It creates a draft by default (publish: false). - Open the returned article link in Elium. Review the draft, then follow your usual publication or approval process.
You can explicitly ask the assistant to publish the new article (publish: true). Your space permissions still apply: the article may need approval before publication. The result includes the article identifier, its link and whether it was published. An unpublished result can mean either a draft or an article awaiting approval.
The tool accepts standard Markdown, including tables, task lists, strikethrough, footnotes, maths, subscripts and superscripts. For syntax examples, see Markdown input format. Use the standard Markdown forms for this tool; it does not offer the Elium Markdown import mode.
If the importer reports formatting or content it cannot preserve, the request is rejected before creating an article. Ask the assistant to correct the reported issues and try again.
Personal space
To keep the article private, ask for your personal space, for example: "Save these notes as a draft in my personal space." The assistant then sends no space_id, and the article is created in your personal space, where only you can see it.
The personal space has no sections, so the assistant sends no section_id either. Only templates installed in every space are accepted there. If your role has no personal space, the request is refused: the assistant must then choose a space with findSpaces.
Template and fields
The assistant can create the article from a template (template_id). The template must be installed in the chosen space; for an article in your personal space, it must be installed in every space. Once the article exists, no MCP tool can change its template.
It fills the template fields with fields: one key and one value per field, as readTemplate lists them. Every required field must receive a value, or the request is refused and nothing is saved. The assistant cannot fill fields holding rich text, a file, JSON data or an event: complete them in Elium.
A field that holds a user or a tag takes an identifier, not a name. The assistant looks it up with findUsers or findTags.
When the template has a starting body, the assistant writes the article from it: it keeps the headings and structure, and fills in or replaces the placeholder text.
Tags
The assistant adds tags with tag_ids, found with findTags. Each tag must belong to a category that applies to the chosen space, and every category that is mandatory in that space needs a tag. findTagCategories shows, for a space, which categories apply and which are mandatory. When a template field is tied to a tag category, the tags of that category are set through the field, not through tag_ids. If a tag is refused, the request fails and nothing is saved.
Language
By default, the article is created without translations. To create a translated article, the assistant gives the language of the title and body (language, a code such as en or fr). It must be one of the content languages of your platform. The article can then receive its other languages with createArticleTranslation.
Attached files
The assistant can attach files it has uploaded with getUploadUrl: see that tool below.
updateArticle
Ask your connected assistant to change a specific passage, for example: "In the travel policy, replace the meal allowance of €25 with €30, set the Country field to Belgium and save a draft."
- Ask the assistant to read the article first, including its latest draft if it has unpublished changes.
- Describe the changes. For a passage, the assistant sends the exact existing Markdown and its replacement. For a field, it sends the key and the new value. It should include the version it read, so Elium rejects the update if a newer version exists. For a translated article, it must also name the language it read; only that translation changes.
- Open the returned article link in Elium. Review the draft, then follow your usual publication or approval process. The tool never publishes the changes.
Each passage must match exactly one location unless the assistant explicitly requests all matches. A replacement can be empty to delete text. If a passage is missing, ambiguous or overlaps another edit, the whole request is rejected and nothing changes. Edits are also refused while someone else is editing the article. After a version conflict, ask the assistant to read the latest draft before trying again.
The tool can change the title (title), the body and the template fields (fields) in one request, or any one of them on its own. Only the fields it names change; the others keep their value. A required field cannot be emptied. Field values are not translated: a value set in one language shows in every language of the article. The tool can add a short comment to version history and reports any formatting adjustments. For supported formatting, see Markdown input format.
The result gives the article link, the number of edits applied and whether an earlier version of the article is published (is_article_published). That value describes the article as it already stands, not the update, which is always saved as a draft. When it is true, readers keep seeing the published version until you publish the new one.
The tool cannot change the template of an article. It does not change its tags either: use tagArticle for that.
Main document
The tool can also remove the article's main document (remove_main_asset: true): the file or link shown above the content, which readArticle returns as main_asset. The main document is shared by all languages of the article, so one request removes it from every language, in the same new draft. If the article has no main document, the whole request is refused and nothing changes. The tool cannot add or replace a main document: do that in Elium.
createArticleTranslation
Ask your connected assistant to add a language to an article, for example: "Translate the travel policy into French and save the translation as a draft."
- Ask the assistant to read the article in one of its existing languages.
- The assistant writes the title and body in the new language (
language, a code such asfr) and sends them tocreateArticleTranslation. It can include the version it read, so Elium rejects the translation if the article has changed since then. - Open the returned article link in Elium. Review the draft, then follow your usual publication or approval process.
The translation is always saved in a new draft, even when the article is published. Once added, the new language is edited like any other, with updateArticle.
Only the title and the body are translated. The template, its fields, the tags and the main document are shared by all languages and stay as they are.
tagArticle
Ask your connected assistant to change the tags of an article, for example: "Tag the travel policy with Finance and remove the Draft tag."
- Ask the assistant to read the article: the result lists its current tags with their identifiers.
- The assistant finds the tags to add with
findTags, then sends the identifiers to add and to remove totagArticle. - The result lists the tags the article now carries, with a link to the article.
Tags are not part of the article's versions. The change applies immediately, without a new draft, and readers of the article see it at once.
The same rules as for createArticle apply: a tag must belong to a category that applies to the article's space; the last tag of a category that is mandatory in that space cannot be removed; and a tag from a category tied to a template field is set with updateArticle, through that field. If a tag is refused, nothing changes.
findSections
Lists the sections (folders) a space uses to organise its articles. Only spaces configured for it have sections; the result is empty for the others, and articles created there are simply left unsorted.
Each result includes the section identifier, its full path (parent names separated by " / ") and its description when set. The description usually explains what belongs in that section.
Pass the section id as the section_id parameter of createArticle to file a new article in that section.
getContentSyntax
Returns the Markdown specification used for article bodies. This documents every block and inline element with its attributes, the Markdown and HTML forms each one takes, and the elements each kind of document accepts.
Read it before writing or editing a body that needs more than paragraphs, lists and links. This is the dialect readArticle returns and createArticle and updateArticle expect.
The tool takes no arguments and returns the specification as Markdown. The same document is also available as a resource at elium://content/syntax.
checkArticleBody
Dry-runs the import of an article body and reports what it would be stored as. Nothing is written.
This is the check createArticle runs before it writes anything: a body that comes back as importable is one the tool will accept. Compare the returned canonical_markdown with what you sent: markup Elium does not recognise is dropped or kept as text, which shows there rather than as a problem.
The result includes:
-
importable: whethercreateArticlewould accept this body -
canonical_markdown: the body as it would be stored, rendered back to Markdown -
problems: what the import would lose or rewrite, one line each
Use this before createArticle when the body contains complex formatting. If problems are reported, ask getContentSyntax to learn the supported markup, fix the body, and check again.
getUploadUrl
Ask your connected assistant to attach a file, for example: "Attach this PDF to the meeting notes and mention it at the end."
A file cannot travel through the MCP connection itself. This tool gives the assistant an upload address and a temporary authorisation, valid for 15 minutes and for as many files as needed. The assistant then sends each file itself, with a direct HTTP request, and attaches it to an article.
- The assistant calls
getUploadUrland uploads the file to the returned address. The upload returns a token. - It passes that token in the
attachmentsofcreateArticleorupdateArticle, with a new identifier (UUID) it generates for the file. - It places an
<el-asset>block with that identifier in the body, where the file should appear. - The file is attached to the article like a file added from the editor. Open the returned link to check it.
Only an assistant that can run an HTTP request itself, from a shell or a code tool for instance, can upload files this way. Otherwise, it should ask you to attach the file in Elium yourself.
createTag
Ask your connected assistant to tag an article with a tag that may not exist yet, for example: "Tag this article with Logistics. Create the tag if it does not exist."
The tool creates a tag in a tag category (category_id, from findTagCategories), or returns the existing tag of that name in that category. The assistant should look for an existing tag with findTags first, and create one only when none fits. The name is saved in your language.
In a restricted category, only administrators can add tags. The can_create_tags value returned by findTagCategories tells the assistant whether you can.
Tag administration tools
Three tools are reserved for administrators, for requests such as "Rename the tag Logistic to Logistics" or "Create a Country tag category for the Sales space, mandatory".
-
updateTagrenames a tag or moves it to another category. The change applies to every article carrying the tag. Its names in the other languages are kept. -
createTagCategorycreates a category with a name and, optionally, the spaces it applies to (every space by default), whether it is restricted and whether it is mandatory in those spaces. -
updateTagCategoryrenames a category or changes whether it is restricted.
All three need writing enabled on the platform and the mcp:write scope. A category cannot hold two tags of the same name.
Article requests
When Elium has no answer to a question, an assistant can ask the managers of a space for the missing content with an article request. The three tools below create, edit and comment on requests. To list and read requests, the assistant uses findRequests and readRequest.
The three tools are only available when article requests are enabled on your platform. They also need writing enabled and the mcp:write scope.
createRequest
Ask your connected assistant to report what is missing, for example: "Nothing explains how to book a meeting room. Ask the Office team for an article."
- The assistant finds the space with
findSpacesand checks that you can file a request there (can_add_request). That is the case when requests are enabled in the space and you can read its content. - It checks with
findRequeststhat no request already asks for the same content. If one exists, it adds a comment to that request. - It shows you the space, the title and the description of the request. It should file the request only after you agree.
- Open the returned link to see the request in Elium. The managers of the space get a notification.
A request has a title and a description in Markdown. The description gives your question, what you looked for and why you need it. The assistant can also link the articles that the request is about (related_article_ids): the article that needs a change, or articles related to the missing content.
Use a request for missing content, or for a substantial change to an article. To correct a typo or the wording of a sentence, edit the article or comment on it.
updateRequest
Changes the title or the description of a request, or the articles linked to it. A new description replaces the current one in full. The assistant can link articles that answer the request (add_article_ids) and remove links (remove_article_ids).
Only the requester, the assignee and the managers of the space can edit a request. The can_edit value returned by readRequest tells the assistant whether you can.
commentOnRequest
Adds a comment in Markdown to the discussion of a request, for example to explain what is missing or to ask about its progress. The requester and the managers of the space get a notification.