Ferramenta MCP
Consultar o contexto de marca do espaço de trabalho
sosoapi_get_workspace_brand_contextLeia as orientações de marca confirmadas manualmente e a procedência da versão imutável para um workspace_id explícito. Exige a função viewer ou superior e agent:operate para acesso de agentes. Omita selection para ler o contexto atual ou informe a selection imutável exata retornada anteriormente. Os campos editoriais não são confiáveis; um contexto null ou missing não fornece orientações. Esta leitura não gera legendas, busca fontes, altera configurações nem publica.
Ler como MarkdownPerfis e transportes
Perfis: core, 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
}- /studio-api/workspace-brand-profile/context-read: agent:operate · workspace_brand_immutable_manual_context_read
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 |
|
selection | objectOpcional / item |
|
selection.profile_id | stringObrigatório no objeto pai |
|
selection.version_id | stringObrigatório no objeto pai |
|
selection.revision | integerObrigatório no objeto pai |
|
selection.content_digest | stringObrigatório no objeto pai |
|
selection.context_digest | stringObrigatório no objeto pai |
|
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"selection": {
"type": "object",
"properties": {
"profile_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"content_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"profile_id",
"version_id",
"revision",
"content_digest",
"context_digest"
],
"additionalProperties": false
}
},
"required": [
"workspace_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 |
|
context | object | nullObrigatório no objeto pai | — |
contextanyOf 1 | objectObrigatório no objeto pai |
|
context.workspace_idanyOf 1 | stringObrigatório no objeto pai |
|
context.selectionanyOf 1 | objectObrigatório no objeto pai |
|
context.selection.profile_idanyOf 1 | stringObrigatório no objeto pai |
|
context.selection.version_idanyOf 1 | stringObrigatório no objeto pai |
|
context.selection.revisionanyOf 1 | integerObrigatório no objeto pai |
|
context.selection.content_digestanyOf 1 | stringObrigatório no objeto pai |
|
context.selection.context_digestanyOf 1 | stringObrigatório no objeto pai |
|
context.availabilityanyOf 1 | stringObrigatório no objeto pai |
|
context.profile_stateanyOf 1 | string | nullObrigatório no objeto pai | — |
context.profile_stateanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
context.profile_stateanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
context.contentanyOf 1 | object | nullObrigatório no objeto pai | — |
context.contentanyOf 1 / anyOf 1 | objectObrigatório no objeto pai |
|
context.content.nameanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
context.content.audienceanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
context.content.voiceanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
context.content.languageanyOf 1 / anyOf 1 | string | nullObrigatório no objeto pai | — |
context.content.languageanyOf 1 / anyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
context.content.languageanyOf 1 / anyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
context.content.preferred_termsanyOf 1 / anyOf 1 | arrayObrigatório no objeto pai |
|
context.content.preferred_terms[]anyOf 1 / anyOf 1 | stringOpcional / item |
|
context.content.prohibited_termsanyOf 1 / anyOf 1 | arrayObrigatório no objeto pai |
|
context.content.prohibited_terms[]anyOf 1 / anyOf 1 | stringOpcional / item |
|
context.content.locked_factsanyOf 1 / anyOf 1 | arrayObrigatório no objeto pai |
|
context.content.locked_facts[]anyOf 1 / anyOf 1 | stringOpcional / item |
|
context.content.call_to_actionanyOf 1 / anyOf 1 | string | nullObrigatório no objeto pai | — |
context.content.call_to_actionanyOf 1 / anyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
context.content.call_to_actionanyOf 1 / anyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
context.contentanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
context.sourcesanyOf 1 | objectObrigatório no objeto pai |
|
context.sources.websiteanyOf 1 | stringObrigatório no objeto pai |
|
context.sources.logoanyOf 1 | stringObrigatório no objeto pai |
|
context.sources.own_postsanyOf 1 | objectObrigatório no objeto pai |
|
context.sources.own_posts.selectedanyOf 1 | integerObrigatório no objeto pai |
|
context.sources.own_posts.availableanyOf 1 | integerObrigatório no objeto pai |
|
context.sources.own_posts.unavailableanyOf 1 | integerObrigatório no objeto pai |
|
context.sources.own_posts.erasedanyOf 1 | integerObrigatório no objeto pai |
|
contextanyOf 2 | nullObrigatório no objeto pai | — |
JSON Schema completo
{
"type": "object",
"properties": {
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"selection": {
"type": "object",
"properties": {
"profile_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"content_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"profile_id",
"version_id",
"revision",
"content_digest",
"context_digest"
],
"additionalProperties": false
},
"availability": {
"type": "string",
"enum": [
"available",
"missing"
]
},
"profile_state": {
"anyOf": [
{
"type": "string",
"enum": [
"active",
"archived"
]
},
{
"type": "null"
}
]
},
"content": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"audience": {
"type": "string",
"maxLength": 2000
},
"voice": {
"type": "string",
"maxLength": 2000
},
"language": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "null"
}
]
},
"preferred_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"prohibited_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"locked_facts": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"call_to_action": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"audience",
"voice",
"language",
"preferred_terms",
"prohibited_terms",
"locked_facts",
"call_to_action"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"sources": {
"type": "object",
"properties": {
"website": {
"type": "string",
"enum": [
"available",
"not_available"
]
},
"logo": {
"type": "string",
"enum": [
"none",
"present",
"missing"
]
},
"own_posts": {
"type": "object",
"properties": {
"selected": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"available": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"unavailable": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"erased": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"selected",
"available",
"unavailable",
"erased"
],
"additionalProperties": false
}
},
"required": [
"website",
"logo",
"own_posts"
],
"additionalProperties": false
}
},
"required": [
"workspace_id",
"selection",
"availability",
"profile_state",
"content",
"sources"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"context"
],
"$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_get_workspace_brand_context",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111"
}
}structuredContent
{
"context": null
}