# validate_post

Source: https://heyeveryone.ai/docs/mcp/validate_post

> Check a post against a platform's rules before scheduling it: text length (counted the platform's way, e.g. X's weighted count where links are 23 characters), thread length, media count, types, sizes, video length and aspect ratio, alt text, and required settings. Returns issues in plain words; 'error' issues block publishing, 'warning' issues don't. Pass postId for a saved post, or channelAccountId (or platform) with format, segments (text plus mediaAssetIds from the media library) and settings for a draft. A Sandbox account that emulates a platform is checked by that platform's rules and takes its prefixed formats (x__text, tiktok__video...). Reads only; nothing is saved.

Check a post against a platform's rules before scheduling it: text length (counted the platform's way, e.g. X's weighted count where links are 23 characters), thread length, media count, types, sizes, video length and aspect ratio, alt text, and required settings. Returns issues in plain words; 'error' issues block publishing, 'warning' issues don't. Pass postId for a saved post, or channelAccountId (or platform) with format, segments (text plus mediaAssetIds from the media library) and settings for a draft. A Sandbox account that emulates a platform is checked by that platform's rules and takes its prefixed formats (x__text, tiktok__video...). Reads only; nothing is saved.

## Access and cost

- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "postId": {
      "format": "uuid",
      "type": "string"
    },
    "channelAccountId": {
      "format": "uuid",
      "type": "string"
    },
    "platform": {
      "enum": [
        "x",
        "linkedin",
        "threads",
        "bluesky",
        "instagram",
        "facebook",
        "tiktok",
        "youtube",
        "sandbox"
      ],
      "type": "string"
    },
    "format": {
      "pattern": "^[a-z][a-z0-9_]*$",
      "type": "string"
    },
    "segments": {
      "items": {
        "properties": {
          "text": {
            "type": "string"
          },
          "media": {
            "items": {
              "properties": {
                "mediaAssetId": {
                  "format": "uuid",
                  "type": "string"
                },
                "altText": {
                  "maxLength": 2000,
                  "type": "string"
                }
              },
              "required": [
                "mediaAssetId"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "text",
          "media"
        ],
        "type": "object"
      },
      "maxItems": 100,
      "minItems": 1,
      "type": "array"
    },
    "settings": {
      "default": {},
      "type": "object"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "platform": {
      "enum": [
        "x",
        "linkedin",
        "threads",
        "bluesky",
        "instagram",
        "facebook",
        "tiktok",
        "youtube",
        "sandbox"
      ],
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "publishable": {
      "type": "boolean"
    },
    "issues": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "severity": {
            "enum": [
              "error",
              "warning"
            ],
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "path": {
            "items": {
              "type": [
                "string",
                "number"
              ]
            },
            "type": "array"
          },
          "limit": {
            "type": "number"
          },
          "actual": {
            "type": "number"
          }
        },
        "required": [
          "severity",
          "code",
          "message",
          "path"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "platform",
    "format",
    "publishable",
    "issues"
  ],
  "type": "object"
}
```

## Errors

```json
[]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Check a post against a platform's rules"
}
```
