Ferramenta MCP
Consultar desempenho público
sosoapi_read_public_performanceConsulte contadores públicos não oficiais do X de uma conta conectada ao espaço de trabalho. Contadores ausentes continuam indisponíveis; não são usados a X API paga nem credenciais.
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
}- /analytics-api/public-performance/read: agent:operate · Contadores públicos explicitamente não oficiais ou evidência de indisponibilidade; nunca Insights oficiais
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 |
|
cursor | stringOpcional / item |
|
refresh | booleanOpcional / item | — |
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"cursor": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"refresh": {
"type": "boolean"
}
},
"required": [
"workspace_id",
"social_account_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 |
|
contract_version | stringObrigatório no objeto pai |
|
source | stringObrigatório no objeto pai |
|
source_kind | stringObrigatório no objeto pai |
|
platform | stringObrigatório no objeto pai |
|
workspace_id | stringObrigatório no objeto pai |
|
social_account_id | stringObrigatório no objeto pai |
|
provider_account_id | stringObrigatório no objeto pai |
|
fetched_at | stringObrigatório no objeto pai |
|
upstream_updated_at | nullObrigatório no objeto pai | — |
expires_at | stringObrigatório no objeto pai |
|
cache_status | stringObrigatório no objeto pai |
|
status | stringObrigatório no objeto pai |
|
profile | object | nullObrigatório no objeto pai | — |
profileanyOf 1 | objectObrigatório no objeto pai |
|
profile.nameanyOf 1 | stringObrigatório no objeto pai |
|
profile.handleanyOf 1 | stringObrigatório no objeto pai |
|
profile.followersanyOf 1 | integer | nullObrigatório no objeto pai | — |
profile.followersanyOf 1 / anyOf 1 | integerObrigatório no objeto pai |
|
profile.followersanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profileanyOf 2 | nullObrigatório no objeto pai | — |
posts | arrayObrigatório no objeto pai |
|
posts[] | objectOpcional / item |
|
posts[].id | stringObrigatório no objeto pai |
|
posts[].url | stringObrigatório no objeto pai |
|
posts[].text | stringObrigatório no objeto pai |
|
posts[].published_at | string | nullObrigatório no objeto pai | — |
posts[].published_atanyOf 1 | stringObrigatório no objeto pai |
|
posts[].published_atanyOf 2 | nullObrigatório no objeto pai | — |
posts[].kind | stringObrigatório no objeto pai |
|
posts[].media_kind | stringObrigatório no objeto pai |
|
posts[].metrics | objectObrigatório no objeto pai |
|
posts[].metrics.views | integer | nullObrigatório no objeto pai | — |
posts[].metrics.viewsanyOf 1 | integerObrigatório no objeto pai |
|
posts[].metrics.viewsanyOf 2 | nullObrigatório no objeto pai | — |
posts[].metrics.likes | integer | nullObrigatório no objeto pai | — |
posts[].metrics.likesanyOf 1 | integerObrigatório no objeto pai |
|
posts[].metrics.likesanyOf 2 | nullObrigatório no objeto pai | — |
posts[].metrics.replies | integer | nullObrigatório no objeto pai | — |
posts[].metrics.repliesanyOf 1 | integerObrigatório no objeto pai |
|
posts[].metrics.repliesanyOf 2 | nullObrigatório no objeto pai | — |
posts[].metrics.reposts | integer | nullObrigatório no objeto pai | — |
posts[].metrics.repostsanyOf 1 | integerObrigatório no objeto pai |
|
posts[].metrics.repostsanyOf 2 | nullObrigatório no objeto pai | — |
posts[].metrics.quotes | integer | nullObrigatório no objeto pai | — |
posts[].metrics.quotesanyOf 1 | integerObrigatório no objeto pai |
|
posts[].metrics.quotesanyOf 2 | nullObrigatório no objeto pai | — |
posts[].metrics.bookmarks | integer | nullObrigatório no objeto pai | — |
posts[].metrics.bookmarksanyOf 1 | integerObrigatório no objeto pai |
|
posts[].metrics.bookmarksanyOf 2 | nullObrigatório no objeto pai | — |
coverage | objectObrigatório no objeto pai |
|
coverage.complete | booleanObrigatório no objeto pai | — |
coverage.next_cursor | string | nullObrigatório no objeto pai | — |
coverage.next_cursoranyOf 1 | stringObrigatório no objeto pai |
|
coverage.next_cursoranyOf 2 | nullObrigatório no objeto pai | — |
coverage.views_available_posts | integerObrigatório no objeto pai |
|
coverage.omitted_rows | integerObrigatório no objeto pai |
|
coverage.reasons | arrayObrigatório no objeto pai |
|
coverage.reasons[] | stringOpcional / item |
|
JSON Schema completo
{
"type": "object",
"properties": {
"contract_version": {
"type": "string",
"const": "public-performance/v1"
},
"source": {
"type": "string",
"const": "fxtwitter"
},
"source_kind": {
"type": "string",
"const": "unofficial_public"
},
"platform": {
"type": "string",
"const": "x"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"social_account_id": {
"type": "string",
"format": "uuid"
},
"provider_account_id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"fetched_at": {
"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)))$"
},
"upstream_updated_at": {
"type": "null"
},
"expires_at": {
"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)))$"
},
"cache_status": {
"type": "string",
"enum": [
"hit",
"stored",
"bypassed"
]
},
"status": {
"type": "string",
"enum": [
"available",
"partial",
"unavailable"
]
},
"profile": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"handle": {
"type": "string",
"maxLength": 100
},
"followers": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"handle",
"followers"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"posts": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{2,20}$"
},
"url": {
"type": "string",
"format": "uri"
},
"text": {
"type": "string",
"maxLength": 30000
},
"published_at": {
"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"
}
]
},
"kind": {
"type": "string",
"enum": [
"post",
"reply"
]
},
"media_kind": {
"type": "string",
"enum": [
"text",
"image",
"video"
]
},
"metrics": {
"type": "object",
"properties": {
"views": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"likes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"replies": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"reposts": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"quotes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"bookmarks": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"views",
"likes",
"replies",
"reposts",
"quotes",
"bookmarks"
],
"additionalProperties": false
}
},
"required": [
"id",
"url",
"text",
"published_at",
"kind",
"media_kind",
"metrics"
],
"additionalProperties": false
}
},
"coverage": {
"type": "object",
"properties": {
"complete": {
"type": "boolean"
},
"next_cursor": {
"anyOf": [
{
"type": "string",
"maxLength": 2048
},
{
"type": "null"
}
]
},
"views_available_posts": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"omitted_rows": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"reasons": {
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"complete",
"next_cursor",
"views_available_posts",
"omitted_rows",
"reasons"
],
"additionalProperties": false
}
},
"required": [
"contract_version",
"source",
"source_kind",
"platform",
"workspace_id",
"social_account_id",
"provider_account_id",
"fetched_at",
"upstream_updated_at",
"expires_at",
"cache_status",
"status",
"profile",
"posts",
"coverage"
],
"$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_read_public_performance",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222"
}
}structuredContent
{
"workspace_id": "11111111-1111-4111-8111-111111111111",
"social_account_id": "22222222-2222-4222-8222-222222222222",
"contract_version": "public-performance/v1",
"source": "fxtwitter",
"source_kind": "unofficial_public",
"platform": "x",
"provider_account_id": "12345",
"fetched_at": "2099-01-15T09:00:00Z",
"upstream_updated_at": null,
"expires_at": "2099-01-15T09:05:00Z",
"cache_status": "stored",
"status": "unavailable",
"profile": null,
"posts": [],
"coverage": {
"complete": false,
"next_cursor": null,
"views_available_posts": 0,
"omitted_rows": 0,
"reasons": [
"Fictional public source unavailable; no account data was read."
]
}
}