La recherche se charge uniquement lorsque vous l’utilisez. Parcourez toutes les catégories ci-dessous.

Outil MCP

Lister les comptes connectés

sosoapi_list_connected_accounts

Lister les comptes sociaux (Instagram, Threads, Facebook, YouTube) connectés à un espace de travail, avec l’état de connexion et les capacités. Utilisez leurs identifiants comme social_account_id pour programmer ou commenter. Fournissez workspace_id : son absence entraîne un refus lorsque le ciblage explicite est imposé.

Lire en Markdown

Profils et transports

Profils : core, full · Transports : stdio, http

Choisissez core ou full pour définir les outils visibles du client ; cela ne change pas ses autorisations. Le téléversement local nécessite stdio et n’est pas disponible sur HTTP. Définissez SOSOAPI_OUTPUT_SCHEMAS=1 pour inclure les schémas de sortie à la découverte. Les outils renvoient des résultats structurés avec ou sans ce réglage.

Autorisations et effets de bord

Les annotations aident les clients à décrire un outil. Chaque appel vérifie toujours l’authentification, le rôle, l’accès aux ressources et les capacités accordées de l’utilisateur.

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

Champs d’entrée

Requis signifie requis dans l’objet parent et la branche sélectionnée. Un enfant requis ne rend pas obligatoire un parent facultatif. Les règles et noms de champs ci-dessous proviennent du contrat.

Champs d’entrée
Champ / brancheType / requisContraintes
$objectRequis dans le parent
  • additionalProperties: false
workspace_idstringFacultatif / élément
  • format: "uuid"
include_authorization_grantbooleanFacultatif / élément—
JSON Schema complet
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "include_authorization_grant": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

Sortie structurée

Ce schéma décrit structuredContent dans un résultat d’outil réussi. La réponse MCP contient aussi content et peut définir isError en cas d’échec. Pour publier, lisez le résultat final de la publication plutôt que de considérer une requête acceptée ou une réponse texte comme une confirmation. L’opération API liée explique les autorisations et règles de nouvelle tentative.

Requis signifie requis dans l’objet parent et la branche sélectionnée. Un enfant requis ne rend pas obligatoire un parent facultatif. Les règles et noms de champs ci-dessous proviennent du contrat.

Sortie structurée
Champ / brancheType / requisContraintes
$objectRequis dans le parent
  • additionalProperties: false
accountsarrayRequis dans le parent—
accounts[]objectFacultatif / élément
  • additionalProperties: false
accounts[].idstringRequis dans le parent
  • format: "uuid"
accounts[].platformstringRequis dans le parent
  • enum: ["instagram","threads","facebook","tiktok","linkedin","youtube","x"]
accounts[].handlestring | nullRequis dans le parent—
accounts[].handleanyOf 1stringRequis dans le parent—
accounts[].handleanyOf 2nullRequis dans le parent—
accounts[].statusstringRequis dans le parent
  • enum: ["valid","expiring_soon","expired","disconnected"]
accounts[].expires_atstring | nullRequis dans le parent—
accounts[].expires_atanyOf 1stringRequis dans le parent—
accounts[].expires_atanyOf 2nullRequis dans le parent—
accounts[].created_atstringRequis dans le parent—
accounts[].avatar_urlstring | nullFacultatif / élément—
accounts[].avatar_urlanyOf 1stringFacultatif / élément—
accounts[].avatar_urlanyOf 2nullFacultatif / élément—
accounts[].follower_countinteger | nullFacultatif / élément—
accounts[].follower_countanyOf 1integerFacultatif / élément
  • minimum: 0
  • maximum: 9007199254740991
accounts[].follower_countanyOf 2nullFacultatif / élément—
accounts[].post_countinteger | nullFacultatif / élément—
accounts[].post_countanyOf 1integerFacultatif / élément
  • minimum: 0
  • maximum: 9007199254740991
accounts[].post_countanyOf 2nullFacultatif / élément—
accounts[].auto_sync_enabledbooleanFacultatif / élément—
accounts[].last_synced_atstring | nullFacultatif / élément—
accounts[].last_synced_atanyOf 1stringFacultatif / élément—
accounts[].last_synced_atanyOf 2nullFacultatif / élément—
accounts[].workspace_idstring | nullFacultatif / élément—
accounts[].workspace_idanyOf 1stringFacultatif / élément
  • format: "uuid"
