Herramienta MCP
Obtener perfil de usuario
sosoapi_get_user_profileConsulta el perfil del usuario que ha iniciado sesión (nombre visible, zona horaria, avatar, tema); profile es null hasta que exista uno.
Leer en MarkdownPerfiles y transportes
Perfiles: full · Transportes: stdio, http
Elige core o full para controlar qué herramientas ve tu cliente; no cambia sus permisos. La carga de archivos locales requiere stdio y no está disponible por HTTP. Establece SOSOAPI_OUTPUT_SCHEMAS=1 para incluir esquemas de salida en la detección. Las herramientas devuelven resultados estructurados con o sin esa opción.
Permisos y efectos secundarios
Las anotaciones ayudan a los clientes a describir una herramienta. Cada llamada sigue comprobando la autenticación, el rol, el acceso al recurso y los permisos de capacidades del usuario.
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}- /identity-api/user/profile/get: agent:operate · synchronous_http_response
Campos de entrada
Obligatorio significa obligatorio dentro del objeto principal y la rama elegida. Un campo secundario obligatorio no convierte en obligatorio un objeto principal opcional. Las reglas y nombres de campos siguientes se copian del contrato.
| Campo / rama | Tipo / obligatorio | Restricciones |
|---|---|---|
$ | objectObligatorio en el objeto principal |
|
include_version | booleanOpcional / elemento | Opcional. true añade la versión del recurso a la respuesta. — |
JSON Schema completo
{
"type": "object",
"properties": {
"include_version": {
"description": "Optional. true adds the resource version to the answer.",
"type": "boolean"
}
},
"additionalProperties": false
}Salida estructurada
Este esquema describe structuredContent en un resultado exitoso de herramienta. La respuesta MCP también incluye content y puede establecer isError si falla una llamada. Para publicación, consulta el resultado final de la publicación en vez de considerar una solicitud aceptada o una respuesta de texto como confirmación. La operación API enlazada explica los permisos y las reglas de reintento.
Obligatorio significa obligatorio dentro del objeto principal y la rama elegida. Un campo secundario obligatorio no convierte en obligatorio un objeto principal opcional. Las reglas y nombres de campos siguientes se copian del contrato.
| Campo / rama | Tipo / obligatorio | Restricciones |
|---|---|---|
$ | objectObligatorio en el objeto principal |
|
action | stringObligatorio en el objeto principal |
|
profile | object | nullObligatorio en el objeto principal | — |
profileanyOf 1 | objectObligatorio en el objeto principal |
|
profile.user_idanyOf 1 | stringObligatorio en el objeto principal |
|
profile.display_nameanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.display_nameanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.display_nameanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.timezoneanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.timezoneanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.timezoneanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.avatar_urlanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.avatar_urlanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.avatar_urlanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.avatar_preview_urlanyOf 1 | string | nullOpcional / elemento | — |
profile.avatar_preview_urlanyOf 1 / anyOf 1 | stringOpcional / elemento |
|
profile.avatar_preview_urlanyOf 1 / anyOf 2 | nullOpcional / elemento | — |
profile.avatar_preview_expires_atanyOf 1 | string | nullOpcional / elemento | — |
profile.avatar_preview_expires_atanyOf 1 / anyOf 1 | stringOpcional / elemento |
|
profile.avatar_preview_expires_atanyOf 1 / anyOf 2 | nullOpcional / elemento | — |
profile.themeanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.themeanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal |
|
profile.themeanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.created_atanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.created_atanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.created_atanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.updated_atanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.updated_atanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.updated_atanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.deletion_scheduled_atanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.deletion_scheduled_atanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.deletion_scheduled_atanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.hard_delete_atanyOf 1 | string | nullObligatorio en el objeto principal | — |
profile.hard_delete_atanyOf 1 / anyOf 1 | stringObligatorio en el objeto principal | — |
profile.hard_delete_atanyOf 1 / anyOf 2 | nullObligatorio en el objeto principal | — |
profile.versionanyOf 1 | integerOpcional / elemento |
|
profileanyOf 2 | nullObligatorio en el objeto principal | — |
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
}Ejemplo de llamada a herramienta
Estos ejemplos usan valores ficticios comprobados con los esquemas. Sustituye los IDs por otros autorizados, los archivos multimedia por recursos listos y las fechas por tu hora de publicación confirmada. Comprueba la elegibilidad de la cuenta antes de enviar una escritura. Esta página no envía solicitudes API.
{
"name": "sosoapi_get_user_profile",
"arguments": {}
}structuredContent
{
"action": "get",
"profile": null
}