Die Suche lädt erst bei Nutzung. Durchsuche unten alle Kategorien.

MCP-Tool

Community-Kommentar erstellen

sosoapi_create_comment

Reihe einen genauen Kommentar zu einem kanonischen Beitrags- oder Kommentarziel ein; der Status bedeutet keinen Anbietererfolg.

Als Markdown lesen

Profile und Transporte

Profile: core, full · Transporte: stdio, http

Wähle core oder full für die sichtbaren Tools deines Clients; dies ändert keine Berechtigungen. Lokaler Dateiupload benötigt stdio und ist über HTTP nicht verfügbar. Setze SOSOAPI_OUTPUT_SCHEMAS=1 für Ausgabeschemas in der Erkennung. Tools liefern unabhängig davon strukturierte Ergebnisse.

Berechtigungen und Nebeneffekte

Annotationen helfen Clients, Tools zu beschreiben. Jeder Aufruf prüft weiterhin Authentifizierung, Rolle, Ressourcenzugriff und erteilte Funktionen des Nutzers.

{
  "readOnlyHint": false,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": true
}

Eingabefelder

Erforderlich bedeutet innerhalb des übergeordneten Objekts und gewählten Zweigs erforderlich. Ein erforderliches Kind macht kein optionales Elternobjekt erforderlich. Regeln und Feldnamen unten stammen aus dem Vertrag.

Eingabefelder
Feld / VarianteTyp / erforderlichEinschränkungen
$objectIm Elternobjekt erforderlich
  • additionalProperties: false
workspace_idstringIm Elternobjekt erforderlich
  • format: "uuid"
social_account_idstringIm Elternobjekt erforderlich
  • format: "uuid"
targetobjectIm Elternobjekt erforderlich—
targetanyOf 1objectIm Elternobjekt erforderlich
  • additionalProperties: false
target.kindanyOf 1stringIm Elternobjekt erforderlich
  • enum: ["post"]
target.social_post_idanyOf 1stringIm Elternobjekt erforderlich
  • format: "uuid"
targetanyOf 2objectIm Elternobjekt erforderlich
  • additionalProperties: false
target.kindanyOf 2stringIm Elternobjekt erforderlich
  • enum: ["comment"]
target.social_comment_idanyOf 2stringIm Elternobjekt erforderlich
  • format: "uuid"
messagestringIm Elternobjekt erforderlich
  • minLength: 1
  • maxLength: 2000
idempotency_keystringIm Elternobjekt erforderlich
  • format: "uuid"
Vollständiges JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "social_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "post"
              ]
            },
            "social_post_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "kind",
            "social_post_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "comment"
              ]
            },
            "social_comment_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "kind",
            "social_comment_id"
          ],
          "additionalProperties": false
        }
      ]
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "idempotency_key": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "workspace_id",
    "social_account_id",
    "target",
    "message",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Strukturierte Ausgabe

Dieses Schema beschreibt structuredContent in einem erfolgreichen Tool-Ergebnis. Die MCP-Antwort enthält auch content und kann bei fehlgeschlagenem Aufruf isError setzen. Lies bei Veröffentlichungen das endgültige Beitragsergebnis, statt eine angenommene Anfrage oder Textantwort als Bestätigung zu werten. Die verknüpfte API-Operation erklärt Berechtigungen und Wiederholungsregeln.

Erforderlich bedeutet innerhalb des übergeordneten Objekts und gewählten Zweigs erforderlich. Ein erforderliches Kind macht kein optionales Elternobjekt erforderlich. Regeln und Feldnamen unten stammen aus dem Vertrag.

Strukturierte Ausgabe
Feld / VarianteTyp / erforderlichEinschränkungen
$objectIm Elternobjekt erforderlich
  • additionalProperties: false
contract_versionstringIm Elternobjekt erforderlich
  • const: "community-engagement/v1"
