MCPHerramientas MCP/Campos personalizados/get_custom_field_values
get_custom_field_values
Readcustom-fields:read
Get the custom-field values currently set on one location or client. Returns a { key: value } bag (empty object if none are set). Use list_custom_field_definitions first to see what keys exist. You don't pass an agency — it comes from your credentials, and an entity from another agency is never returned.
Parámetros
entityType"location" | "client"obligatorio
Which kind of entity entityId refers to (required).
entityIdstringobligatorio
The entity's id — a location's id (from list_locations / create_location) when entityType is "location", or a client's id (from list_clients / create_client) when entityType is "client".
Solicitud de ejemplo
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_custom_field_values",
"arguments": {
"entityType": "location",
"entityId": "string"
}
}
}Respuesta de ejemplo
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.