Skip to main content
Glama

update_post

Idempotent

Edit a draft or scheduled post IN PLACE: same post id, no delete and re-create. Send only what changes. scheduledAt moves it to a new future time (ISO 8601 with Z or an offset such as +02:00) and also schedules a draft; draft=true takes it out of the queue. content replaces the text, mediaUrls replaces the media list, accountIds replaces the target accounts (ids from list_integrations; an account may be added only on networks that need no extra per-post choices, such as X, LinkedIn, Facebook, Instagram, Threads, Bluesky, Mastodon, Telegram, Discord, Farcaster). The same per-network limits as schedule_post apply. Published, publishing and failed posts cannot be edited (409). The old time can no longer fire once the call returns; the post publishes at the new time. Moving a draft into the queue counts toward the plan post limit; moving an already scheduled post does not. CAPABILITY: publish: this can reach a LIVE AUDIENCE. A draft-scoped token gets a 403 here; a human must approve at timetopost.co instead.

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>"
    },
    "name": "update_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNotrue: unschedule it and keep it as a draft
postIdYesPost id (from schedule_post or list_posts)
contentNoReplacement text/caption
dmFunnelNoAdd or edit the post's Instagram DM funnel (same shape as schedule_post dmFunnel); null pauses it. Works on published posts too (goes live at once).
mediaUrlsNoReplacement media list ([] removes all media)
accountIdsNoReplacement target account ids from list_integrations
scheduledAtNoNew future time, ISO 8601 with Z or an offset such as +02:00
firstCommentNoReplacement first comment (same shape as schedule_post firstComment). null or "" removes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dmFunnel / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Instagram comment-to-DM funnel created WITH this post (needs an Instagram target and comment management on the workspace). When someone comments a keyword, they get dmTemplate as a private reply (and publicReplyTemplate under their comment, if set). It is ON by default and goes live the moment the post publishes (within seconds of each comment); active:false saves it paused. Switching it on needs a publish-capable token; a draft-only token saves it paused. The response carries dmFunnel.status (live | waiting_for_publish | paused) and dmFunnelError when it could not be switched on.",
      -    "properties": {
      -      "active": {
      -        "description": "false = save paused. Default true.",
      -        "type": "boolean"
      -      },
      -      "dailyCap": {
      -        "maximum": 50,
      -        "minimum": 1,
      -        "type": "number"
      -      },
      -      "dmTemplate": {
      -        "description": "DM text written by the human. {{link}} marks where the link goes; without it the link is appended.",
      -        "maxLength": 1000,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "integrationId": {
      -        "description": "Instagram integration id; only needed when the post goes to several Instagram accounts.",
      -        "type": "string"
      -      },
      -      "keywords": {
      -        "description": "Comment keywords, e.g. [\"CHECKLIST\"]. Case, width and apostrophes are ignored.",
      -        "items": {
      -          "maxLength": 64,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 20,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "leadUrl": {
      -        "description": "HTTPS link sent in the DM. With trackClicks false, this exact URL is sent.",
      -        "type": "string"
      -      },
      -      "linkTags": {
      -        "additionalProperties": false,
      -        "description": "Farm tags for the tracked go short link (https://go.<product>/<slug>).",
      -        "properties": {
      -          "accountHandle": {
      -            "description": "Account handle the post runs on.",
      -            "maxLength": 80,
      -            "type": "string"
      -          },
      -          "campaign": {
      -            "description": "Product or campaign label.",
      -            "maxLength": 60,
      -            "type": "string"
      -          },
      -          "channel": {
      -            "description": "Platform label, default instagram.",
      -            "maxLength": 32,
      -            "type": "string"
      -          },
      -          "note": {
      -            "maxLength": 200,
      -            "type": "string"
      -          },
      -          "postLabel": {
      -            "description": "Post id or label.",
      -            "maxLength": 80,
      -            "type": "string"
      -          },
      -          "slug": {
      -            "description": "Readable short-link slug. Default <product>-<handle>-<post>.",
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "name": {
      -        "maxLength": 100,
      -        "type": "string"
      -      },
      -      "promoCode": {
      -        "description": "Optional active Stripe promotion code, appended as ?promo=.",
      -        "type": "string"
      -      },
      -      "publicReplyTemplate": {
      -        "description": "Optional public reply under the comment, e.g. \"Sent you a DM!\".",
      -        "maxLength": 500,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "trackClicks": {
      -        "description": "Track link clicks (default true). False sends leadUrl exactly as given: no redirect, no shortener, no added parameters.",
      -        "type": "boolean"
      -      },
      -      "utmCampaign": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "keywords",
      -      "dmTemplate",
      -      "leadUrl"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Instagram comment-to-DM funnel created WITH this post (needs an Instagram target and comment management on the workspace). When someone comments a keyword, they get dmTemplate as a private reply (and publicReplyTemplate under their comment, if set). It is ON by default and goes live the moment the post publishes (within seconds of each comment); active:false saves it paused. Switching it on needs a publish-capable token; a draft-only token saves it paused. The response carries dmFunnel.status (live | waiting_for_publish | paused) and dmFunnelError when it could not be switched on.",
      +    "properties": {
      +      "active": {
      +        "description": "false = save paused. Default true.",
      +        "type": "boolean"
      +      },
      +      "dailyCap": {
      +        "description": "Most DMs this funnel sends per day, to protect the account.",
      +        "maximum": 50,
      +        "minimum": 1,
      +        "type": "number"
      +      },
      +      "dmTemplate": {
      +        "description": "DM text written by the human. {{link}} marks where the link goes; without it the link is appended.",
      +        "maxLength": 1000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "integrationId": {
      +        "description": "Instagram integration id; only needed when the post goes to several Instagram accounts.",
      +        "type": "string"
      +      },
      +      "keywords": {
      +        "description": "Comment keywords, e.g. [\"CHECKLIST\"]. Case, width and apostrophes are ignored.",
      +        "items": {
      +          "maxLength": 64,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 20,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "leadUrl": {
      +        "description": "HTTPS link sent in the DM. With trackClicks false, this exact URL is sent.",
      +        "type": "string"
      +      },
      +      "linkTags": {
      +        "additionalProperties": false,
      +        "description": "Farm tags for the tracked go short link (https://go.<product>/<slug>).",
      +        "properties": {
      +          "accountHandle": {
      +            "description": "Account handle the post runs on.",
      +            "maxLength": 80,
      +            "type": "string"
      +          },
      +          "campaign": {
      +            "description": "Product or campaign label.",
      +            "maxLength": 60,
      +            "type": "string"
      +          },
      +          "channel": {
      +            "description": "Platform label, default instagram.",
      +            "maxLength": 32,
      +            "type": "string"
      +          },
      +          "note": {
      +            "description": "Free-text note stored with the short link.",
      +            "maxLength": 200,
      +            "type": "string"
      +          },
      +          "postLabel": {
      +            "description": "Post id or label.",
      +            "maxLength": 80,
      +            "type": "string"
      +          },
      +          "slug": {
      +            "description": "Readable short-link slug. Default <product>-<handle>-<post>.",
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "name": {
      +        "description": "Human label for the funnel in dashboards. Defaults to a generated name.",
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "promoCode": {
      +        "description": "Optional active Stripe promotion code, appended as ?promo=.",
      +        "type": "string"
      +      },
      +      "publicReplyTemplate": {
      +        "description": "Optional public reply under the comment, e.g. \"Sent you a DM!\".",
      +        "maxLength": 500,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "trackClicks": {
      +        "description": "Track link clicks (default true). False sends leadUrl exactly as given: no redirect, no shortener, no added parameters.",
      +        "type": "boolean"
      +      },
      +      "utmCampaign": {
      +        "description": "Value for the utm_campaign parameter appended to leadUrl.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "keywords",
      +      "dmTemplate",
      +      "leadUrl"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses consequential behavior: the old scheduled time can no longer fire once the call returns, moving a draft into the queue counts toward the plan post limit while rescheduling an already scheduled post does not, and a draft-scoped token gets a 403 requiring human approval at timetopost.co. The 'no delete and re-create' framing is consistent with destructiveHint=false and repeated identical payloads being safe matches idempotentHint=true.

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?

The critical scoping statement is front-loaded in the first sentence and every subsequent sentence carries distinct information (replacement semantics, limits, 409/403 behavior). It is dense and long, but no sentence is filler; the density is the only cost to readability.

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 an 8-parameter mutation tool with no output schema, the description covers the failure modes an agent must anticipate (409 for published/failed posts, 403 for draft-only tokens, human approval path), the side effects on scheduling and plan limits, and the replacement semantics of the optional fields.

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 would be 3, but the description adds real meaning: scheduledAt both reschedules and can move a draft into the queue, draft=true pulls a post out of the queue, and content/mediaUrls/accountIds are replacements rather than merges. It does not elaborate on the complex dmFunnel or firstComment objects beyond pointing to their schedule_post equivalents.

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?

The description opens with a specific verb and resource plus scope: 'Edit a draft or scheduled post IN PLACE: same post id, no delete and re-create.' It explicitly distinguishes this from delete/re-create workflows and, by implication, from schedule_post (creating new posts) and publish_post.

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?

It states exactly when to use it ('Send only what changes') and when it will not work ('Published, publishing and failed posts cannot be edited (409)'). It also documents prerequisites for specific edits, e.g. an account may only be added on networks needing no extra per-post choices, and that the same per-network limits as schedule_post apply.

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.