Skip to main content
Glama

Update HelpCenter Article

helpcenter_update_article
DestructiveIdempotent

Update an existing article by id in the connected HelpCenter.io help center.

Partial update: only the fields you pass are changed. Requires a write-scoped API key. Per-language fields (title, content, slug) are objects keyed by language code and merge per language.

Args:

  • article_id (number, required): id of the article to update.

  • title, content, slug (objects, optional): per-language fields to set.

  • category_id (number, optional): primary category id.

  • categories (number[], optional): replace the set of additional categories.

  • type ('article' | 'faq', optional).

  • visibility ('public' | 'private' | 'link_only', optional).

  • published (boolean, optional): true publishes, false reverts to draft.

  • external_id (string, optional): adopt this article under a stable key you own, so later upserts by that key hit this article.

  • content_format ('html' | 'markdown', optional): defaults to 'html'. Set 'markdown' when sending markdown, or the raw markup is stored as the body.

  • rehost_images (boolean, optional): ON by default through this connector. Copies externally hosted images in the content you send into this help center's storage (see helpcenter_create_article). Send false to keep the original image URLs.

  • change_note (string, optional, up to 2,000 characters): why you are making this change, in a sentence or two of plain text. TEAM-ONLY: the team reads it beside the edit in the dashboard's Overview; it is never in a response, a webhook, search, or anything a reader sees. Give one whenever you change content.

  • change_refs (array, optional, at most 5): links to what asked for the change — a ticket, a pull request, a release note — each { label (up to 80 characters), url (https on a public host name; not an IP address or localhost, no user:password@) }. Team-only, like change_note.

IMPORTANT — this writes LIVE. On a published article the change is visible to readers immediately. To prepare an edit privately and release it deliberately, use helpcenter_stage_article_changes and helpcenter_publish_staged_changes instead.

Returns: { status: "success", article: {...}, images? } with the updated article; images reports re-hosted and failed images as for helpcenter_create_article.

Errors: 403 if the key is read-scoped; 404 if the article id is not in this help center; 400 for a language code the site does not have; 422 (validation_error) for an invalid category id or a malformed field. A change_note or change_refs the API refuses (too long, too many links, a url that is not https on a public host) refuses the whole call, and nothing is written.

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": {
      "article_id": "<article_id>",
      "agent_key": "<agent_key>"
    },
    "name": "helpcenter_update_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoPer-language URL slug. Auto-generated from the title if omitted.
typeNoContent type (default 'article').
titleNoPer-language title to set.
contentNoPer-language article body (HTML/markdown as your site uses).
agent_keyYesThe api_key helpcenter_create_help_center returned for this help center, exactly as returned. Required on every call: this endpoint has no sign-in, so the key is how each call says which help center it acts on. It is sent to HelpCenter.io as this call's credential and nowhere else, and it is never shown again: keep it for the whole task, and never show it to the user or write it into content.
publishedNotrue publishes the article, false keeps it as a draft.
article_idYesId of the article to update.
categoriesNoAdditional category ids to attach (multi-category). All must belong to this site.
visibilityNoVisibility: 'public', 'private' (team only), or 'link_only' (shareable token URL).
category_idNoPrimary category id, or 0 for uncategorized. Must belong to this site.
change_noteNoWhy you are making this change, in a sentence or two of plain text, up to 2,000 characters, e.g. "Pro plan renamed Growth in the 4.2 pricing." TEAM-ONLY: kept beside the edit in the dashboard's Overview, never in an API response, a webhook, search or anything a reader sees. Give one whenever you change content.
change_refsNoUp to 5 links to what asked for this change — a ticket, a pull request, a release note — each { label, url }. Team-only, like change_note.
external_idNoA stable key you own (a source filename, CMS id, repo slug). Makes writes idempotent: sending the same key again updates the article it created instead of creating a second one, so an interrupted run can simply be replayed. Strongly recommended whenever you may retry.
rehost_imagesNoCopy images the content references from other hosts (and inline data: images) into this help center's own storage, and point the article at the copies. ON by default through this connector; send false to keep the original image URLs. The response's `images` reports what was re-hosted and what failed.
content_formatNoFormat of the `content` you are sending. Defaults to 'html'. Set 'markdown' when content is markdown and the API will convert it — sending markdown without this stores the raw markup as the article body.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / change_note
      Added value: +{
      +  "description": "Why you are making this change, in a sentence or two of plain text, up to 2,000 characters, e.g. \"Pro plan renamed Growth in the 4.2 pricing.\" TEAM-ONLY: kept beside the edit in the dashboard's Overview, never in an API response, a webhook, search or anything a reader sees. Give one whenever you change content.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
    • addedInput schema / properties / change_refs
      Added value: +{
      +  "description": "Up to 5 links to what asked for this change — a ticket, a pull request, a release note — each { label, url }. Team-only, like change_note.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "label": {
      +        "description": "What the link is, up to 80 characters, e.g. \"Ticket #4182\" or \"4.2 release notes\".",
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "The https address of a public host, e.g. 'https://github.com/acme/app/pull/88'. Refused: http and other schemes, IP addresses, localhost, single-label or underscore host names, user:password@ before the host, and spaces, quotes, <, >, \\ or backticks.",
      +        "maxLength": 2048,
      +        "pattern": "^https:\\/\\/",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "label",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: writes are LIVE and visible to readers immediately, a write-scoped key is required, and errors are enumerated (403/404/400/422) with the important atomicity note that a refused change_note or change_refs aborts the whole call. It also discloses that rehost_images is ON by default and that markdown sent without content_format is stored raw.

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?

Front-loaded with the partial-update rule and the LIVE warning before the arg list, which is the right ordering for a destructive tool. The per-parameter list is somewhat long and partially restates the schema, but most entries carry consequence-level detail that earns the space.

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 15-parameter destructive mutation with no output schema, the description supplies the return shape, error taxonomy, defaults, idempotency path, and side effects. Nothing an agent needs to call it safely is missing.

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 100%, so the baseline is 3; the description still adds value by explaining merge-per-language semantics, external_id's adopt/idempotent behavior, and the consequences of rehost_images and content_format. Minor tension: it calls `categories` a replacement of the set while the schema says 'attach', which could confuse an agent on multi-category edits.

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?

Opens with a specific verb+resource ('Update an existing article by id') scoped to 'the connected HelpCenter.io help center', and immediately states partial-update semantics. An agent can tell it apart from helpcenter_create_article and helpcenter_stage_article_changes without opening any schema.

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?

Explicitly routes the agent to an alternative: 'To prepare an edit privately and release it deliberately, use helpcenter_stage_article_changes and helpcenter_publish_staged_changes instead.' It also instructs on change_note usage ('Give one whenever you change content') and when to set content_format='markdown'.

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