Skip to main content
Glama

posts_create

Idempotent

Save a draft with the exact text and attachments you provide. Review the returned problems before publishing. Reuse the same idempotency key if the response is lost. A new draft uses one post creation from the workspace's UTC-day allowance.

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": {
      "content": "<content>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "posts_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoSeparate platform title. Use null to clear it.
contentYesThe exact post body, including hashtags.
mediaIdsNoWorkspace media IDs in display order.
platformNoPlatform ID, if no account is selected.
idempotencyKeyYesReuse the same key for retries of this exact request. A different request with this key is a conflict.
targetAccountsNoAt most one connected account ID from accounts.list.
targetSettingsNoPlatform-specific destination settings, including a Reddit community, optional link, and custom video cover.

Output Schema

NameRequiredDescriptionDefault
dataYes
problemsYesActions required before this draft is ready for publishing. An empty list means the checks passed.
replayedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / targetSettings / properties / coverMediaId / description
      Previous value: -"Optional workspace image ID for a custom cover on a video post to Douyin, Xiaohongshu, Bilibili, Kuaishou or WeChat Channels."New value: +"Workspace image ID for a custom video cover on Douyin, Xiaohongshu, Bilibili or WeChat Channels (tencent). Attach exactly one video in mediaIds and supply the cover image ID here."
  2. Changed3 schema fields changed
    • changedInput schema / properties / targetSettings / description
      Previous value: -"Platform-specific destination settings, including a Reddit community and optional link."New value: +"Platform-specific destination settings, including a Reddit community, optional link, and custom video cover."
    • addedInput schema / properties / targetSettings / properties / coverMediaId
      Added value: +{
      +  "description": "Optional workspace image ID for a custom cover on a video post to Douyin, Xiaohongshu, Bilibili, Kuaishou or WeChat Channels.",
      +  "pattern": "^c[a-z0-9]{24}$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / properties / targets / items / properties / latestAttempt / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "createdAt": {
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -        "type": "string"
      -      },
      -      "errorCode": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "errorMessage": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "externalId": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "externalUrl": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "finishedAt": {
      -        "anyOf": [
      -          {
      -            "format": "date-time",
      -            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "sequence": {
      -        "type": "string"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "startedAt": {
      -        "anyOf": [
      -          {
      -            "format": "date-time",
      -            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "sequence",
      -      "status",
      -      "source",
      -      "externalId",
      -      "externalUrl",
      -      "errorCode",
      -      "errorMessage",
      -      "startedAt",
      -      "finishedAt",
      -      "createdAt"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "createdAt": {
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +        "type": "string"
      +      },
      +      "errorCode": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "errorMessage": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "externalId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "externalUrl": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "finishedAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "sequence": {
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "startedAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "description": "Warnings on successful publication. COVER_NOT_APPLIED identifies the platform where Freepost could not apply the full custom video cover. Older Douyin publications may use DOUYIN_COVER_NOT_APPLIED.",
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "const": "COVER_NOT_APPLIED",
      +                  "type": "string"
      +                },
      +                "platform": {
      +                  "enum": [
      +                    "douyin",
      +                    "xiaohongshu",
      +                    "bilibili",
      +                    "kuaishou",
      +                    "tencent"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "platform"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "const": "DOUYIN_COVER_NOT_APPLIED",
      +              "type": "string"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "sequence",
      +      "status",
      +      "source",
      +      "externalId",
      +      "externalUrl",
      +      "errorCode",
      +      "errorMessage",
      +      "startedAt",
      +      "finishedAt",
      +      "createdAt"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / platform
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Primary target's platform. Null when the post has no target."
      +}
    • addedOutput schema / properties / data / properties / targetAccounts
      Added value: +{
      +  "description": "Connected account IDs in target order. Empty when no account is assigned.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "id",
      -  "title",
      -  "content",
      -  "status",
      -  "compositionId",
      -  "createdAt",
      -  "updatedAt",
      -  "scheduledAt",
      -  "publishedAt",
      -  "workspaceId",
      -  "variants",
      -  "targets",
      -  "media",
      -  "targetSummary"
      -]New value: +[
      +  "id",
      +  "title",
      +  "content",
      +  "platform",
      +  "targetAccounts",
      +  "status",
      +  "compositionId",
      +  "createdAt",
      +  "updatedAt",
      +  "scheduledAt",
      +  "publishedAt",
      +  "workspaceId",
      +  "variants",
      +  "targets",
      +  "media",
      +  "targetSummary"
      +]
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (not read-only, idempotent, non-destructive, closed-world), and the description adds real context beyond them: a draft consumes one post creation from the workspace's UTC-day allowance, and a successful save can still return problems to review. It doesn't explain what happens on quota exhaustion, which is the main remaining gap.

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?

Four short sentences, each doing distinct work: action, follow-up check, retry semantics, quota cost. No filler, and the core action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with a nested settings object and an output schema, the description covers the non-obvious operational details (quota consumption, retry keying, problems to review) while leaving return shape to the output schema. Only quota-exhaustion behavior is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents every parameter including idempotencyKey conflict semantics and targetSettings. The description only reinforces the 'exact text' intent for content and the retry use of the idempotency key, adding little the schema doesn't already say.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource: 'Save a draft with the exact text and attachments you provide.' That clearly separates it from posts_publish ('Review the returned problems before publishing'), though no sibling is named explicitly.

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

Usage Guidelines3/5

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

It gives a workflow hint — review returned problems before publishing — and a retry rule for lost responses, which implies the draft→validate→publish path. It never states when to choose posts_update or posts_validate instead, so the routing guidance is implied rather than explicit.

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