Ferramenta MCP
Obter perfil do usuário
sosoapi_get_user_profileConsulte o próprio perfil do usuário conectado (nome de exibição, fuso, avatar, tema); profile é null até existir.
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": false
}- /identity-api/user/profile/get: agent:operate · synchronous_http_response
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 |
|
include_version | booleanOpcional / item | Opcional. true adiciona a versão do recurso à resposta. — |
JSON Schema completo
{
"type": "object",
"properties": {
"include_version": {
"description": "Optional. true adds the resource version to the answer.",
"type": "boolean"
}
},
"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 |
|
action | stringObrigatório no objeto pai |
|
profile | object | nullObrigatório no objeto pai | — |
profileanyOf 1 | objectObrigatório no objeto pai |
|
profile.user_idanyOf 1 | stringObrigatório no objeto pai |
|
profile.display_nameanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.display_nameanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.display_nameanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.timezoneanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.timezoneanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.timezoneanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.avatar_urlanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.avatar_urlanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.avatar_urlanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.avatar_preview_urlanyOf 1 | string | nullOpcional / item | — |
profile.avatar_preview_urlanyOf 1 / anyOf 1 | stringOpcional / item |
|
profile.avatar_preview_urlanyOf 1 / anyOf 2 | nullOpcional / item | — |
profile.avatar_preview_expires_atanyOf 1 | string | nullOpcional / item | — |
profile.avatar_preview_expires_atanyOf 1 / anyOf 1 | stringOpcional / item |
|
profile.avatar_preview_expires_atanyOf 1 / anyOf 2 | nullOpcional / item | — |
profile.themeanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.themeanyOf 1 / anyOf 1 | stringObrigatório no objeto pai |
|
profile.themeanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.created_atanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.created_atanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.created_atanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.updated_atanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.updated_atanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.updated_atanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.deletion_scheduled_atanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.deletion_scheduled_atanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.deletion_scheduled_atanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.hard_delete_atanyOf 1 | string | nullObrigatório no objeto pai | — |
profile.hard_delete_atanyOf 1 / anyOf 1 | stringObrigatório no objeto pai | — |
profile.hard_delete_atanyOf 1 / anyOf 2 | nullObrigatório no objeto pai | — |
profile.versionanyOf 1 | integerOpcional / item |
|
profileanyOf 2 | nullObrigatório no objeto pai | — |
JSON Schema completo
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "get"
},
"profile": {
"anyOf": [
{
"type": "object",
"properties": {
"user_id": {
"type": "string",
"format": "uuid"
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"avatar_preview_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"avatar_preview_expires_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))$"
},
{
"type": "null"
}
]
},
"theme": {
"anyOf": [
{
"type": "string",
"enum": [
"light",
"dark",
"system"
]
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"updated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"deletion_scheduled_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hard_delete_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"user_id",
"display_name",
"timezone",
"avatar_url",
"theme",
"created_at",
"updated_at",
"deletion_scheduled_at",
"hard_delete_at"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"action",
"profile"
],
"$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_user_profile",
"arguments": {}
}structuredContent
{
"action": "get",
"profile": null
}