accounts[].workspace_idanyOf 2nullFacultatif / élément—
accounts[].platform_user_idstring | nullFacultatif / élément—
accounts[].platform_user_idanyOf 1stringFacultatif / élément
  • minLength: 1
accounts[].platform_user_idanyOf 2nullFacultatif / élément—
accounts[].instagram_login_modestring | nullFacultatif / élément—
accounts[].instagram_login_modeanyOf 1stringFacultatif / élément
  • enum: ["instagram_login","facebook_login"]
accounts[].instagram_login_modeanyOf 2nullFacultatif / élément—
accounts[].facebook_page_idstring | nullFacultatif / élément—
accounts[].facebook_page_idanyOf 1stringFacultatif / élément
  • minLength: 1
accounts[].facebook_page_idanyOf 2nullFacultatif / élément—
accounts[].blocked_untilstring | nullFacultatif / élément—
accounts[].blocked_untilanyOf 1stringFacultatif / élément—
accounts[].blocked_untilanyOf 2nullFacultatif / élément—
accounts[].block_reasonstring | nullFacultatif / élément—
accounts[].block_reasonanyOf 1stringFacultatif / élément
  • enum: ["transient","account_block","auth_invalid","permanent"]
accounts[].block_reasonanyOf 2nullFacultatif / élément—
accounts[].block_subcodeinteger | nullFacultatif / élément—
accounts[].block_subcodeanyOf 1integerFacultatif / élément
  • minimum: -9007199254740991
  • maximum: 9007199254740991
accounts[].block_subcodeanyOf 2nullFacultatif / élément—
accounts[].block_countintegerFacultatif / élément
  • minimum: 0
  • maximum: 9007199254740991
accounts[].last_block_atstring | nullFacultatif / élément—
accounts[].last_block_atanyOf 1stringFacultatif / élément—
accounts[].last_block_atanyOf 2nullFacultatif / élément—
accounts[].health_statestringRequis dans le parent
  • enum: ["ready","action_required","temporarily_unavailable","publishing_restricted","disconnected","unknown"]
accounts[].health_messagestringRequis dans le parent
  • minLength: 1
  • maxLength: 500
accounts[].health_observed_atstring | nullRequis dans le parent—
accounts[].health_observed_atanyOf 1stringRequis dans le parent—
accounts[].health_observed_atanyOf 2nullRequis dans le parent—
accounts[].authorization_grantobjectFacultatif / élément—
accounts[].authorization_grantoneOf 1objectFacultatif / élément
  • additionalProperties: false
accounts[].authorization_grant.granted_permissionsoneOf 1arrayRequis dans le parent—
accounts[].authorization_grant.granted_permissions[]oneOf 1stringFacultatif / élément
  • minLength: 1
accounts[].authorization_grant.inventory_sourceoneOf 1stringRequis dans le parent
  • enum: ["oauth_token_response","provider_token_debug","provider_permissions_endpoint"]
accounts[].authorization_grant.inventory_exactoneOf 1booleanRequis dans le parent
  • const: true
accounts[].authorization_grant.observed_atoneOf 1stringRequis dans le parent
  • minLength: 1
accounts[].authorization_grant.provider_api_versiononeOf 1stringRequis dans le parent
  • minLength: 1
  • maxLength: 40
accounts[].authorization_grant.oauth_provideroneOf 1stringRequis dans le parent
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_subject_idoneOf 1stringRequis dans le parent
  • minLength: 1
accounts[].authorization_grantoneOf 2objectFacultatif / élément
  • additionalProperties: false
accounts[].authorization_grant.granted_permissionsoneOf 2arrayRequis dans le parent
  • minItems: 0
  • maxItems: 0
accounts[].authorization_grant.granted_permissions[]oneOf 2any JSON valueFacultatif / élément—
accounts[].authorization_grant.inventory_sourceoneOf 2stringRequis dans le parent
  • const: "unavailable"
accounts[].authorization_grant.inventory_exactoneOf 2booleanRequis dans le parent
  • const: false
