# Get Organization context

Canonical URL: https://sosoapi.ai/docs/mcp/get-organization-context

`sosoapi_get_organization_context`

Read the live map of your Organizations, their Workspaces and Channels with ids and roles. Use it when Organization or Channel ids are needed. For Workspace posting, reuse a returned Workspace id; do not also read workspace context.

## Profiles and transports

Profiles: core, full

Transports: stdio, http

Choose core or full to control which tools your client sees; this does not change its permissions. Local file upload requires stdio and is unavailable over HTTP. Set SOSOAPI_OUTPUT_SCHEMAS=1 to include output schemas in discovery. Tools return structured results with or without that setting.

## Permissions and side effects

Annotations help clients describe a tool. Each call still checks the user’s authentication, role, resource access and capability grants.

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

`/identity-api/agent/organization-context` — agent:operate; synchronous_http_response

## Input fields

```json
{
  "type": "object",
  "properties": {
    "organization_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "additionalProperties": false
}
```

## Structured output

This schema describes structuredContent in a successful tool result. The MCP response also includes content and may set isError when a call fails. For publishing, read the post’s final result rather than treating an accepted request or text response as confirmation. The linked API operation explains permissions and retry rules.

```json
{
  "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
}
```

## Example tool call

These examples use fictional values checked against the schemas. Replace the IDs with ones you are authorized to use, the media with ready assets and the dates with your confirmed publishing time. Check the account’s eligibility before submitting a write. This page sends no API requests.

```json
{
  "name": "sosoapi_get_organization_context",
  "arguments": {}
}
```

structuredContent

```json
{
  "contract_version": "organization-agent-context/v1",
  "organizations": []
}
```

## Underlying API operations

- [/identity-api/agent/organization-context](https://sosoapi.ai/docs/api/identity-api-agent-organization-context)
