Skip to main content
Glama

MySaaS Blog

Update post

post_update
Destructive

Edit any author-editable field of an owned post: per-locale title, slug, excerpt, contentHtml and SEO image/cover visibility; primaryLocale, categoryId, tags, sources, relatedSaasIds, access (FREE/PAID), and publication (draft/now/schedule with scheduledAt). Read post_get first and send expectedUpdatedAt. Only supplied fields change; omitted fields, locales, publication status and date are preserved. A slug change redirects the old URL. Empty relation arrays clear them; categoryId:null removes the category. Editing published/scheduled posts or publishing/scheduling requires posts:publish; private content requires posts:drafts:read. Run post_preflight with postId and the same patch. Change access, URLs or publication only when requested by the user. Report success only from the saved post returned by this tool.

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": {
      "postId": "<postId>",
      "post": "<post>"
    },
    "name": "post_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
postYes
postIdYes
idempotencyKeyNoOptional retry key. Reuse the same key with the same payload to deduplicate agent retries.

Output Schema

NameRequiredDescriptionDefault
okYes
postNo
errorNo
warningIssuesNo
blockingIssuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag the call as destructive and non-idempotent; the description goes well beyond that by disclosing the patch semantics (only supplied fields change, omissions preserve status/date/locale), the side effects (slug change creates a redirect), the clear semantics (empty relation arrays clear, categoryId:null removes category), and the distinct permissions required for each sensitive path (posts:publish, posts:drafts:read). It also warns that success must be read from the returned saved post rather than assumed.

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 scope, then prerequisites, then semantics, then permissions — a sensible order with no filler sentences. It is a single dense paragraph where a short bulleted split (prerequisites / semantics / permissions) would scan faster, but every sentence carries content.

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 destructive nested-patch tool with an output schema present, the description supplies everything an agent needs: ordering against post_get and post_preflight, the optimistic-concurrency token, partial-update and clearing behavior, redirect side effects, and per-branch authorization. Return values are correctly left to the output schema.

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?

With only 33% schema description coverage, the description does real compensatory work: it maps the patch field families, explains expectedUpdatedAt as a concurrency token, explains publication modes including scheduledAt, and states the preservation defaults for omitted fields. It stops short of documenting idempotencyKey or the translation array constraints (1–2 items, locale enumeration), which the schema covers but the prose does not reinforce.

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 and resource plus an explicit scope qualifier: 'Edit any author-editable field of an owned post', then enumerates the editable fields (translations, primaryLocale, categoryId, tags, access, publication). An agent immediately knows this is a partial-update tool for posts the caller owns, and the field list separates it from create/publish/translate siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete workflow prerequisites: 'Read post_get first and send expectedUpdatedAt' and 'Run post_preflight with postId and the same patch', plus a policy restriction ('Change access, URLs or publication only when requested by the user') and a reporting rule. What's missing is explicit routing against siblings that also change publication state (post_publish, post_schedule, post_update_draft) — the description describes the inline publication modes but never says when to prefer those dedicated tools.

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