Ferramenta MCP
Atualizar perfil do usuário
sosoapi_update_user_profileAltere o próprio perfil do usuário conectado (display_name, timezone, avatar_url, theme). Envie apenas os campos a alterar.
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": false
}- /identity-api/user/profile/update: 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 |
|
display_name | stringOpcional / item |
|
timezone | stringOpcional / item |
|
avatar_url | stringOpcional / item |
|
theme | stringOpcional / item |
|
expected_version | integerOpcional / item | Opcional. A versão consultada. Se tiver sido alterada desde então, a atualização falha com 409 VERSION_CONFLICT em vez de sobrescrever.
|
include_version | booleanOpcional / item | Opcional. true adiciona a versão do recurso à resposta. — |
JSON Schema completo
{
"type": "object",
"properties": {
"display_name": {
"type": "string",
"minLength": 0,
"maxLength": 120
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"avatar_url": {
"type": "string",
"minLength": 0,
"maxLength": 2048
},
"theme": {
"type": "string",
"enum": [
"light",
"dark",
"system"
]
},
"expected_version": {
"description": "Optional. The version you read. If it changed since, the update fails with 409 VERSION_CONFLICT instead of overwriting.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 2147483647
},
"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 | objectObrigatório no objeto pai |
|
profile.user_id | stringObrigatório no objeto pai |
|
profile.display_name | string | nullObrigatório no objeto pai | — |
profile.display_nameanyOf 1 | stringObrigatório no objeto pai | — |
profile.display_nameanyOf 2 | nullObrigatório no objeto pai | — |
profile.timezone | string | nullObrigatório no objeto pai | — |
profile.timezoneanyOf 1 | stringObrigatório no objeto pai | — |
profile.timezoneanyOf 2 | nullObrigatório no objeto pai | — |
profile.avatar_url | string | nullObrigatório no objeto pai | — |
profile.avatar_urlanyOf 1 | stringObrigatório no objeto pai | — |
profile.avatar_urlanyOf 2 | nullObrigatório no objeto pai | — |
profile.avatar_preview_url | string | nullOpcional / item | — |
profile.avatar_preview_urlanyOf 1 | stringOpcional / item |
|
profile.avatar_preview_urlanyOf 2 | nullOpcional / item | — |
profile.avatar_preview_expires_at | string | nullOpcional / item | — |
profile.avatar_preview_expires_atanyOf 1 | stringOpcional / item |
|
profile.avatar_preview_expires_atanyOf 2 | nullOpcional / item | — |
profile.theme | string | nullObrigatório no objeto pai | — |
profile.themeanyOf 1 | stringObrigatório no objeto pai |
|
profile.themeanyOf 2 | nullObrigatório no objeto pai | — |
profile.created_at | string | nullObrigatório no objeto pai | — |
profile.created_atanyOf 1 | stringObrigatório no objeto pai | — |
profile.created_atanyOf 2 | nullObrigatório no objeto pai | — |
profile.updated_at | string | nullObrigatório no objeto pai | — |
profile.updated_atanyOf 1 | stringObrigatório no objeto pai | — |
profile.updated_atanyOf 2 | nullObrigatório no objeto pai | — |
profile.deletion_scheduled_at | string | nullObrigatório no objeto pai | — |
profile.deletion_scheduled_atanyOf 1 | stringObrigatório no objeto pai | — |
profile.deletion_scheduled_atanyOf 2 | nullObrigatório no objeto pai | — |
profile.hard_delete_at | string | nullObrigatório no objeto pai | — |
profile.hard_delete_atanyOf 1 | stringObrigatório no objeto pai | — |
profile.hard_delete_atanyOf 2 | nullObrigatório no objeto pai | — |
profile.version | integerOpcional / item |
|
JSON Schema completo
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "update"
},
"profile": {
"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
}
},
"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_update_user_profile",
"arguments": {}
}structuredContent
{
"action": "update",
"profile": {
"user_id": "11111111-1111-4111-8111-111111111111",
"display_name": null,
"timezone": null,
"avatar_url": null,
"theme": null,
"created_at": null,
"updated_at": null,
"deletion_scheduled_at": null,
"hard_delete_at": null
}
}