Skip to main content
Glama

Add content

content_add

Add content to your app. Use it to post news, add a date to the agenda or a place to the map, upload pictures to an album, or add a paragraph, a quote, a picture or a video to a post. Without content_id: create an article, an event, a map place or a video, with its first body blocks if you pass them, or add 1 to 10 photos to a gallery (type photo). With content_id: add blocks (text, photo, quote, embed) to an existing item or page body (type page). Up to 10 blocks per call, written in order. A new item is published at once unless status says otherwise. To create, title and category_ids are required (read the categories with content_get, type section); an event also needs starts_at and ends_at, a map place address, latitude and longitude, a video player_embed. Not possible: creating a sound, a caption on a photo of an article or an event. A page of the app (a section, in content_get) or a category is added with myapp_add, not here. The answer gives the new ids; a refusal names the field to fix. Content is visible in the app as soon as it is published, without the Publish of the back office (only design changes made with myapp_change wait for it); to create an item without showing it, pass status draft, or stock to publish it later.

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": {
      "type": "<type>"
    },
    "name": "content_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate shown on the item, RFC 3339 with offset, for example 2026-11-02T10:00:00+01:00. Article, event, video.
slugNoLast part of the item's web address; the server may normalise it. Not for photo.
typeYesThe content type. article, event, map and video are created here; photo adds photos to a gallery; sound only receives blocks, with content_id. page adds blocks to the body of an About or Form page, with content_id, the page id.
emailNoContact email. Map place and event.
phoneNoContact phone number. Map place and event.
titleNoTitle of the item, 250 characters at most. Required to create an article, an event, a map place or a video; the title of a photo goes in photos.
accessNopremium puts the item behind the paid access of the app (apps that sell access); free leaves it open. Not for photo.
authorNoAuthor name shown on the item. Article, video. Default: the name of the account holder.
blocksNoBody blocks to write, in reading order, 10 at most. Text and quote take text; photo takes image; embed takes embed.
photosNoPhoto only, required: 1 to 10 photos to add to the gallery.
pinnedNotrue pins the item at the top of its category. Article, video.
statusNoPublication status: published (default), draft (unfinished, not visible) or stock (set aside, not visible, to publish later). A photo is only published or stock. To schedule: stock with publish_at.
addressNoPostal address. Map place (required) and event.
all_dayNoEvent only: true when the event lasts the whole day.
ends_atNoEvent only, required: end, same format, after starts_at (the same day or later when all_day is true).
summaryNoShort summary shown with the title, plain text (read back as leadin). Article, event, map place and video.
websiteNoMap place only: web address of the place.
latitudeNoLatitude in decimal degrees. Map place (required) and event. Never make coordinates up: ask the user when they are unknown.
pin_iconNoMap place only: its pin on the map: 1 marker (default), 2 flag, 3 star, 4 pushpin, 5 circle, or a custom image as a public URL, a data URI or base64.
event_urlNoEvent only: web address of the event's own page.
insert_atNoWith content_id: place of the first added block, 1 being the top; the next ones follow it. Omit to add at the end. Without content_id, refused: the call would create a new item.
longitudeNoLongitude in decimal degrees. Map place (required) and event.
pin_colorNoMap place only: tint of the pin, #RGB or #RRGGBB. An empty string removes the tint.
seo_titleNoTitle for search engines. Not for photo.
starts_atNoEvent only, required: start, RFC 3339 with offset, for example 2026-12-12T20:00:00+01:00 (read back as sortDate).
content_idNoAdd the blocks to this existing item instead of creating a new one. Article, event, map place, video and sound. For type page: the page id, read with myapp_get_app.
publish_atNoFuture date and time at which a stock item publishes itself, RFC 3339 with offset. Only with status stock. Not for photo.
section_idNoPhoto only, required: the gallery section that receives the photos (id read with content_get, type section, section_type photo).
free_blocksNoArticle only, with access premium: number of blocks readable before the paywall, 0 to 5.
tickets_urlNoEvent only: web address where tickets are sold.
category_idsNoIds of the categories the item is filed in, at least one, all of its own content type (read with content_get, type section). Required to create an article, an event, a map place or a video.
player_embedNoVideo only, required: the video player, as iframe HTML or embed code from the video host, with an explicit width and height (for example 100%).
unpublish_atNoFuture date and time at which the item stops being shown, RFC 3339 with offset. Not for photo.
seo_descriptionNoDescription for search engines. Not for photo.
comments_enabledNoWhether app users may comment on the item. Not for photo.
thumbnail_as_pinNoMap place only: true shows the thumbnail of the place as its pin (the thumbnail is a photo block with is_thumbnail).
show_summary_in_listNoArticle only: show the summary in lists. Only when free_blocks is 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / blocks / items / properties / caption / description
      Previous value: -"Photo block: caption shown under the image. Refused on an article, whose photos have no caption."New value: +"Photo block: caption shown under the image. Refused on an article or an event, whose photos have no caption."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that items publish instantly without the back-office Publish step, that draft/stock hide the item, that blocks are written in order with a 10-block cap, that the response returns new ids, and that a refusal names the field to fix. What is missing is any statement about rate limits, auth requirements, or what happens to existing blocks when content_id is used with insert_at.

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?

Long, but front-loaded with the plain purpose and then organized by conditional mode rather than meandering. A minority of the text restates per-field rules that also live in the schema (caption refusal, coordinates), which is mild redundancy for a 37-parameter tool but not bloat that obscures the call.

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 single tool that creates five content types and appends blocks to two others, the definition covers mode selection, per-type required fields, ordering semantics, publication/visibility lifecycle, and the error contract. With no output schema, the note that "the answer gives the new ids" closes the return-value gap as well.

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 already 100%, so the baseline is 3, but the description earns more by consolidating the conditional requirements that the schema spreads across 37 fields: title and category_ids to create, starts_at/ends_at for events, address/latitude/longitude for map places, player_embed for video. That cross-field dependency summary is the main thing an agent needs and it is stated in one place.

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?

States a specific verb+resource ("Add content to your app") and then enumerates the concrete outcomes: post news, add an agenda date, a map place, gallery photos, or blocks to a page body. It also explicitly disclaims sibling territory ("A page of the app ... or a category is added with myapp_add, not here"), so an agent can route correctly without reading two schemas.

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?

Divides usage into the two operating modes with explicit headings ("Without content_id:" / "With content_id:") and names the required fields for each creation type. It also lists impossible cases ("Not possible: creating a sound, a caption on a photo of an article or an event") and names the alternative tool for out-of-scope objects, which is the full when/when-not/alternative triad.

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.