accounts[].authorization_grant.observed_atoneOf 2nullRequis dans le parent—
accounts[].authorization_grant.provider_api_versiononeOf 2nullRequis dans le parent—
accounts[].authorization_grant.oauth_provideroneOf 2string | nullRequis dans le parent—
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 1stringRequis dans le parent
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 2nullRequis dans le parent—
accounts[].authorization_grant.oauth_subject_idoneOf 2string | nullRequis dans le parent—
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 1stringRequis dans le parent
  • minLength: 1
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 2nullRequis dans le parent—
accounts[].current_capability_snapshot_idstring | nullRequis dans le parent—
accounts[].current_capability_snapshot_idanyOf 1stringRequis dans le parent
  • format: "uuid"
accounts[].current_capability_snapshot_idanyOf 2nullRequis dans le parent—
accounts[].capability_factsarrayRequis dans le parent—
accounts[].capability_facts[]objectFacultatif / élément
  • additionalProperties: false
accounts[].capability_facts[].capabilitystringRequis dans le parent
  • enum: ["can_publish_text","can_publish_image","can_publish_video","can_publish_reel","can_publish_carousel","can_publish_first_comment","can_publish_topic_tag","can_publish_link","can_upload_video","can_set_title","can_set_description","can_set_thumbnail","can_set_privacy_status","can_publish_story","can_invite_collaborators","can_tag_products","can_publish_trial_reel","can_publish_partnership","can_delete_media","can_publish_reply","can_quote_post","can_repost","can_publish_poll","can_publish_gif","can_publish_text_attachment","can_publish_ghost_post","can_tag_location","can_crossshare_to_instagram","can_auto_publish_text","can_delete_post","can_publish_multi_image","can_target_post","can_backdate_post","can_manage_native_schedule","can_update_video","can_delete_video","can_set_brand_partner"]
accounts[].capability_facts[].observed_allowedboolean | nullRequis dans le parent—
accounts[].capability_facts[].observed_allowedanyOf 1booleanRequis dans le parent—
accounts[].capability_facts[].observed_allowedanyOf 2nullRequis dans le parent—
accounts[].capability_facts[].availabilitystringRequis dans le parent
  • enum: ["available","unavailable","unknown","documented_ambiguous"]
accounts[].capability_facts[].reason_codestringRequis dans le parent
  • pattern: "^[a-z0-9_]+$"
accounts[].capability_facts[].observed_atstringRequis dans le parent—
accounts[].capability_facts[].valid_untilstringRequis dans le parent—
accounts[].capability_facts[].provider_api_versionstringRequis dans le parent
  • minLength: 1
  • maxLength: 40
accounts[].capability_facts[].required_permissionsarrayRequis dans le parent—
accounts[].capability_facts[].required_permissions[]stringFacultatif / élément
  • minLength: 1
accounts[].capability_facts[].granted_permissionsarrayRequis dans le parent—
accounts[].capability_facts[].granted_permissions[]stringFacultatif / élément
  • minLength: 1
accounts[].capability_facts[].account_eligibilityobjectRequis dans le parent
  • additionalProperties: {}
