Ferramenta MCP
Atualizar uma página de menções à conta
sosoapi_listening_mentions_refreshLer uma página limitada de menções nativas do Threads com a permissão exata da conta; reutilizar mutation_id para evitar nova busca. Exige agent:research.
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": false,
"idempotentHint": true,
"openWorldHint": true
}- /listening-api/mentions/refresh: agent:research · comprovante confirmado de leitura nativa limitada e projeção de menções vinculada à conta; indisponível não significa sucesso sem resultados
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 |
|
social_account_id | stringObrigatório no objeto pai |
|
mutation_id | stringObrigatório no objeto pai |
|
after | stringOpcional / item |
|
limit | integerOpcional / item |
|
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"workspace_id",
"social_account_id",
"mutation_id"
],
"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 |
|
refresh | object | nullObrigatório no objeto pai | — |
refreshanyOf 1 | objectObrigatório no objeto pai |
|
refresh.idanyOf 1 | stringObrigatório no objeto pai |
|
refresh.workspace_idanyOf 1 | stringObrigatório no objeto pai |
|
refresh.social_account_idanyOf 1 | stringObrigatório no objeto pai |
|
refresh.mutation_idanyOf 1 | stringObrigatório no objeto pai |
|
refresh.stateanyOf 1 | stringObrigatório no objeto pai |
|
refresh.reasonanyOf 1 | string | nullObrigatório no objeto pai | — |
refresh.reasonanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
refresh.reasonanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
refresh.created_atanyOf 1 | stringObrigatório no objeto pai |
|
refresh.settled_atanyOf 1 | string | nullObrigatório no objeto pai | — |
refresh.settled_atanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
refresh.settled_atanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
refresh.last_checked_atanyOf 1 | string | nullObrigatório no objeto pai | — |
refresh.last_checked_atanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
refresh.last_checked_atanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
refresh.valid_untilanyOf 1 | stringObrigatório no objeto pai |
|
refresh.item_countanyOf 1 | integerObrigatório no objeto pai |
|
refresh.next_native_cursoranyOf 1 | string | nullObrigatório no objeto pai | — |
refresh.next_native_cursoranyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
refresh.next_native_cursoranyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
refresh.coverageanyOf 1 | stringObrigatório no objeto pai |
|
refresh.completeanyOf 1 | booleanObrigatório no objeto pai |
|
refreshanyOf 2 | nullObrigatório no objeto pai | — |
items | arrayObrigatório no objeto pai |
|
items[] | objectOpcional / item |
|
items[].id | stringObrigatório no objeto pai |
|
items[].workspace_id | stringObrigatório no objeto pai |
|
items[].social_account_id | stringObrigatório no objeto pai |
|
items[].provider_post_id | stringObrigatório no objeto pai |
|
items[].source | stringObrigatório no objeto pai |
|
items[].relationship | stringObrigatório no objeto pai |
|
items[].revision | integerObrigatório no objeto pai |
|
items[].handled | booleanObrigatório no objeto pai | — |
items[].archived | booleanObrigatório no objeto pai | — |
items[].availability | stringObrigatório no objeto pai |
|
items[].post | object | nullObrigatório no objeto pai | — |
items[].postanyOf 1 | objectObrigatório no objeto pai |
|
items[].post.idanyOf 1 | stringObrigatório no objeto pai |
|
items[].post.textanyOf 1 | string | nullObrigatório no objeto pai | — |
items[].post.textanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
items[].post.textanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
items[].post.usernameanyOf 1 | string | nullObrigatório no objeto pai | — |
items[].post.usernameanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
items[].post.usernameanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
items[].post.permalinkanyOf 1 | string | nullObrigatório no objeto pai | — |
items[].post.permalinkanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
items[].post.permalinkanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
items[].post.timestampanyOf 1 | string | nullObrigatório no objeto pai | — |
items[].post.timestampanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
items[].post.timestampanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
items[].post.media_typeanyOf 1 | string | nullObrigatório no objeto pai | — |
items[].post.media_typeanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
items[].post.media_typeanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
items[].post.is_replyanyOf 1 | boolean | nullObrigatório no objeto pai | — |
items[].post.is_quote_postanyOf 1 | boolean | nullObrigatório no objeto pai | — |
items[].post.has_repliesanyOf 1 | boolean | nullObrigatório no objeto pai | — |
items[].post.root_post_idanyOf 1 | string | nullOpcional / item | — |
items[].post.root_post_idanyOf 1 / anyOf 1 | stringOpcional / item |
|
items[].post.root_post_idanyOf 1 / anyOf 2 | nullOpcional / item | — |
items[].post.replied_to_idanyOf 1 | string | nullOpcional / item | — |
items[].post.replied_to_idanyOf 1 / anyOf 1 | stringOpcional / item |
|
items[].post.replied_to_idanyOf 1 / anyOf 2 | nullOpcional / item | — |
items[].postanyOf 2 | nullObrigatório no objeto pai | — |
items[].first_observed_at | stringObrigatório no objeto pai |
|
items[].last_checked_at | stringObrigatório no objeto pai |
|
items[].expires_at | stringObrigatório no objeto pai |
|
items[].coverage | stringObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"refresh": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"mutation_id": {
"type": "string",
"format": "uuid"
},
"state": {
"type": "string",
"enum": [
"pending",
"running",
"completed",
"unavailable",
"cancelled",
"unconfirmed",
"expired"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"connection_unavailable",
"connection_changed",
"provider_denied",
"provider_rate_limited",
"provider_unavailable",
"provider_response_invalid",
"cancelled",
"deadline_exceeded",
"content_expired"
]
},
{
"type": "null"
}
]
},
"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"
},
"settled_at": {
"anyOf": [
{
"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"
},
{
"type": "null"
}
]
},
"last_checked_at": {
"anyOf": [
{
"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"
},
{
"type": "null"
}
]
},
"valid_until": {
"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"
},
"item_count": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"next_native_cursor": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 4096
},
{
"type": "null"
}
]
},
"coverage": {
"type": "string",
"const": "partial_native_page"
},
"complete": {
"type": "boolean",
"const": false
}
},
"required": [
"id",
"workspace_id",
"social_account_id",
"mutation_id",
"state",
"reason",
"created_at",
"settled_at",
"last_checked_at",
"valid_until",
"item_count",
"next_native_cursor",
"coverage",
"complete"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"items": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"provider_post_id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"source": {
"type": "string",
"const": "threads"
},
"relationship": {
"type": "string",
"const": "account_mention"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"handled": {
"type": "boolean"
},
"archived": {
"type": "boolean"
},
"availability": {
"type": "string",
"enum": [
"available",
"expired",
"unavailable"
]
},
"post": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"text": {
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"username": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9._]{1,30}$"
},
{
"type": "null"
}
]
},
"permalink": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"timestamp": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"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)))$"
},
{
"type": "null"
}
]
},
"media_type": {
"anyOf": [
{
"type": "string",
"enum": [
"TEXT",
"TEXT_POST",
"IMAGE",
"VIDEO",
"CAROUSEL_ALBUM",
"AUDIO",
"REPOST_FACADE"
]
},
{
"type": "null"
}
]
},
"is_reply": {
"type": [
"boolean",
"null"
]
},
"is_quote_post": {
"type": [
"boolean",
"null"
]
},
"has_replies": {
"type": [
"boolean",
"null"
]
},
"root_post_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{2,20}$"
},
{
"type": "null"
}
]
},
"replied_to_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{2,20}$"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"text",
"username",
"permalink",
"timestamp",
"media_type",
"is_reply",
"is_quote_post",
"has_replies"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"first_observed_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"
},
"last_checked_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"
},
"expires_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"
},
"coverage": {
"type": "string",
"const": "partial_native_page"
}
},
"required": [
"id",
"workspace_id",
"social_account_id",
"provider_post_id",
"source",
"relationship",
"revision",
"handled",
"archived",
"availability",
"post",
"first_observed_at",
"last_checked_at",
"expires_at",
"coverage"
],
"additionalProperties": false
}
}
},
"required": [
"refresh",
"items"
],
"$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_listening_mentions_refresh",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "11111111-1111-4111-8111-111111111111",
"mutation_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"refresh": null,
"items": []
}