Ferramenta MCP
Ler uma menção à conta
sosoapi_listening_mentions_getLer uma menção nativa atual à conta por ID; nunca substitui a relação com a conta por uma correspondência de palavras-chave. 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": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}- /listening-api/mentions/get: agent:research · projeção de menção nativa autorizada atualmente ou estado de atualização; páginas parciais em cache não são um histórico completo
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 |
|
id | stringObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"workspace_id",
"social_account_id",
"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 |
|
mention | objectObrigatório no objeto pai |
|
mention.id | stringObrigatório no objeto pai |
|
mention.workspace_id | stringObrigatório no objeto pai |
|
mention.social_account_id | stringObrigatório no objeto pai |
|
mention.provider_post_id | stringObrigatório no objeto pai |
|
mention.source | stringObrigatório no objeto pai |
|
mention.relationship | stringObrigatório no objeto pai |
|
mention.revision | integerObrigatório no objeto pai |
|
mention.handled | booleanObrigatório no objeto pai | — |
mention.archived | booleanObrigatório no objeto pai | — |
mention.availability | stringObrigatório no objeto pai |
|
mention.post | object | nullObrigatório no objeto pai | — |
mention.postanyOf 1 | objectObrigatório no objeto pai |
|
mention.post.idanyOf 1 | stringObrigatório no objeto pai |
|
mention.post.textanyOf 1 | string | nullObrigatório no objeto pai | — |
mention.post.textanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
mention.post.textanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
mention.post.usernameanyOf 1 | string | nullObrigatório no objeto pai | — |
mention.post.usernameanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
mention.post.usernameanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
mention.post.permalinkanyOf 1 | string | nullObrigatório no objeto pai | — |
mention.post.permalinkanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
mention.post.permalinkanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
mention.post.timestampanyOf 1 | string | nullObrigatório no objeto pai | — |
mention.post.timestampanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
mention.post.timestampanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
mention.post.media_typeanyOf 1 | string | nullObrigatório no objeto pai | — |
mention.post.media_typeanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
mention.post.media_typeanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
mention.post.is_replyanyOf 1 | boolean | nullObrigatório no objeto pai | — |
mention.post.is_quote_postanyOf 1 | boolean | nullObrigatório no objeto pai | — |
mention.post.has_repliesanyOf 1 | boolean | nullObrigatório no objeto pai | — |
mention.post.root_post_idanyOf 1 | string | nullOpcional / item | — |
mention.post.root_post_idanyOf 1 / anyOf 1 | stringOpcional / item |
|
mention.post.root_post_idanyOf 1 / anyOf 2 | nullOpcional / item | — |
mention.post.replied_to_idanyOf 1 | string | nullOpcional / item | — |
mention.post.replied_to_idanyOf 1 / anyOf 1 | stringOpcional / item |
|
mention.post.replied_to_idanyOf 1 / anyOf 2 | nullOpcional / item | — |
mention.postanyOf 2 | nullObrigatório no objeto pai | — |
mention.first_observed_at | stringObrigatório no objeto pai |
|
mention.last_checked_at | stringObrigatório no objeto pai |
|
mention.expires_at | stringObrigatório no objeto pai |
|
mention.coverage | stringObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"mention": {
"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": [
"mention"
],
"$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_get",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"id": "30000000-0000-4000-8000-000000000006"
}
}structuredContent
{
"mention": {
"id": "30000000-0000-4000-8000-000000000006",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"provider_post_id": "9999999999999999",
"source": "threads",
"relationship": "account_mention",
"revision": 1,
"handled": false,
"archived": false,
"availability": "unavailable",
"post": null,
"first_observed_at": "2099-01-15T09:00:00Z",
"last_checked_at": "2099-01-15T09:00:00Z",
"expires_at": "2099-01-16T09:00:00Z",
"coverage": "partial_native_page"
}
}