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

MCP-Tool

Organisationskontext abrufen

sosoapi_get_organization_context

Lies die aktuelle Übersicht deiner Organisationen, ihrer Workspaces und Kanäle mit IDs und Rollen. Nutze dies bei benötigten Organisations- oder Kanal-IDs. Verwende für Workspace-Beiträge eine zurückgegebene Workspace-ID; lies nicht zusätzlich Workspace-Kontext.

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": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

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
organization_idstringOptional / Element
  • format: "uuid"
Vollständiges JSON Schema
{
  "type": "object",
  "properties": {
    "organization_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "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: "organization-agent-context/v1"
organizationsarrayIm Elternobjekt erforderlich
  • maxItems: 100
organizations[]objectOptional / Element
  • additionalProperties: false
organizations[].idstringIm Elternobjekt erforderlich
  • format: "uuid"
organizations[].namestringIm Elternobjekt erforderlich
  • minLength: 1
  • maxLength: 200
organizations[].rolestringIm Elternobjekt erforderlich
  • enum: ["owner","admin","member"]
organizations[].statusstringIm Elternobjekt erforderlich
  • enum: ["active","deletion_pending","deleted"]
organizations[].workspacesarrayIm Elternobjekt erforderlich
  • maxItems: 100
organizations[].workspaces[]objectOptional / Element
  • additionalProperties: false
organizations[].workspaces[].idstringIm Elternobjekt erforderlich
  • format: "uuid"
organizations[].workspaces[].namestringIm Elternobjekt erforderlich
  • minLength: 1
  • maxLength: 200
organizations[].workspaces[].rolestring | nullIm Elternobjekt erforderlich—
organizations[].workspaces[].roleanyOf 1stringIm Elternobjekt erforderlich
  • enum: ["owner","editor","reviewer","viewer"]
organizations[].workspaces[].roleanyOf 2nullIm Elternobjekt erforderlich—
organizations[].workspaces[].channelsarrayIm Elternobjekt erforderlich
  • maxItems: 500
organizations[].workspaces[].channels[]objectOptional / Element
  • additionalProperties: false
organizations[].workspaces[].channels[].idstringIm Elternobjekt erforderlich
  • format: "uuid"
organizations[].workspaces[].channels[].organization_idstringIm Elternobjekt erforderlich
  • format: "uuid"
organizations[].workspaces[].channels[].workspace_idstringIm Elternobjekt erforderlich
  • format: "uuid"
organizations[].workspaces[].channels[].platformstringIm Elternobjekt erforderlich
  • enum: ["instagram","threads","facebook","youtube","x"]
organizations[].workspaces[].channels[].statusstringIm Elternobjekt erforderlich
  • enum: ["setup_incomplete","attached","action_required","disconnected"]
Vollständiges JSON Schema
{
  "type": "object",
  "properties": {
    "contract_version": {
      "type": "string",
      "const": "organization-agent-context/v1"
    },
    "organizations": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "member"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "deletion_pending",
              "deleted"
            ]
          },
          "workspaces": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "role": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "owner",
                        "editor",
                        "reviewer",
                        "viewer"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "channels": {
                  "maxItems": 500,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "workspace_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "platform": {
                        "type": "string",
                        "enum": [
                          "instagram",
                          "threads",
                          "facebook",
                          "youtube",
                          "x"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "setup_incomplete",
                          "attached",
                          "action_required",
                          "disconnected"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "organization_id",
                      "workspace_id",
                      "platform",
                      "status"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "name",
                "role",
                "channels"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "name",
          "role",
          "status",
          "workspaces"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "contract_version",
    "organizations"
  ],
  "$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_get_organization_context",
  "arguments": {}
}

structuredContent

{
  "contract_version": "organization-agent-context/v1",
  "organizations": []
}
MCP installieren oder verbinden