replayedbooleanIm Elternobjekt erforderlich—
actionobjectIm Elternobjekt erforderlich
  • additionalProperties: false
action.action_idstringIm Elternobjekt erforderlich
  • format: "uuid"
action.workspace_idstringIm Elternobjekt erforderlich
  • format: "uuid"
action.social_account_idstringIm Elternobjekt erforderlich
  • format: "uuid"
action.targetobjectIm Elternobjekt erforderlich—
action.targetoneOf 1objectIm Elternobjekt erforderlich
  • additionalProperties: false
action.target.kindoneOf 1stringIm Elternobjekt erforderlich
  • const: "post"
action.target.social_post_idoneOf 1stringIm Elternobjekt erforderlich
  • format: "uuid"
action.targetoneOf 2objectIm Elternobjekt erforderlich
  • additionalProperties: false
action.target.kindoneOf 2stringIm Elternobjekt erforderlich
  • const: "comment"
action.target.social_post_idoneOf 2stringIm Elternobjekt erforderlich
  • format: "uuid"
action.target.social_comment_idoneOf 2stringIm Elternobjekt erforderlich
  • format: "uuid"
action.content_sha256stringIm Elternobjekt erforderlich
  • pattern: "^[a-f0-9]{64}$"
action.idempotency_keystringIm Elternobjekt erforderlich
  • format: "uuid"
action.statusstringIm Elternobjekt erforderlich
  • enum: ["queued","executing","succeeded","attention","failed"]
action.poll_after_msintegerIm Elternobjekt erforderlich
  • minimum: 0
  • maximum: 300000
Vollständiges JSON Schema
{
  "type": "object",
  "properties": {
    "contract_version": {
      "type": "string",
      "const": "community-engagement/v1"
    },
    "replayed": {
      "type": "boolean"
    },
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string",
          "format": "uuid"
        },
        "workspace_id": {
          "type": "string",
          "format": "uuid"
        },
        "social_account_id": {
          "type": "string",
          "format": "uuid"
        },
        "target": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "post"
                },
                "social_post_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "kind",
                "social_post_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "social_post_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "social_comment_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "kind",
                "social_post_id",
                "social_comment_id"
              ],
              "additionalProperties": false
            }
          ]
        },
        "content_sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "idempotency_key": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "executing",
            "succeeded",
            "attention",
            "failed"
          ]
        },
        "poll_after_ms": {
          "type": "integer",
          "minimum": 0,
          "maximum": 300000
        }
      },
      "required": [
        "action_id",
        "workspace_id",
        "social_account_id",
        "target",
        "content_sha256",
        "idempotency_key",
        "status",
        "poll_after_ms"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contract_version",
    "replayed",
    "action"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Beispiel eines Tool-Aufrufs

Diese Beispiele nutzen anhand der Schemas geprüfte fiktive Werte. Ersetze IDs durch autorisierte IDs, Medien durch bereite Assets und Daten durch bestätigte Veröffentlichungszeiten. Prüfe Kontoeignung vor Schreibvorgängen. Diese Seite sendet keine API-Anfragen.

{
  "name": "sosoapi_create_comment",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "social_account_id": "11111111-1111-4111-8111-111111111111",
    "target": {
      "kind": "post",
      "social_post_id": "11111111-1111-4111-8111-111111111111"
    },
    "message": "example",
    "idempotency_key": "11111111-1111-4111-8111-111111111111"
  }
}

structuredContent

{
  "contract_version": "community-engagement/v1",
  "replayed": false,
  "action": {
    "action_id": "11111111-1111-4111-8111-111111111111",
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "social_account_id": "11111111-1111-4111-8111-111111111111",
    "target": {
      "kind": "post",
      "social_post_id": "11111111-1111-4111-8111-111111111111"
    },
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "idempotency_key": "11111111-1111-4111-8111-111111111111",
    "status": "queued",
    "poll_after_ms": 0
  }
}
MCP installieren oder verbinden