Ferramenta MCP
Excluir fila de conteúdo do Threads
sosoapi_delete_threads_content_queueExcluir logicamente uma fila com versão exata e confirmação da contagem pendente; preservar publicações aceitas.
Ler como MarkdownPerfis e transportes
Perfis: full · Transportes: stdio, http
Escolha core ou full para controlar quais ferramentas seu cliente vê; isso não altera suas permissões. O envio de arquivos locais exige stdio e não está disponível por HTTP. Defina SOSOAPI_OUTPUT_SCHEMAS=1 para incluir schemas de saída na descoberta. As ferramentas retornam resultados estruturados com ou sem essa configuração.
Permissões e efeitos colaterais
As anotações ajudam os clientes a descrever uma ferramenta. Cada chamada ainda verifica autenticação, função, acesso a recursos e concessões de capacidades do usuário.
{
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": true,
"openWorldHint": true
}- /studio-api/threads-content-queues/delete: agent:operate · configuração de fila/referências pendentes versionadas; pausa e exclusão preservam todos os agendamentos aceitos e recibos
Campos de entrada
Obrigatório significa obrigatório dentro do objeto pai e da ramificação selecionada. Um filho obrigatório não torna obrigatório um pai opcional. As regras e nomes de campos abaixo são copiados do contrato.
| Campo / ramificação | Tipo / obrigatório | Restrições |
|---|---|---|
$ | objectObrigatório no objeto pai |
|
workspace_id | stringObrigatório no objeto pai |
|
id | stringObrigatório no objeto pai |
|
expected_version | integerObrigatório no objeto pai |
|
mutation_id | stringObrigatório no objeto pai |
|
confirm_pending_count | integerObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"id": {
"type": "string",
"format": "uuid"
},
"expected_version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"confirm_pending_count": {
"type": "integer",
"minimum": 0,
"maximum": 50
}
},
"required": [
"workspace_id",
"id",
"expected_version",
"mutation_id",
"confirm_pending_count"
],
"additionalProperties": false
}Saída estruturada
Este schema descreve structuredContent em um resultado de ferramenta bem-sucedido. A resposta MCP também inclui content e pode definir isError quando uma chamada falha. Para publicações, consulte o resultado final do post em vez de tratar uma requisição aceita ou resposta de texto como confirmação. A operação de API vinculada explica as permissões e regras de repetição.
Obrigatório significa obrigatório dentro do objeto pai e da ramificação selecionada. Um filho obrigatório não torna obrigatório um pai opcional. As regras e nomes de campos abaixo são copiados do contrato.
| Campo / ramificação | Tipo / obrigatório | Restrições |
|---|---|---|
$ | objectObrigatório no objeto pai |
|
queue | objectObrigatório no objeto pai |
|
queue.id | stringObrigatório no objeto pai |
|
queue.workspace_id | stringObrigatório no objeto pai |
|
queue.social_account_id | stringObrigatório no objeto pai |
|
queue.name | stringObrigatório no objeto pai |
|
queue.display_timezone | stringObrigatório no objeto pai |
|
queue.weekly_slots | arrayObrigatório no objeto pai |
|
queue.weekly_slots[] | objectOpcional / item |
|
queue.weekly_slots[].weekday | integerObrigatório no objeto pai |
|
queue.weekly_slots[].local_time | stringObrigatório no objeto pai |
|
queue.paused | booleanObrigatório no objeto pai | — |
queue.deleted | booleanObrigatório no objeto pai | — |
queue.version | integerObrigatório no objeto pai |
|
queue.created_at | stringObrigatório no objeto pai |
|
queue.updated_at | stringObrigatório no objeto pai |
|
queue.pending_items | arrayObrigatório no objeto pai |
|
queue.pending_items[] | objectOpcional / item |
|
queue.pending_items[].item_id | stringObrigatório no objeto pai |
|
queue.pending_items[].draft_id | stringObrigatório no objeto pai |
|
queue.pending_items[].draft_revision | integerObrigatório no objeto pai |
|
queue.pending_items[].current_revision | integer | nullObrigatório no objeto pai | — |
queue.pending_items[].current_revisionanyOf 1 | integerObrigatório no objeto pai |
|
queue.pending_items[].current_revisionanyOf 2 | nullObrigatório no objeto pai | — |
queue.pending_items[].draft_state | string | nullObrigatório no objeto pai | — |
queue.pending_items[].draft_stateanyOf 1 | stringObrigatório no objeto pai |
|
queue.pending_items[].draft_stateanyOf 2 | nullObrigatório no objeto pai | — |
queue.pending_items[].caption_preview | stringObrigatório no objeto pai |
|
queue.allocations | arrayObrigatório no objeto pai |
|
queue.allocations[] | objectOpcional / item |
|
queue.allocations[].id | stringObrigatório no objeto pai |
|
queue.allocations[].item_id | stringObrigatório no objeto pai |
|
queue.allocations[].draft_id | stringObrigatório no objeto pai |
|
queue.allocations[].draft_revision | integerObrigatório no objeto pai |
|
queue.allocations[].mutation_id | stringObrigatório no objeto pai |
|
queue.allocations[].slot | objectObrigatório no objeto pai |
|
queue.allocations[].slot.scheduled_at | stringObrigatório no objeto pai |
|
queue.allocations[].slot.local_date | stringObrigatório no objeto pai |
|
queue.allocations[].slot.local_time | stringObrigatório no objeto pai |
|
queue.allocations[].slot.utc_offset_minutes | integerObrigatório no objeto pai |
|
queue.allocations[].slot.display_timezone | stringObrigatório no objeto pai |
|
queue.allocations[].post_id | stringObrigatório no objeto pai |
|
queue.allocations[].accepted_at | stringObrigatório no objeto pai |
|
replayed | booleanObrigatório no objeto pai | — |
JSON Schema completo
{
"type": "object",
"properties": {
"queue": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"display_timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"weekly_slots": {
"minItems": 1,
"maxItems": 49,
"type": "array",
"items": {
"type": "object",
"properties": {
"weekday": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"local_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
},
"required": [
"weekday",
"local_time"
],
"additionalProperties": false
}
},
"paused": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"created_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"updated_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"pending_items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"item_id": {
"type": "string",
"format": "uuid"
},
"draft_id": {
"type": "string",
"format": "uuid"
},
"draft_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"current_revision": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"draft_state": {
"anyOf": [
{
"type": "string",
"enum": [
"draft",
"submitting",
"submitted"
]
},
{
"type": "null"
}
]
},
"caption_preview": {
"type": "string",
"maxLength": 500
}
},
"required": [
"item_id",
"draft_id",
"draft_revision",
"current_revision",
"draft_state",
"caption_preview"
],
"additionalProperties": false
}
},
"allocations": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"item_id": {
"type": "string",
"format": "uuid"
},
"draft_id": {
"type": "string",
"format": "uuid"
},
"draft_revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"slot": {
"type": "object",
"properties": {
"scheduled_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"local_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"local_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"utc_offset_minutes": {
"type": "integer",
"minimum": -840,
"maximum": 840
},
"display_timezone": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"scheduled_at",
"local_date",
"local_time",
"utc_offset_minutes",
"display_timezone"
],
"additionalProperties": false
},
"post_id": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
},
"accepted_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
}
},
"required": [
"id",
"item_id",
"draft_id",
"draft_revision",
"mutation_id",
"slot",
"post_id",
"accepted_at"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"workspace_id",
"social_account_id",
"name",
"display_timezone",
"weekly_slots",
"paused",
"deleted",
"version",
"created_at",
"updated_at",
"pending_items",
"allocations"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"queue",
"replayed"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Exemplo de chamada de ferramenta
Estes exemplos usam valores fictícios verificados conforme os schemas. Substitua os IDs por aqueles que você tem autorização para usar, a mídia por ativos prontos e as datas pelo horário de publicação confirmado. Confira a elegibilidade da conta antes de enviar uma gravação. Esta página não envia requisições de API.
{
"name": "sosoapi_delete_threads_content_queue",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"id": "44444444-4444-4444-8444-444444444444",
"expected_version": 1,
"mutation_id": "60000000-0000-4000-8000-000000000022",
"confirm_pending_count": 1
}
}structuredContent
{
"queue": {
"id": "44444444-4444-4444-8444-444444444444",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"name": "Fictional weekly ideas",
"display_timezone": "UTC",
"weekly_slots": [
{
"weekday": 4,
"local_time": "09:00"
}
],
"paused": false,
"deleted": true,
"version": 2,
"created_at": "2099-01-14T09:00:00Z",
"updated_at": "2099-01-14T09:00:00Z",
"pending_items": [],
"allocations": []
},
"replayed": false
}