accounts[].capability_facts[].account_eligibility.*any JSON valueFacultatif / élément—
JSON Schema complet
{
  "type": "object",
  "properties": {
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "threads",
              "facebook",
              "tiktok",
              "linkedin",
              "youtube",
              "x"
            ]
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "valid",
              "expiring_soon",
              "expired",
              "disconnected"
            ]
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "follower_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "post_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_sync_enabled": {
            "type": "boolean"
          },
          "last_synced_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform_user_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "instagram_login_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "instagram_login",
                  "facebook_login"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "facebook_page_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "blocked_until": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "block_reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "transient",
                  "account_block",
                  "auth_invalid",
                  "permanent"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "block_subcode": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "block_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_block_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "health_state": {
            "type": "string",
            "enum": [
              "ready",
              "action_required",
              "temporarily_unavailable",
              "publishing_restricted",
              "disconnected",
              "unknown"
            ]
          },
          "health_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "health_observed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "authorization_grant": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "granted_permissions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "inventory_source": {
                    "type": "string",
                    "enum": [
                      "oauth_token_response",
                      "provider_token_debug",
                      "provider_permissions_endpoint"
                    ]
                  },
                  "inventory_exact": {
                    "type": "boolean",
                    "const": true
                  },
                  "observed_at": {
                    "type": "string",
                    "minLength": 1
                  },
                  "provider_api_version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "oauth_provider": {
                    "type": "string",
                    "enum": [
                      "instagram",
                      "threads",
                      "meta",
                      "google"
                    ]
                  },
                  "oauth_subject_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "granted_permissions",
                  "inventory_source",
                  "inventory_exact",
                  "observed_at",
                  "provider_api_version",
                  "oauth_provider",
                  "oauth_subject_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "granted_permissions": {
                    "minItems": 0,
                    "maxItems": 0,
                    "type": "array",
                    "items": {
                      "not": {}
                    }
                  },
                  "inventory_source": {
                    "type": "string",
                    "const": "unavailable"
                  },
                  "inventory_exact": {
                    "type": "boolean",
                    "const": false
                  },
                  "observed_at": {
                    "type": "null"
                  },
                  "provider_api_version": {
                    "type": "null"
                  },
                  "oauth_provider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "instagram",
                          "threads",
                          "meta",
                          "google"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "oauth_subject_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "granted_permissions",
                  "inventory_source",
                  "inventory_exact",
                  "observed_at",
                  "provider_api_version",
                  "oauth_provider",
                  "oauth_subject_id"
                ],
                "additionalProperties": false
              }
            ]
          },
          "current_capability_snapshot_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "capability_facts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "capability": {
                  "type": "string",
                  "enum": [
                    "can_publish_text",
                    "can_publish_image",
                    "can_publish_video",
                    "can_publish_reel",
                    "can_publish_carousel",
                    "can_publish_first_comment",
                    "can_publish_topic_tag",
                    "can_publish_link",
                    "can_upload_video",
                    "can_set_title",
                    "can_set_description",
                    "can_set_thumbnail",
                    "can_set_privacy_status",
                    "can_publish_story",
                    "can_invite_collaborators",
                    "can_tag_products",
                    "can_publish_trial_reel",
                    "can_publish_partnership",
                    "can_delete_media",
                    "can_publish_reply",
                    "can_quote_post",
                    "can_repost",
                    "can_publish_poll",
                    "can_publish_gif",
                    "can_publish_text_attachment",
                    "can_publish_ghost_post",
                    "can_tag_location",
                    "can_crossshare_to_instagram",
                    "can_auto_publish_text",
                    "can_delete_post",
                    "can_publish_multi_image",
                    "can_target_post",
                    "can_backdate_post",
                    "can_manage_native_schedule",
                    "can_update_video",
                    "can_delete_video",
                    "can_set_brand_partner"
                  ]
                },
                "observed_allowed": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "availability": {
                  "type": "string",
                  "enum": [
                    "available",
                    "unavailable",
                    "unknown",
                    "documented_ambiguous"
                  ]
                },
                "reason_code": {
                  "type": "string",
                  "pattern": "^[a-z0-9_]+$"
                },
                "observed_at": {
                  "type": "string"
                },
                "valid_until": {
                  "type": "string"
                },
                "provider_api_version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "required_permissions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "granted_permissions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "account_eligibility": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "required": [
                "capability",
                "observed_allowed",
                "availability",
                "reason_code",
                "observed_at",
                "valid_until",
                "provider_api_version",
                "required_permissions",
                "granted_permissions",
                "account_eligibility"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "platform",
          "handle",
          "status",
          "expires_at",
          "created_at",
          "health_state",
          "health_message",
          "health_observed_at",
          "current_capability_snapshot_id",
          "capability_facts"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "accounts"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Exemple d’appel d’outil

Ces exemples utilisent des valeurs fictives vérifiées contre les schémas. Remplacez les identifiants par ceux que vous êtes autorisé à utiliser, les médias par des ressources prêtes et les dates par l’heure confirmée. Vérifiez l’éligibilité du compte avant toute écriture. Cette page n’envoie aucune requête API.

{
  "name": "sosoapi_list_connected_accounts",
  "arguments": {}
}

structuredContent

{
  "accounts": []
}
Installer ou connecter MCP