{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "api.mcp.ai",
    "site": "mcp.ai",
    "addresses": [
      {
        "address": "104.21.2.217",
        "endpoints": 1122,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.0.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.129.185",
        "endpoints": 1122,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.128.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::6815:2d9",
        "endpoints": 1122,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3037::ac43:81b9",
        "endpoints": 1122,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3037::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.21.2.217",
          "172.67.129.185",
          "2606:4700:3032::6815:2d9",
          "2606:4700:3037::ac43:81b9"
        ],
        "first_seen": "2026-11-22T23:22:04.477Z",
        "last_seen": "2026-11-22T23:22:04.477Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [
      {
        "value": "Express",
        "evidence": "X-Powered-By header \"Express\""
      }
    ],
    "server_info": {
      "name": "mcp-ai",
      "version": "0.9.485",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "x-powered-by": "Express",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1121,
      "sample": [
        {
          "id": "29171",
          "url": "https://api.mcp.ai/contaazul",
          "server_name": "io.github.douglac/contaazul-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:36:02.087Z"
        },
        {
          "id": "31813",
          "url": "https://api.mcp.ai/p_99pay",
          "server_name": "io.github.mcp-dir/99pay-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:37:01.422Z"
        },
        {
          "id": "31814",
          "url": "https://api.mcp.ai/p_acordos_leniencia",
          "server_name": "io.github.mcp-dir/acordos_leniencia-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:38:01.546Z"
        },
        {
          "id": "31815",
          "url": "https://api.mcp.ai/p_advbox",
          "server_name": "io.github.mcp-dir/advbox-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:39:01.880Z"
        },
        {
          "id": "31816",
          "url": "https://api.mcp.ai/p_agger",
          "server_name": "io.github.mcp-dir/agger-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:40:02.074Z"
        },
        {
          "id": "31817",
          "url": "https://api.mcp.ai/p_agora",
          "server_name": "io.github.mcp-dir/agora-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:41:01.294Z"
        },
        {
          "id": "31818",
          "url": "https://api.mcp.ai/p_aml_vinculos",
          "server_name": "io.github.mcp-dir/aml_vinculos-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:42:03.929Z"
        },
        {
          "id": "31819",
          "url": "https://api.mcp.ai/p_anatel_celular_legal",
          "server_name": "io.github.mcp-dir/anatel_celular_legal-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:43:02.246Z"
        },
        {
          "id": "31820",
          "url": "https://api.mcp.ai/p_anbima_certificado",
          "server_name": "io.github.mcp-dir/anbima_certificado-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:44:01.891Z"
        },
        {
          "id": "31821",
          "url": "https://api.mcp.ai/p_anp_base_distribuicao",
          "server_name": "io.github.mcp-dir/anp_base_distribuicao-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:45:03.184Z"
        },
        {
          "id": "31822",
          "url": "https://api.mcp.ai/p_anp_instalacoes_simp",
          "server_name": "io.github.mcp-dir/anp_instalacoes_simp-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:46:01.294Z"
        },
        {
          "id": "31823",
          "url": "https://api.mcp.ai/p_anp_postos",
          "server_name": "io.github.mcp-dir/anp_postos-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:47:01.677Z"
        },
        {
          "id": "31824",
          "url": "https://api.mcp.ai/p_anp_revendas",
          "server_name": "io.github.mcp-dir/anp_revendas-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:48:01.700Z"
        },
        {
          "id": "31825",
          "url": "https://api.mcp.ai/p_antecedentes_criminais_mg",
          "server_name": "io.github.mcp-dir/antecedentes_criminais_mg-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:49:01.321Z"
        },
        {
          "id": "31826",
          "url": "https://api.mcp.ai/p_antecedentes_criminais_sp",
          "server_name": "io.github.mcp-dir/antecedentes_criminais_sp-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:50:02.777Z"
        },
        {
          "id": "31827",
          "url": "https://api.mcp.ai/p_antecedentes_policia_civil",
          "server_name": "io.github.mcp-dir/antecedentes_policia_civil-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:51:01.357Z"
        },
        {
          "id": "31828",
          "url": "https://api.mcp.ai/p_antecedentes_policia_federal",
          "server_name": "io.github.mcp-dir/antecedentes_policia_federal-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:52:01.817Z"
        },
        {
          "id": "31829",
          "url": "https://api.mcp.ai/p_anthropic_billing",
          "server_name": "io.github.mcp-dir/anthropic_billing-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:53:01.105Z"
        },
        {
          "id": "31830",
          "url": "https://api.mcp.ai/p_antt_frete_piso_minimo",
          "server_name": "io.github.mcp-dir/antt_frete_piso_minimo-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:54:01.602Z"
        },
        {
          "id": "31831",
          "url": "https://api.mcp.ai/p_antt_operacao_transporte",
          "server_name": "io.github.mcp-dir/antt_operacao_transporte-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:55:08.915Z"
        }
      ]
    },
    "same_site": {
      "total": 1121,
      "sample": [
        {
          "id": "29170",
          "url": "https://api.mcp.ai/banco",
          "server_name": "io.github.douglac/banco-mcp",
          "last_state": "error",
          "last_checked_at": "2026-11-22T23:35:01.992Z"
        },
        {
          "id": "29171",
          "url": "https://api.mcp.ai/contaazul",
          "server_name": "io.github.douglac/contaazul-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:36:02.087Z"
        },
        {
          "id": "31813",
          "url": "https://api.mcp.ai/p_99pay",
          "server_name": "io.github.mcp-dir/99pay-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:37:01.422Z"
        },
        {
          "id": "31814",
          "url": "https://api.mcp.ai/p_acordos_leniencia",
          "server_name": "io.github.mcp-dir/acordos_leniencia-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:38:01.546Z"
        },
        {
          "id": "31815",
          "url": "https://api.mcp.ai/p_advbox",
          "server_name": "io.github.mcp-dir/advbox-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:39:01.880Z"
        },
        {
          "id": "31816",
          "url": "https://api.mcp.ai/p_agger",
          "server_name": "io.github.mcp-dir/agger-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:40:02.074Z"
        },
        {
          "id": "31817",
          "url": "https://api.mcp.ai/p_agora",
          "server_name": "io.github.mcp-dir/agora-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:41:01.294Z"
        },
        {
          "id": "31818",
          "url": "https://api.mcp.ai/p_aml_vinculos",
          "server_name": "io.github.mcp-dir/aml_vinculos-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:42:03.929Z"
        },
        {
          "id": "31819",
          "url": "https://api.mcp.ai/p_anatel_celular_legal",
          "server_name": "io.github.mcp-dir/anatel_celular_legal-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:43:02.246Z"
        },
        {
          "id": "31820",
          "url": "https://api.mcp.ai/p_anbima_certificado",
          "server_name": "io.github.mcp-dir/anbima_certificado-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:44:01.891Z"
        },
        {
          "id": "31821",
          "url": "https://api.mcp.ai/p_anp_base_distribuicao",
          "server_name": "io.github.mcp-dir/anp_base_distribuicao-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:45:03.184Z"
        },
        {
          "id": "31822",
          "url": "https://api.mcp.ai/p_anp_instalacoes_simp",
          "server_name": "io.github.mcp-dir/anp_instalacoes_simp-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:46:01.294Z"
        },
        {
          "id": "31823",
          "url": "https://api.mcp.ai/p_anp_postos",
          "server_name": "io.github.mcp-dir/anp_postos-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:47:01.677Z"
        },
        {
          "id": "31824",
          "url": "https://api.mcp.ai/p_anp_revendas",
          "server_name": "io.github.mcp-dir/anp_revendas-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:48:01.700Z"
        },
        {
          "id": "31825",
          "url": "https://api.mcp.ai/p_antecedentes_criminais_mg",
          "server_name": "io.github.mcp-dir/antecedentes_criminais_mg-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:49:01.321Z"
        },
        {
          "id": "31826",
          "url": "https://api.mcp.ai/p_antecedentes_criminais_sp",
          "server_name": "io.github.mcp-dir/antecedentes_criminais_sp-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:50:02.777Z"
        },
        {
          "id": "31827",
          "url": "https://api.mcp.ai/p_antecedentes_policia_civil",
          "server_name": "io.github.mcp-dir/antecedentes_policia_civil-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:51:01.357Z"
        },
        {
          "id": "31828",
          "url": "https://api.mcp.ai/p_antecedentes_policia_federal",
          "server_name": "io.github.mcp-dir/antecedentes_policia_federal-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:52:01.817Z"
        },
        {
          "id": "31829",
          "url": "https://api.mcp.ai/p_anthropic_billing",
          "server_name": "io.github.mcp-dir/anthropic_billing-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:53:01.105Z"
        },
        {
          "id": "31830",
          "url": "https://api.mcp.ai/p_antt_frete_piso_minimo",
          "server_name": "io.github.mcp-dir/antt_frete_piso_minimo-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T23:54:01.602Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.mcp-dir",
      "total": 1119,
      "sample": [
        {
          "name": "io.github.mcp-dir/99pay-mcp",
          "title": "MCP.AI connector for 99Pay (unofficial)"
        },
        {
          "name": "io.github.mcp-dir/acordos_leniencia-mcp",
          "title": "Acordos de Leniência"
        },
        {
          "name": "io.github.mcp-dir/advbox-mcp",
          "title": "AdvBox"
        },
        {
          "name": "io.github.mcp-dir/agger-mcp",
          "title": "Agger"
        },
        {
          "name": "io.github.mcp-dir/agora-mcp",
          "title": "MCP.AI connector for Ágora (unofficial)"
        },
        {
          "name": "io.github.mcp-dir/aml_vinculos-mcp",
          "title": "AML (Vínculos Societários)"
        },
        {
          "name": "io.github.mcp-dir/anatel_celular_legal-mcp",
          "title": "Anatel: Consulta Celular Legal"
        },
        {
          "name": "io.github.mcp-dir/anbima_certificado-mcp",
          "title": "Certificado Anbima"
        },
        {
          "name": "io.github.mcp-dir/anp_base_distribuicao-mcp",
          "title": "ANP: Base de Distribuição"
        },
        {
          "name": "io.github.mcp-dir/anp_instalacoes_simp-mcp",
          "title": "ANP: Instalações do SIMP"
        },
        {
          "name": "io.github.mcp-dir/anp_postos-mcp",
          "title": "ANP: Postos"
        },
        {
          "name": "io.github.mcp-dir/anp_revendas-mcp",
          "title": "ANP: Revendas GLP"
        },
        {
          "name": "io.github.mcp-dir/antecedentes_criminais_mg-mcp",
          "title": "Antecedentes Criminais: MG"
        },
        {
          "name": "io.github.mcp-dir/antecedentes_criminais_sp-mcp",
          "title": "Antecedentes Criminais: SP"
        },
        {
          "name": "io.github.mcp-dir/antecedentes_policia_civil-mcp",
          "title": "Antecedentes (Polícia Civil)"
        },
        {
          "name": "io.github.mcp-dir/antecedentes_policia_federal-mcp",
          "title": "Antecedentes (Polícia Federal)"
        },
        {
          "name": "io.github.mcp-dir/anthropic_billing-mcp",
          "title": "Anthropic Billing"
        },
        {
          "name": "io.github.mcp-dir/antt_frete_piso_minimo-mcp",
          "title": "ANTT: Calcular Piso Mínimo de Frete"
        },
        {
          "name": "io.github.mcp-dir/antt_operacao_transporte-mcp",
          "title": "Operação de Transporte ANTT"
        },
        {
          "name": "io.github.mcp-dir/antt_produtos_perigosos-mcp",
          "title": "ANTT: Produtos Perigosos"
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/mcp-dir/webdiet-mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "32921",
    "server_name": "io.github.mcp-dir/webdiet-mcp",
    "url": "https://api.mcp.ai/p_webdiet",
    "host": "api.mcp.ai",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T23:22:04.477Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "0f6a41802a65cf5ef25f398f0f340e8cbf81b9da7e641401e0a6d4c95e9b29de",
    "first_listed_at": "2026-11-22T23:22:04.477Z",
    "created_at": "2026-11-21T10:30:10.933Z",
    "resolved_addresses": [
      "104.21.2.217",
      "172.67.129.185",
      "2606:4700:3032::6815:2d9",
      "2606:4700:3037::ac43:81b9"
    ]
  },
  "server": {
    "name": "io.github.mcp-dir/webdiet-mcp",
    "title": "WebDiet",
    "description": "Patient, meal plan, prescription, chart and anthropometry management for dietitians.",
    "version": "0.1.0",
    "registry_status": "active",
    "repository_url": "https://github.com/mcp-dir/webdiet-mcp",
    "website_url": null,
    "published_at": "2026-06-10T17:22:41.083Z",
    "updated_at": "2026-06-10T17:22:41.083Z",
    "first_seen": "2026-11-21T10:30:10.225Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T23:22:21.149Z"
  },
  "operator": {
    "key": "mcp.ai",
    "name": "mcp.ai",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 1,
    "answered": 1,
    "answered_percent": 100,
    "avg_listing_latency_ms": 238,
    "first_check_in_window": "2026-11-22T23:22:04.477Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "0f6a41802a65cf5ef25f398f0f340e8cbf81b9da7e641401e0a6d4c95e9b29de",
    "tools": 62,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-22T23:22:04.722Z",
    "tool_names": [
      "webdiet_list_accounts",
      "webdiet_patient_list",
      "webdiet_patient_get",
      "webdiet_patient_write_create",
      "webdiet_patient_write_update",
      "webdiet_patient_delete",
      "webdiet_get_consultations",
      "webdiet_prontuario",
      "webdiet_prontuario_write",
      "webdiet_anamnese",
      "webdiet_anamnese_write_save",
      "webdiet_anamnese_write_save_interpretation",
      "webdiet_anamnese_write_duplicate",
      "webdiet_anamnese_delete",
      "webdiet_preconsulta_list_templates",
      "webdiet_preconsulta_list_responses",
      "webdiet_preconsulta_get_response",
      "webdiet_preconsulta_write_link_to_patient",
      "webdiet_preconsulta_delete",
      "webdiet_antropometria_list",
      "webdiet_antropometria_get",
      "webdiet_create_antropometria",
      "webdiet_save_antropometria",
      "webdiet_get_planner",
      "webdiet_prescription_list",
      "webdiet_prescription_get_detail",
      "webdiet_prescription_write_create",
      "webdiet_prescription_write_save",
      "webdiet_prescription_write_publish",
      "webdiet_food_search",
      "webdiet_orientacoes_list",
      "webdiet_orientacoes_list_banco",
      "webdiet_orientacoes_write_save",
      "webdiet_orientacoes_write_send",
      "webdiet_manipulados_list",
      "webdiet_manipulados_list_banco",
      "webdiet_manipulados_get",
      "webdiet_manipulados_write_save",
      "webdiet_manipulados_write_send",
      "webdiet_manipulados_write_publish",
      "webdiet_manipulados_write_duplicate",
      "webdiet_manipulados_delete",
      "webdiet_calculo_energetico_list",
      "webdiet_calculo_energetico_get",
      "webdiet_calculo_energetico_write_create",
      "webdiet_calculo_energetico_write_save",
      "webdiet_calculo_energetico_delete",
      "webdiet_list_anexos",
      "webdiet_get_upload_command",
      "webdiet_upload_anexo",
      "webdiet_list_message_templates",
      "webdiet_financeiro_list",
      "webdiet_financeiro_categories",
      "webdiet_financeiro_write",
      "webdiet_financeiro_delete",
      "webdiet_recibo",
      "show_version",
      "report_bug",
      "connect",
      "toolkit_info",
      "marketplace",
      "authenticate"
    ],
    "declared": {
      "tools": [
        {
          "name": "webdiet_list_accounts",
          "description": "List all WebDiet accounts linked to this install.\nReturns each account's id, email, label, and an \"is_default\" flag (true when only one is linked — no need to pass `account` in other tools). When the user wants to add another WebDiet account, return `add_account_url` (no payload) como link clicável — abre o form de login no dashboard.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_list_accounts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_patient_list",
          "description": "Read patients in WebDiet.\nActions: list (the WHOLE patient base, paginated — returns id, nome, link, updated_at, created_at), get (full profile with address, phone, links to panel sections).\nlist returns \"total\" (patients matching the filter), \"total_na_conta\" (patients in the account) and \"has_more\"; walk pages with page/page_size until has_more is false.\nFilters (all optional, combinable): keyword (matches name, nickname, email, phone or CPF, accent-insensitive), updated_since / updated_until (YYYY-MM-DD), order.\n\"updated_at\" is when the patient RECORD was last changed in WebDiet — it is the only per-patient timestamp the panel exposes, and it does NOT track a patient chart merely being opened/viewed. Use updated_since to answer \"who moved in the last N days\".\nThe \"id\" is stable across calls. Use it as patient_id for get, update and prescriptions. The \"link\" is a different identifier for the paciente.me portal; only patient_delete also resolves a portal link or a unique phone/name keyword.\n\n[Flattened action: list]\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "page": {
                "type": "number",
                "default": 1
              },
              "order": {
                "enum": [
                  "nome",
                  "atualizado_desc",
                  "atualizado_asc"
                ],
                "type": "string",
                "default": "nome"
              },
              "account": {
                "type": "string"
              },
              "keyword": {
                "type": "string",
                "default": ""
              },
              "page_size": {
                "type": "number",
                "default": 50
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "updated_since": {
                "type": "string"
              },
              "updated_until": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_patient_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_patient_get",
          "description": "Read patients in WebDiet.\nActions: list (the WHOLE patient base, paginated — returns id, nome, link, updated_at, created_at), get (full profile with address, phone, links to panel sections).\nlist returns \"total\" (patients matching the filter), \"total_na_conta\" (patients in the account) and \"has_more\"; walk pages with page/page_size until has_more is false.\nFilters (all optional, combinable): keyword (matches name, nickname, email, phone or CPF, accent-insensitive), updated_since / updated_until (YYYY-MM-DD), order.\n\"updated_at\" is when the patient RECORD was last changed in WebDiet — it is the only per-patient timestamp the panel exposes, and it does NOT track a patient chart merely being opened/viewed. Use updated_since to answer \"who moved in the last N days\".\nThe \"id\" is stable across calls. Use it as patient_id for get, update and prescriptions. The \"link\" is a different identifier for the paciente.me portal; only patient_delete also resolves a portal link or a unique phone/name keyword.\n\n[Flattened action: get]\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "page": {
                "type": "number",
                "default": 1
              },
              "order": {
                "enum": [
                  "nome",
                  "atualizado_desc",
                  "atualizado_asc"
                ],
                "type": "string",
                "default": "nome"
              },
              "account": {
                "type": "string"
              },
              "keyword": {
                "type": "string",
                "default": ""
              },
              "page_size": {
                "type": "number",
                "default": 50
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "updated_since": {
                "type": "string"
              },
              "updated_until": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_patient_get",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_patient_write_create",
          "description": "Create or update patients in WebDiet.\nActions: create (nome + nascimento required — returns patient_id), update (partial fields).\nIMPORTANT: nascimento (birth date DD/MM/YYYY) is REQUIRED for create — WebDiet uses it to calculate age in prescriptions. Without it, metodoPlanning.php crashes with a Fatal Error.\nFor destructive removal use webdiet_patient_delete.\n\n[Flattened action: create]\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "cep": {
                "type": "string"
              },
              "cpf": {
                "type": "string"
              },
              "nome": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "bairro": {
                "type": "string"
              },
              "cidade": {
                "type": "string"
              },
              "estado": {
                "type": "string"
              },
              "genero": {
                "enum": [
                  "M",
                  "F"
                ],
                "type": "string"
              },
              "numero": {
                "type": "string"
              },
              "account": {
                "type": "string"
              },
              "apelido": {
                "type": "string"
              },
              "endereco": {
                "type": "string"
              },
              "telefone": {
                "type": "string"
              },
              "instagram": {
                "type": "string"
              },
              "boasvindas": {
                "type": "boolean",
                "default": true
              },
              "nascimento": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "complemento": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_patient_write_create",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_patient_write_update",
          "description": "Create or update patients in WebDiet.\nActions: create (nome + nascimento required — returns patient_id), update (partial fields).\nIMPORTANT: nascimento (birth date DD/MM/YYYY) is REQUIRED for create — WebDiet uses it to calculate age in prescriptions. Without it, metodoPlanning.php crashes with a Fatal Error.\nFor destructive removal use webdiet_patient_delete.\n\n[Flattened action: update]\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "cep": {
                "type": "string"
              },
              "cpf": {
                "type": "string"
              },
              "nome": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "bairro": {
                "type": "string"
              },
              "cidade": {
                "type": "string"
              },
              "estado": {
                "type": "string"
              },
              "genero": {
                "enum": [
                  "M",
                  "F"
                ],
                "type": "string"
              },
              "numero": {
                "type": "string"
              },
              "account": {
                "type": "string"
              },
              "apelido": {
                "type": "string"
              },
              "endereco": {
                "type": "string"
              },
              "telefone": {
                "type": "string"
              },
              "instagram": {
                "type": "string"
              },
              "boasvindas": {
                "type": "boolean",
                "default": true
              },
              "nascimento": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "complemento": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_patient_write_update",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_patient_delete",
          "description": "Permanently delete a WebDiet patient (uses removerPaciente — resolves id/link from a fresh list first). Irreversible.\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_patient_delete",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "webdiet_get_consultations",
          "description": "Load food diary entries, meal reactions, attachments, or orientations for a patient. Use tipo to select: diario (food diary), reacoes (meal reactions), anexos (attachments), orientacoes (guidelines/orientations sent to patient).\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "tipo": {
                "enum": [
                  "diario",
                  "reacoes",
                  "anexos",
                  "orientacoes"
                ],
                "type": "string",
                "default": "diario"
              },
              "limite": {
                "type": "number",
                "default": 50
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_get_consultations",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prontuario",
          "description": "Get the clinical record (prontuario) for a WebDiet patient. Returns decoded text with sections: Identificacao, Triagem, Anamnese alimentar, etc.\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_prontuario",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prontuario_write",
          "description": "Save the clinical record (prontuario) for a WebDiet patient. Pass texto as a JSON array of HTML strings, one per section.\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id",
              "texto"
            ],
            "properties": {
              "texto": {
                "type": "string"
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_prontuario_write",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_anamnese",
          "description": "List all anamnesis records for a WebDiet patient WITH the full Q/A content.\nEach item carries:\n  - id, titulo, data\n  - texto       → plain-text Q/A (readable, line-broken — best for AI consumption / RAG)\n  - texto_html  → original HTML (<b>...</b><br>...) preserved for rich rendering\n  - interpretacao / interpretacao_html → nutritionist's notes when present\nWebDiet stores the answers as URL-encoded HTML (<b>question</b><br>answer<br><br>); this tool decodes both representations so the agent can read e.g. food frequency, complaints, goals, allergies for the patient.\nFor pre-consultation questionnaire responses NOT yet linked to a patient, use webdiet_preconsulta action=list_responses.\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_anamnese",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_anamnese_write_save",
          "description": "Create / update anamnesis records in WebDiet.\nActions: save (create or update — anamnese_id empty = new), save_interpretation (save AI/nutritionist interpretation), duplicate (copy existing record).\nFor destructive removal use webdiet_anamnese_delete.\n\n[Flattened action: save]\n\nBulk support: accepts patient_ids, anamnese_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "texto": {
                "type": "string",
                "default": ""
              },
              "titulo": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "anamnese_id": {
                "type": "string",
                "default": ""
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "anamnese_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "interpretacao": {
                "type": "string",
                "default": ""
              }
            }
          },
          "annotations": {
            "title": "webdiet_anamnese_write_save",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_anamnese_write_save_interpretation",
          "description": "Create / update anamnesis records in WebDiet.\nActions: save (create or update — anamnese_id empty = new), save_interpretation (save AI/nutritionist interpretation), duplicate (copy existing record).\nFor destructive removal use webdiet_anamnese_delete.\n\n[Flattened action: save_interpretation]\n\nBulk support: accepts patient_ids, anamnese_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "texto": {
                "type": "string",
                "default": ""
              },
              "titulo": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "anamnese_id": {
                "type": "string",
                "default": ""
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "anamnese_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "interpretacao": {
                "type": "string",
                "default": ""
              }
            }
          },
          "annotations": {
            "title": "webdiet_anamnese_write_save_interpretation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_anamnese_write_duplicate",
          "description": "Create / update anamnesis records in WebDiet.\nActions: save (create or update — anamnese_id empty = new), save_interpretation (save AI/nutritionist interpretation), duplicate (copy existing record).\nFor destructive removal use webdiet_anamnese_delete.\n\n[Flattened action: duplicate]\n\nBulk support: accepts patient_ids, anamnese_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "texto": {
                "type": "string",
                "default": ""
              },
              "titulo": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "anamnese_id": {
                "type": "string",
                "default": ""
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "anamnese_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "interpretacao": {
                "type": "string",
                "default": ""
              }
            }
          },
          "annotations": {
            "title": "webdiet_anamnese_write_duplicate",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_anamnese_delete",
          "description": "Permanently delete an anamnesis record in WebDiet. Irreversible.\n\nBulk support: accepts patient_ids, anamnese_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id",
              "anamnese_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "anamnese_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "anamnese_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_anamnese_delete",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "webdiet_preconsulta_list_templates",
          "description": "Read pre-consultation questionnaires (Pré-consulta) in WebDiet.\nActions:\n- list_templates  → list all questionnaire templates the nutritionist publishes. Each item returns nome, descricao, perguntas[] (decoded), modelo, codigo, \"link\" (the public short URL https://nutr.se/<short> to share with patients) and \"preview_url\" (panel preview). USE THIS when the user asks for \"o link do questionário de pré-consulta\" / \"link do formulário\".\n- list_responses  → list patient submissions to ANY template. Each response has id, id_code, template_nome, origem (anamnese | questionario), respondedor {nome, telefone, nascimento}, data, texto (decoded plain Q/A), texto_html (original HTML), pdf_url. Use filtros tipo (template name) and nome (responder name) to narrow.\n- get_response    → fetch one response by id (or id_code/codigo).\nFor LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.\n\n[Flattened action: list_templates]\n\nBulk support: accepts response_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "tipo": {
                "type": "string",
                "default": ""
              },
              "limit": {
                "type": "number",
                "default": 50
              },
              "offset": {
                "type": "number",
                "default": 0
              },
              "account": {
                "type": "string"
              },
              "response_id": {
                "type": "string",
                "default": ""
              },
              "response_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_preconsulta_list_templates",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_preconsulta_list_responses",
          "description": "Read pre-consultation questionnaires (Pré-consulta) in WebDiet.\nActions:\n- list_templates  → list all questionnaire templates the nutritionist publishes. Each item returns nome, descricao, perguntas[] (decoded), modelo, codigo, \"link\" (the public short URL https://nutr.se/<short> to share with patients) and \"preview_url\" (panel preview). USE THIS when the user asks for \"o link do questionário de pré-consulta\" / \"link do formulário\".\n- list_responses  → list patient submissions to ANY template. Each response has id, id_code, template_nome, origem (anamnese | questionario), respondedor {nome, telefone, nascimento}, data, texto (decoded plain Q/A), texto_html (original HTML), pdf_url. Use filtros tipo (template name) and nome (responder name) to narrow.\n- get_response    → fetch one response by id (or id_code/codigo).\nFor LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.\n\n[Flattened action: list_responses]\n\nBulk support: accepts response_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "tipo": {
                "type": "string",
                "default": ""
              },
              "limit": {
                "type": "number",
                "default": 50
              },
              "offset": {
                "type": "number",
                "default": 0
              },
              "account": {
                "type": "string"
              },
              "response_id": {
                "type": "string",
                "default": ""
              },
              "response_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_preconsulta_list_responses",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_preconsulta_get_response",
          "description": "Read pre-consultation questionnaires (Pré-consulta) in WebDiet.\nActions:\n- list_templates  → list all questionnaire templates the nutritionist publishes. Each item returns nome, descricao, perguntas[] (decoded), modelo, codigo, \"link\" (the public short URL https://nutr.se/<short> to share with patients) and \"preview_url\" (panel preview). USE THIS when the user asks for \"o link do questionário de pré-consulta\" / \"link do formulário\".\n- list_responses  → list patient submissions to ANY template. Each response has id, id_code, template_nome, origem (anamnese | questionario), respondedor {nome, telefone, nascimento}, data, texto (decoded plain Q/A), texto_html (original HTML), pdf_url. Use filtros tipo (template name) and nome (responder name) to narrow.\n- get_response    → fetch one response by id (or id_code/codigo).\nFor LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.\n\n[Flattened action: get_response]\n\nBulk support: accepts response_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "tipo": {
                "type": "string",
                "default": ""
              },
              "limit": {
                "type": "number",
                "default": 50
              },
              "offset": {
                "type": "number",
                "default": 0
              },
              "account": {
                "type": "string"
              },
              "response_id": {
                "type": "string",
                "default": ""
              },
              "response_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_preconsulta_get_response",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_preconsulta_write_link_to_patient",
          "description": "Vincular (link) a pre-consultation response to an existing patient in WebDiet.\nAction: link_to_patient — imports the response content into the patient's chart. WebDiet routes automatically based on the response's \"origem\":\n  • origem=anamnese      → response becomes a new anamnese (importarPreanamnese.php)\n  • origem=questionario  → response becomes a new diagnostico (criarDiagnosticoPre.php)\nThis is the API-equivalent of the panel's \"Vincular ao paciente\" button on the Respostas dos questionários page. After linking, the response remains in the responses list — use webdiet_preconsulta_delete to remove it if desired.\nTip: when the response's respondedor.nome differs from the patient's nome (e.g. \"DALILA JULIAO MARTINS\" vs \"Dalila CG\"), match by telefone or nascimento via webdiet_patient list before linking.\n\n[Flattened action: link_to_patient]\n\nBulk support: accepts patient_ids, response_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id",
              "response_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "response_id": {
                "type": "string"
              },
              "response_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_preconsulta_write_link_to_patient",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_preconsulta_delete",
          "description": "Permanently delete a pre-consultation response in WebDiet. Templates are NOT affected. Irreversible.\n\nBulk support: accepts response_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "response_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "response_id": {
                "type": "string"
              },
              "response_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_preconsulta_delete",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "webdiet_antropometria_list",
          "description": "Read anthropometry (body measurement) records for a WebDiet patient.\nActions: list (all records with id, date, type, direct URL), get (full measurements from a specific record including weight, height, skinfolds, circumferences, bioimpedance, BMI, body fat %, classifications + direct URL).\nEach record includes a \"url\" field with the direct link to the record in WebDiet (e.g. https://pt.webdiet.com.br/painel/v4/antropometria.php?id=...).\nUse this to analyze patient body composition evolution over time. For creating/saving records, use webdiet_create_antropometria + webdiet_save_antropometria.\n\n[Flattened action: list]\n\nBulk support: accepts patient_ids, antropometria_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "antropometria_id": {
                "type": "string"
              },
              "antropometria_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_antropometria_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_antropometria_get",
          "description": "Read anthropometry (body measurement) records for a WebDiet patient.\nActions: list (all records with id, date, type, direct URL), get (full measurements from a specific record including weight, height, skinfolds, circumferences, bioimpedance, BMI, body fat %, classifications + direct URL).\nEach record includes a \"url\" field with the direct link to the record in WebDiet (e.g. https://pt.webdiet.com.br/painel/v4/antropometria.php?id=...).\nUse this to analyze patient body composition evolution over time. For creating/saving records, use webdiet_create_antropometria + webdiet_save_antropometria.\n\n[Flattened action: get]\n\nBulk support: accepts patient_ids, antropometria_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "antropometria_id": {
                "type": "string"
              },
              "antropometria_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_antropometria_get",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_create_antropometria",
          "description": "Create a new body measurement record for a patient. Returns the record ID needed for webdiet_save_antropometria. Types: adulto (adult), infantil (child), gestacional (pregnancy).\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "data": {
                "type": "string",
                "default": ""
              },
              "tipo": {
                "enum": [
                  "adulto",
                  "infantil",
                  "gestacional"
                ],
                "type": "string",
                "default": "adulto"
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_create_antropometria",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_save_antropometria",
          "description": "Save body measurements (anthropometry) for a patient. Call webdiet_create_antropometria first to get the antropometria_id.\nAll numeric values are strings. Provide raw measurements — calculated fields (IMC, GC%, density, fat mass, lean mass, classifications) are computed automatically server-side using the chosen formula.\nSections: basic (peso/altura), skinfolds (10 dobras in mm), circumferences (20 fields in cm, bilateral pairs for limbs), bone diameters (3 fields in cm), bioimpedance (9 fields from scale).\nFormulas for body fat %: pollock3 (default), pollock7, guedes, petroski, durnin, faulkner, nenhuma.\nDensity conversion: brozek (default) or siri. Side for CMB: esquerdo (default) or direito.\n\nBulk support: accepts patient_ids, antropometria_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id",
              "antropometria_id"
            ],
            "properties": {
              "lado": {
                "enum": [
                  "esquerdo",
                  "direito"
                ],
                "type": "string",
                "default": "esquerdo"
              },
              "massa": {
                "type": "string"
              },
              "origem": {
                "enum": [
                  "manual",
                  "automatica"
                ],
                "type": "string",
                "default": "manual"
              },
              "account": {
                "type": "string"
              },
              "c_ombro": {
                "type": "string"
              },
              "c_torax": {
                "type": "string"
              },
              "estatura": {
                "type": "string"
              },
              "c_abdomen": {
                "type": "string"
              },
              "c_cintura": {
                "type": "string"
              },
              "c_pescoco": {
                "type": "string"
              },
              "c_quadril": {
                "type": "string"
              },
              "dobra_coxa": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "c_antebraco": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "c_coxadistal": {
                "type": "string"
              },
              "c_coxamedial": {
                "type": "string"
              },
              "dobra_axilar": {
                "type": "string"
              },
              "altura_joelho": {
                "type": "string"
              },
              "c_panturrilha": {
                "type": "string"
              },
              "c_coxaproximal": {
                "type": "string"
              },
              "diametro_femur": {
                "type": "string"
              },
              "diametro_punho": {
                "type": "string"
              },
              "diametro_umero": {
                "type": "string"
              },
              "dobra_biciptal": {
                "type": "string"
              },
              "dobra_toraxica": {
                "type": "string"
              },
              "c_antebraco_dir": {
                "type": "string"
              },
              "c_bracorelaxado": {
                "type": "string"
              },
              "dobra_abdominal": {
                "type": "string"
              },
              "dobra_triceptal": {
                "type": "string"
              },
              "antropometria_id": {
                "type": "string"
              },
              "c_bracocontraido": {
                "type": "string"
              },
              "c_coxadistal_dir": {
                "type": "string"
              },
              "c_coxamedial_dir": {
                "type": "string"
              },
              "estatura_sentado": {
                "type": "string"
              },
              "refAntropometria": {
                "enum": [
                  "brozek",
                  "siri"
                ],
                "type": "string",
                "default": "brozek"
              },
              "antropometria_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "c_panturrilha_dir": {
                "type": "string"
              },
              "dobra_panturrilha": {
                "type": "string"
              },
              "dobra_suprailiaca": {
                "type": "string"
              },
              "formula_escolhida": {
                "enum": [
                  "pollock3",
                  "pollock7",
                  "guedes",
                  "petroski",
                  "durnin",
                  "faulkner",
                  "nenhuma"
                ],
                "type": "string",
                "default": "pollock3"
              },
              "bioimpedancia_agua": {
                "type": "string"
              },
              "c_coxaproximal_dir": {
                "type": "string"
              },
              "dobra_subescapular": {
                "type": "string"
              },
              "bioimpedancia_idade": {
                "type": "string"
              },
              "bioimpedancia_massa": {
                "type": "string"
              },
              "bioimpedancia_osseo": {
                "type": "string"
              },
              "c_bracorelaxado_dir": {
                "type": "string"
              },
              "dobra_supraespinhal": {
                "type": "string"
              },
              "c_bracocontraido_dir": {
                "type": "string"
              },
              "bioimpedancia_gordura": {
                "type": "string"
              },
              "bioimpedancia_visceral": {
                "type": "string"
              },
              "bioimpedancia_massalivre": {
                "type": "string"
              },
              "bioimpedancia_massaGordura": {
                "type": "string"
              },
              "bioimpedancia_percentualMagra": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_save_antropometria",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_get_planner",
          "description": "Load the nutritionist's calendar/agenda for a date: appointments, overdue tasks, birthdays, events. Defaults to today.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "date": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_get_planner",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prescription_list",
          "description": "Read meal plan prescriptions in WebDiet.\nActions: list (all recent prescriptions — each includes \"url\" with the full direct link), get_detail (full meals/foods from a prescription URL).\nAlways show the \"url\" field to the user when they ask for a prescription link.\n\n[Flattened action: list]",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "link": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_prescription_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prescription_get_detail",
          "description": "Read meal plan prescriptions in WebDiet.\nActions: list (all recent prescriptions — each includes \"url\" with the full direct link), get_detail (full meals/foods from a prescription URL).\nAlways show the \"url\" field to the user when they ask for a prescription link.\n\n[Flattened action: get_detail]",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "link": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_prescription_get_detail",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prescription_write_create",
          "description": "Create, save or publish meal plan prescriptions in WebDiet.\nActions: create (new prescription for patient), save (meals/foods JSON to existing prescription), publish (release prescription to patient — makes it visible on the patient portal/app).\nIMPORTANT: After creating and saving foods, you MUST call publish to make the prescription visible to the patient.\n\n═══ MÉTODO DE PRESCRIÇÃO — escolha no create ═══\nWebDiet tem 3 métodos:\n\n• \"Convencional\" (UI: \"Por alimentos\", URL: metodoPlanning.php) — DEFAULT e RECOMENDADO. Alimento-por-alimento. Para cálculo de macros automático (proteínas/lipídios/carboidratos/calorias) na tabela \"Alimentos prescritos\" detalhada, cada alimento DEVE incluir o campo \"id\" com o WebDiet food-DB ID numérico. Sem id, o alimento AINDA é salvo no método Convencional e aparece no card expandido da refeição com nome + medida caseira, mas sem macros. NÃO vai para a seção qualitativa — o save retorna um warning explicando.\n\n• \"Equivalentes\"  (UI: \"Por equivalentes\", URL: metodoWebdiet.php) — avançado. Prescrição por grupos de equivalentes. Requer IDs do banco.\n\n• \"Qualitativo\"   (UI: \"Qualitativa\", URL: metodoQualitativo.php) — texto livre por refeição. A página do Qualitativo usa estrutura de dados diferente (refs com objetos cardapio) que este adapter ainda não gera corretamente via save. Para prescrições qualitativas, recomendado: criar via UI ou usar metodo=\"Convencional\" sem food IDs (os alimentos aparecem como texto na refeição sem macros, efeito semelhante).\n\n═══ prescricao_json (para o save) ═══\nJSON array de refeições. Cada refeição: {nome, horario, alimentos:[...]}.\nCada alimento: {nome, quantidade, medida_caseira, peso_gramas, id?}.\n\nAUTO-RESOLVE: se \"id\" não for enviado, o adapter procura automaticamente o melhor match no banco WebDiet (mesmo catálogo do webdiet_food_search) pelo campo \"nome\" e preenche o id antes de salvar — com isso os macros são calculados mesmo sem pré-chamar webdiet_food_search. O save retorna auto_resolved_foods {resolved, not_found, unresolved[]} indicando quais nomes não tiveram correspondência. Para controle fino (variante específica do banco, gramagem da medida caseira etc.), ainda é recomendado chamar webdiet_food_search e enviar o \"id\" explicitamente.\n\nPara evitar duplicação na UI (\"2 2 fatias (50g)\"), use quantidade numérica em \"quantidade\" e medida_caseira SEM repetir esse número e SEM sufixo \"(Xg)\" — ex.: quantidade=\"2\", medida_caseira=\"fatias\", peso_gramas=\"50\". O MCP também normaliza automaticamente se você enviar texto completo.\n\nExemplo sem ids (o adapter resolve automaticamente; nomes pouco específicos podem não encontrar match):\n[{\"nome\":\"Café da Manhã\",\"horario\":\"07:00\",\"alimentos\":[{\"nome\":\"Pão integral\",\"quantidade\":\"2\",\"medida_caseira\":\"fatias\",\"peso_gramas\":\"60\"}]}]\n\nExemplo com ids (pula o auto-resolve — ideal quando você já escolheu a variante exata):\n[{\"nome\":\"Almoço\",\"horario\":\"12:00\",\"alimentos\":[{\"id\":\"9153\",\"nome\":\"Arroz branco cozido\",\"quantidade\":\"4\",\"medida_caseira\":\"4 colheres de sopa (100g)\",\"peso_gramas\":\"100\"},{\"id\":\"9168\",\"nome\":\"Feijão carioca cozido\",\"quantidade\":\"2\",\"medida_caseira\":\"2 colheres (50g)\",\"peso_gramas\":\"50\"}]}]\n\nO save retorna {ok, metodo, warnings[], raw, auto_resolved_foods}. warnings avisa sobre alimentos sem id e alimentos não encontrados no banco.\n\n[Flattened action: create]\n\nBulk support: accepts patient_ids, prescription_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": "Prescrição Alimentar"
              },
              "metodo": {
                "enum": [
                  "Convencional",
                  "Equivalentes",
                  "Qualitativo"
                ],
                "type": "string",
                "default": "Convencional"
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "prescricao_json": {
                "type": "string",
                "default": ""
              },
              "prescription_id": {
                "type": "string",
                "default": ""
              },
              "prescription_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_prescription_write_create",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prescription_write_save",
          "description": "Create, save or publish meal plan prescriptions in WebDiet.\nActions: create (new prescription for patient), save (meals/foods JSON to existing prescription), publish (release prescription to patient — makes it visible on the patient portal/app).\nIMPORTANT: After creating and saving foods, you MUST call publish to make the prescription visible to the patient.\n\n═══ MÉTODO DE PRESCRIÇÃO — escolha no create ═══\nWebDiet tem 3 métodos:\n\n• \"Convencional\" (UI: \"Por alimentos\", URL: metodoPlanning.php) — DEFAULT e RECOMENDADO. Alimento-por-alimento. Para cálculo de macros automático (proteínas/lipídios/carboidratos/calorias) na tabela \"Alimentos prescritos\" detalhada, cada alimento DEVE incluir o campo \"id\" com o WebDiet food-DB ID numérico. Sem id, o alimento AINDA é salvo no método Convencional e aparece no card expandido da refeição com nome + medida caseira, mas sem macros. NÃO vai para a seção qualitativa — o save retorna um warning explicando.\n\n• \"Equivalentes\"  (UI: \"Por equivalentes\", URL: metodoWebdiet.php) — avançado. Prescrição por grupos de equivalentes. Requer IDs do banco.\n\n• \"Qualitativo\"   (UI: \"Qualitativa\", URL: metodoQualitativo.php) — texto livre por refeição. A página do Qualitativo usa estrutura de dados diferente (refs com objetos cardapio) que este adapter ainda não gera corretamente via save. Para prescrições qualitativas, recomendado: criar via UI ou usar metodo=\"Convencional\" sem food IDs (os alimentos aparecem como texto na refeição sem macros, efeito semelhante).\n\n═══ prescricao_json (para o save) ═══\nJSON array de refeições. Cada refeição: {nome, horario, alimentos:[...]}.\nCada alimento: {nome, quantidade, medida_caseira, peso_gramas, id?}.\n\nAUTO-RESOLVE: se \"id\" não for enviado, o adapter procura automaticamente o melhor match no banco WebDiet (mesmo catálogo do webdiet_food_search) pelo campo \"nome\" e preenche o id antes de salvar — com isso os macros são calculados mesmo sem pré-chamar webdiet_food_search. O save retorna auto_resolved_foods {resolved, not_found, unresolved[]} indicando quais nomes não tiveram correspondência. Para controle fino (variante específica do banco, gramagem da medida caseira etc.), ainda é recomendado chamar webdiet_food_search e enviar o \"id\" explicitamente.\n\nPara evitar duplicação na UI (\"2 2 fatias (50g)\"), use quantidade numérica em \"quantidade\" e medida_caseira SEM repetir esse número e SEM sufixo \"(Xg)\" — ex.: quantidade=\"2\", medida_caseira=\"fatias\", peso_gramas=\"50\". O MCP também normaliza automaticamente se você enviar texto completo.\n\nExemplo sem ids (o adapter resolve automaticamente; nomes pouco específicos podem não encontrar match):\n[{\"nome\":\"Café da Manhã\",\"horario\":\"07:00\",\"alimentos\":[{\"nome\":\"Pão integral\",\"quantidade\":\"2\",\"medida_caseira\":\"fatias\",\"peso_gramas\":\"60\"}]}]\n\nExemplo com ids (pula o auto-resolve — ideal quando você já escolheu a variante exata):\n[{\"nome\":\"Almoço\",\"horario\":\"12:00\",\"alimentos\":[{\"id\":\"9153\",\"nome\":\"Arroz branco cozido\",\"quantidade\":\"4\",\"medida_caseira\":\"4 colheres de sopa (100g)\",\"peso_gramas\":\"100\"},{\"id\":\"9168\",\"nome\":\"Feijão carioca cozido\",\"quantidade\":\"2\",\"medida_caseira\":\"2 colheres (50g)\",\"peso_gramas\":\"50\"}]}]\n\nO save retorna {ok, metodo, warnings[], raw, auto_resolved_foods}. warnings avisa sobre alimentos sem id e alimentos não encontrados no banco.\n\n[Flattened action: save]\n\nBulk support: accepts patient_ids, prescription_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": "Prescrição Alimentar"
              },
              "metodo": {
                "enum": [
                  "Convencional",
                  "Equivalentes",
                  "Qualitativo"
                ],
                "type": "string",
                "default": "Convencional"
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "prescricao_json": {
                "type": "string",
                "default": ""
              },
              "prescription_id": {
                "type": "string",
                "default": ""
              },
              "prescription_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_prescription_write_save",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_prescription_write_publish",
          "description": "Create, save or publish meal plan prescriptions in WebDiet.\nActions: create (new prescription for patient), save (meals/foods JSON to existing prescription), publish (release prescription to patient — makes it visible on the patient portal/app).\nIMPORTANT: After creating and saving foods, you MUST call publish to make the prescription visible to the patient.\n\n═══ MÉTODO DE PRESCRIÇÃO — escolha no create ═══\nWebDiet tem 3 métodos:\n\n• \"Convencional\" (UI: \"Por alimentos\", URL: metodoPlanning.php) — DEFAULT e RECOMENDADO. Alimento-por-alimento. Para cálculo de macros automático (proteínas/lipídios/carboidratos/calorias) na tabela \"Alimentos prescritos\" detalhada, cada alimento DEVE incluir o campo \"id\" com o WebDiet food-DB ID numérico. Sem id, o alimento AINDA é salvo no método Convencional e aparece no card expandido da refeição com nome + medida caseira, mas sem macros. NÃO vai para a seção qualitativa — o save retorna um warning explicando.\n\n• \"Equivalentes\"  (UI: \"Por equivalentes\", URL: metodoWebdiet.php) — avançado. Prescrição por grupos de equivalentes. Requer IDs do banco.\n\n• \"Qualitativo\"   (UI: \"Qualitativa\", URL: metodoQualitativo.php) — texto livre por refeição. A página do Qualitativo usa estrutura de dados diferente (refs com objetos cardapio) que este adapter ainda não gera corretamente via save. Para prescrições qualitativas, recomendado: criar via UI ou usar metodo=\"Convencional\" sem food IDs (os alimentos aparecem como texto na refeição sem macros, efeito semelhante).\n\n═══ prescricao_json (para o save) ═══\nJSON array de refeições. Cada refeição: {nome, horario, alimentos:[...]}.\nCada alimento: {nome, quantidade, medida_caseira, peso_gramas, id?}.\n\nAUTO-RESOLVE: se \"id\" não for enviado, o adapter procura automaticamente o melhor match no banco WebDiet (mesmo catálogo do webdiet_food_search) pelo campo \"nome\" e preenche o id antes de salvar — com isso os macros são calculados mesmo sem pré-chamar webdiet_food_search. O save retorna auto_resolved_foods {resolved, not_found, unresolved[]} indicando quais nomes não tiveram correspondência. Para controle fino (variante específica do banco, gramagem da medida caseira etc.), ainda é recomendado chamar webdiet_food_search e enviar o \"id\" explicitamente.\n\nPara evitar duplicação na UI (\"2 2 fatias (50g)\"), use quantidade numérica em \"quantidade\" e medida_caseira SEM repetir esse número e SEM sufixo \"(Xg)\" — ex.: quantidade=\"2\", medida_caseira=\"fatias\", peso_gramas=\"50\". O MCP também normaliza automaticamente se você enviar texto completo.\n\nExemplo sem ids (o adapter resolve automaticamente; nomes pouco específicos podem não encontrar match):\n[{\"nome\":\"Café da Manhã\",\"horario\":\"07:00\",\"alimentos\":[{\"nome\":\"Pão integral\",\"quantidade\":\"2\",\"medida_caseira\":\"fatias\",\"peso_gramas\":\"60\"}]}]\n\nExemplo com ids (pula o auto-resolve — ideal quando você já escolheu a variante exata):\n[{\"nome\":\"Almoço\",\"horario\":\"12:00\",\"alimentos\":[{\"id\":\"9153\",\"nome\":\"Arroz branco cozido\",\"quantidade\":\"4\",\"medida_caseira\":\"4 colheres de sopa (100g)\",\"peso_gramas\":\"100\"},{\"id\":\"9168\",\"nome\":\"Feijão carioca cozido\",\"quantidade\":\"2\",\"medida_caseira\":\"2 colheres (50g)\",\"peso_gramas\":\"50\"}]}]\n\nO save retorna {ok, metodo, warnings[], raw, auto_resolved_foods}. warnings avisa sobre alimentos sem id e alimentos não encontrados no banco.\n\n[Flattened action: publish]\n\nBulk support: accepts patient_ids, prescription_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": "Prescrição Alimentar"
              },
              "metodo": {
                "enum": [
                  "Convencional",
                  "Equivalentes",
                  "Qualitativo"
                ],
                "type": "string",
                "default": "Convencional"
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "prescricao_json": {
                "type": "string",
                "default": ""
              },
              "prescription_id": {
                "type": "string",
                "default": ""
              },
              "prescription_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_prescription_write_publish",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_food_search",
          "description": "Search WebDiet food database for numeric food ids (needed for full macros in Convencional / metodoPlanning prescriptions).\nUses the same data source as the panel (carregarAlimentosAvulsos.php): the full catalog is cached per MCP session and filtered client-side (min 3 characters in keyword, same as the planning UI).\nReturns id, nome, grupo, origem, macros (kcal, proteinas, lipidios, carboidratos, fibras), and medidas_caseiras with gram weights.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "keyword"
            ],
            "properties": {
              "limite": {
                "type": "number",
                "default": 25
              },
              "account": {
                "type": "string"
              },
              "keyword": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_food_search",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_orientacoes_list",
          "description": "Read \"Listas e Orientações\" (guidelines/orientation lists) in WebDiet.\nActions: list (orientation records for a patient), list_banco (orientation bank / favorites — saved templates available to send to any patient).\nThe orientation bank contains nutritionist's saved/favorite orientations (e.g. \"Chás diuréticos\", \"Refeições livres\") that can be sent to any patient. Use list_banco to see available names, then pass those exact names to webdiet_orientacoes_write action=send.\n\n[Flattened action: list]\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limite": {
                "type": "number",
                "default": 50
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_orientacoes_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_orientacoes_list_banco",
          "description": "Read \"Listas e Orientações\" (guidelines/orientation lists) in WebDiet.\nActions: list (orientation records for a patient), list_banco (orientation bank / favorites — saved templates available to send to any patient).\nThe orientation bank contains nutritionist's saved/favorite orientations (e.g. \"Chás diuréticos\", \"Refeições livres\") that can be sent to any patient. Use list_banco to see available names, then pass those exact names to webdiet_orientacoes_write action=send.\n\n[Flattened action: list_banco]\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limite": {
                "type": "number",
                "default": 50
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_orientacoes_list_banco",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_orientacoes_write_save",
          "description": "Create / update / send \"Listas e Orientações\" in WebDiet.\nActions: save (create/update an orientation for a patient), send (send orientation(s) from the bank to a patient by exact name).\nsave: non-ASCII emojis in \"texto\" are encoded as HTML numeric entities so they render on the patient portal (avoids \"?\" placeholders). If \"titulo\" is set, an <h1> with the title is prepended to \"texto\" for the patient view (portal does not show titulo alone).\n\n[Flattened action: save]\n\nBulk support: accepts patient_ids, orientacao_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nomes": {
                "type": "string",
                "default": ""
              },
              "texto": {
                "type": "string",
                "default": ""
              },
              "titulo": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "orientacao_id": {
                "type": "string",
                "default": ""
              },
              "orientacao_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_orientacoes_write_save",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_orientacoes_write_send",
          "description": "Create / update / send \"Listas e Orientações\" in WebDiet.\nActions: save (create/update an orientation for a patient), send (send orientation(s) from the bank to a patient by exact name).\nsave: non-ASCII emojis in \"texto\" are encoded as HTML numeric entities so they render on the patient portal (avoids \"?\" placeholders). If \"titulo\" is set, an <h1> with the title is prepended to \"texto\" for the patient view (portal does not show titulo alone).\n\n[Flattened action: send]\n\nBulk support: accepts patient_ids, orientacao_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nomes": {
                "type": "string",
                "default": ""
              },
              "texto": {
                "type": "string",
                "default": ""
              },
              "titulo": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "orientacao_id": {
                "type": "string",
                "default": ""
              },
              "orientacao_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_orientacoes_write_send",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_list",
          "description": "Read \"Prescrição de manipulados\" (compounded/magistral pharmacy formulas) in WebDiet.\nActions:\n- list_banco   → search the WebDiet formula bank (~249 pre-built templates: ~120 disponíveis + ~129 de extensões pagas). Filtros: keyword (busca livre na indicação clínica = nome da fórmula), categoria (suplementos | cosmeceuticos | dermatologicos | extensoes), incluir_bloqueados (default false — esconde fórmulas de extensões pagas). Cada item retornado contém: nome (= a indicação clínica), categoria, texto_html (fórmula completa com componentes, doses e modo de usar), bloqueado.\n- list         → list manipulados already prescribed to a patient (id, nome, data, liberado, pdf_url + pdf_global_url).\n- get          → fetch full HTML content (componentes + doses) of a specific manipulado already prescribed to a patient.\n\nFor write operations (save / send / publish / duplicate) use webdiet_manipulados_write.\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: list]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limite": {
                "type": "number",
                "default": 50
              },
              "account": {
                "type": "string"
              },
              "keyword": {
                "type": "string",
                "default": ""
              },
              "categoria": {
                "enum": [
                  "",
                  "suplementos",
                  "cosmeceuticos",
                  "dermatologicos",
                  "extensoes",
                  "all"
                ],
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "incluir_bloqueados": {
                "type": "boolean",
                "default": false
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_list_banco",
          "description": "Read \"Prescrição de manipulados\" (compounded/magistral pharmacy formulas) in WebDiet.\nActions:\n- list_banco   → search the WebDiet formula bank (~249 pre-built templates: ~120 disponíveis + ~129 de extensões pagas). Filtros: keyword (busca livre na indicação clínica = nome da fórmula), categoria (suplementos | cosmeceuticos | dermatologicos | extensoes), incluir_bloqueados (default false — esconde fórmulas de extensões pagas). Cada item retornado contém: nome (= a indicação clínica), categoria, texto_html (fórmula completa com componentes, doses e modo de usar), bloqueado.\n- list         → list manipulados already prescribed to a patient (id, nome, data, liberado, pdf_url + pdf_global_url).\n- get          → fetch full HTML content (componentes + doses) of a specific manipulado already prescribed to a patient.\n\nFor write operations (save / send / publish / duplicate) use webdiet_manipulados_write.\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: list_banco]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limite": {
                "type": "number",
                "default": 50
              },
              "account": {
                "type": "string"
              },
              "keyword": {
                "type": "string",
                "default": ""
              },
              "categoria": {
                "enum": [
                  "",
                  "suplementos",
                  "cosmeceuticos",
                  "dermatologicos",
                  "extensoes",
                  "all"
                ],
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "incluir_bloqueados": {
                "type": "boolean",
                "default": false
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_list_banco",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_get",
          "description": "Read \"Prescrição de manipulados\" (compounded/magistral pharmacy formulas) in WebDiet.\nActions:\n- list_banco   → search the WebDiet formula bank (~249 pre-built templates: ~120 disponíveis + ~129 de extensões pagas). Filtros: keyword (busca livre na indicação clínica = nome da fórmula), categoria (suplementos | cosmeceuticos | dermatologicos | extensoes), incluir_bloqueados (default false — esconde fórmulas de extensões pagas). Cada item retornado contém: nome (= a indicação clínica), categoria, texto_html (fórmula completa com componentes, doses e modo de usar), bloqueado.\n- list         → list manipulados already prescribed to a patient (id, nome, data, liberado, pdf_url + pdf_global_url).\n- get          → fetch full HTML content (componentes + doses) of a specific manipulado already prescribed to a patient.\n\nFor write operations (save / send / publish / duplicate) use webdiet_manipulados_write.\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: get]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limite": {
                "type": "number",
                "default": 50
              },
              "account": {
                "type": "string"
              },
              "keyword": {
                "type": "string",
                "default": ""
              },
              "categoria": {
                "enum": [
                  "",
                  "suplementos",
                  "cosmeceuticos",
                  "dermatologicos",
                  "extensoes",
                  "all"
                ],
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "incluir_bloqueados": {
                "type": "boolean",
                "default": false
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_get",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_write_save",
          "description": "Create / send / publish / duplicate manipulados in WebDiet.\nActions:\n- save       → create or update a manipulado for a patient. texto = raw HTML (tinyMCE content), nome = formula name. Omit manipulado_id to create; pass it to update an existing one. Returns id and pdf_url.\n- send       → SHORTCUT prescribir + publicar: copia uma ou mais fórmulas do banco (por nome exato vindo de webdiet_manipulados list_banco) para o paciente como manipulados novos. Já fica liberado=true (visível no app/portal do paciente) imediatamente. Skips fórmulas bloqueadas com mensagem de erro.\n- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.\n- duplicate  → duplicate an existing manipulado (creates a copy \"(cópia)\").\n\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: save]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "nomes": {
                "type": "string",
                "default": ""
              },
              "texto": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_write_save",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_write_send",
          "description": "Create / send / publish / duplicate manipulados in WebDiet.\nActions:\n- save       → create or update a manipulado for a patient. texto = raw HTML (tinyMCE content), nome = formula name. Omit manipulado_id to create; pass it to update an existing one. Returns id and pdf_url.\n- send       → SHORTCUT prescribir + publicar: copia uma ou mais fórmulas do banco (por nome exato vindo de webdiet_manipulados list_banco) para o paciente como manipulados novos. Já fica liberado=true (visível no app/portal do paciente) imediatamente. Skips fórmulas bloqueadas com mensagem de erro.\n- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.\n- duplicate  → duplicate an existing manipulado (creates a copy \"(cópia)\").\n\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: send]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "nomes": {
                "type": "string",
                "default": ""
              },
              "texto": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_write_send",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_write_publish",
          "description": "Create / send / publish / duplicate manipulados in WebDiet.\nActions:\n- save       → create or update a manipulado for a patient. texto = raw HTML (tinyMCE content), nome = formula name. Omit manipulado_id to create; pass it to update an existing one. Returns id and pdf_url.\n- send       → SHORTCUT prescribir + publicar: copia uma ou mais fórmulas do banco (por nome exato vindo de webdiet_manipulados list_banco) para o paciente como manipulados novos. Já fica liberado=true (visível no app/portal do paciente) imediatamente. Skips fórmulas bloqueadas com mensagem de erro.\n- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.\n- duplicate  → duplicate an existing manipulado (creates a copy \"(cópia)\").\n\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: publish]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "nomes": {
                "type": "string",
                "default": ""
              },
              "texto": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_write_publish",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_write_duplicate",
          "description": "Create / send / publish / duplicate manipulados in WebDiet.\nActions:\n- save       → create or update a manipulado for a patient. texto = raw HTML (tinyMCE content), nome = formula name. Omit manipulado_id to create; pass it to update an existing one. Returns id and pdf_url.\n- send       → SHORTCUT prescribir + publicar: copia uma ou mais fórmulas do banco (por nome exato vindo de webdiet_manipulados list_banco) para o paciente como manipulados novos. Já fica liberado=true (visível no app/portal do paciente) imediatamente. Skips fórmulas bloqueadas com mensagem de erro.\n- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.\n- duplicate  → duplicate an existing manipulado (creates a copy \"(cópia)\").\n\nFor destructive delete use webdiet_manipulados_delete.\n\n[Flattened action: duplicate]\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "nome": {
                "type": "string",
                "default": ""
              },
              "nomes": {
                "type": "string",
                "default": ""
              },
              "texto": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string",
                "default": ""
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_write_duplicate",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_manipulados_delete",
          "description": "Permanently delete a manipulado for a patient. Irreversible.\n\nBulk support: accepts patient_ids, manipulado_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id",
              "manipulado_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "manipulado_id": {
                "type": "string"
              },
              "manipulado_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_manipulados_delete",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "webdiet_calculo_energetico_list",
          "description": "Read energy expenditure calculations (Cálculo Energético) in WebDiet.\nActions: list (all calculations for a patient), get (load saved data).\nResults: TMB (basal metabolic rate), GET (total energy expenditure) in Kcal/dia and Kcal/kg.\n\n[Flattened action: list]\n\nBulk support: accepts patient_ids, calculo_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "account": {
                "type": "string"
              },
              "calculo_id": {
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "calculo_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_calculo_energetico_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_calculo_energetico_get",
          "description": "Read energy expenditure calculations (Cálculo Energético) in WebDiet.\nActions: list (all calculations for a patient), get (load saved data).\nResults: TMB (basal metabolic rate), GET (total energy expenditure) in Kcal/dia and Kcal/kg.\n\n[Flattened action: get]\n\nBulk support: accepts patient_ids, calculo_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "account": {
                "type": "string"
              },
              "calculo_id": {
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "calculo_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_calculo_energetico_get",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_calculo_energetico_write_create",
          "description": "Create / update energy expenditure calculations in WebDiet.\nActions: create (new calculation), save (update existing calculation).\nSupports 24+ formulas: Harris-Benedict 1919/1984, FAO/WHO 2004, EER/IOM 2005, EER 2023, Katch-McArdle 1996, Cunningham 1980, Mifflin-St Jeor 1990, and more.\nActivity factors: 1.0 (none), 1.2 (sedentary), 1.375 (light), 1.55 (moderate), 1.725 (intense), 1.9 (very intense).\nInjury factors: 1.0 (none) up to 2.0 (burns 70-90%).\n\n[Flattened action: create]\n\nBulk support: accepts patient_ids, calculo_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "mlg": {
                "type": "string",
                "default": ""
              },
              "nome": {
                "type": "string",
                "default": "Cálculo Energético"
              },
              "peso": {
                "type": "string",
                "default": ""
              },
              "altura": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "formula": {
                "type": "string",
                "default": ""
              },
              "calculo_id": {
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "calculo_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "fator_injuria": {
                "type": "string",
                "default": "1.000"
              },
              "fator_atividade": {
                "type": "string",
                "default": "1.200"
              }
            }
          },
          "annotations": {
            "title": "webdiet_calculo_energetico_write_create",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_calculo_energetico_write_save",
          "description": "Create / update energy expenditure calculations in WebDiet.\nActions: create (new calculation), save (update existing calculation).\nSupports 24+ formulas: Harris-Benedict 1919/1984, FAO/WHO 2004, EER/IOM 2005, EER 2023, Katch-McArdle 1996, Cunningham 1980, Mifflin-St Jeor 1990, and more.\nActivity factors: 1.0 (none), 1.2 (sedentary), 1.375 (light), 1.55 (moderate), 1.725 (intense), 1.9 (very intense).\nInjury factors: 1.0 (none) up to 2.0 (burns 70-90%).\n\n[Flattened action: save]\n\nBulk support: accepts patient_ids, calculo_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "mlg": {
                "type": "string",
                "default": ""
              },
              "nome": {
                "type": "string",
                "default": "Cálculo Energético"
              },
              "peso": {
                "type": "string",
                "default": ""
              },
              "altura": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              },
              "formula": {
                "type": "string",
                "default": ""
              },
              "calculo_id": {
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "calculo_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "fator_injuria": {
                "type": "string",
                "default": "1.000"
              },
              "fator_atividade": {
                "type": "string",
                "default": "1.200"
              }
            }
          },
          "annotations": {
            "title": "webdiet_calculo_energetico_write_save",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_calculo_energetico_delete",
          "description": "Permanently delete an energy expenditure calculation. Irreversible.\n\nBulk support: accepts calculo_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "calculo_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "calculo_id": {
                "type": "string"
              },
              "calculo_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_calculo_energetico_delete",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "webdiet_list_anexos",
          "description": "Load educational slides or cloud file attachments. Use laminasAnexos for educational slides/laminas (~238 items with PDFs about nutrition topics), cloudAnexos for uploaded cloud files. For guidelines/orientations specifically, use webdiet_orientacoes action=list_banco.\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "tipo": {
                "enum": [
                  "laminasAnexos",
                  "cloudAnexos"
                ],
                "type": "string",
                "default": "laminasAnexos"
              },
              "account": {
                "type": "string"
              },
              "patient_id": {
                "type": "string",
                "default": ""
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "default": ""
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_list_anexos",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_get_upload_command",
          "description": "Returns a ready-to-run curl command that uploads a file directly to the server without reading it into context.\nRECOMMENDED for large files (images, PDFs, lab results). The flow:\n1. Call this tool with the file_path the user provided\n2. Execute the returned curl command in your code execution sandbox (or tell the user to run it)\n3. The command returns a JSON with a \"code\" (e.g. \"file-a1b2c3d4\")\n4. Call webdiet_upload_anexo with upload_code=that_code to attach it to the patient\nThis avoids loading large file contents into the conversation context.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "file_path"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "file_name": {
                "type": "string",
                "default": ""
              },
              "file_path": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_get_upload_command",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_upload_anexo",
          "description": "Upload a file (PDF, image, etc.) to a patient's attachments in WebDiet.\nThree ways to provide the file (use ONE):\n  1. upload_code — from webdiet_get_upload_command curl (RECOMMENDED for large files)\n  2. file_url — direct URL to download the file (e.g. https://example.com/report.pdf)\n  3. file_base64 — base64-encoded file content (small files only)\nSupported tipos: anexo (patient attachment — default), cloud (WebDiet Cloud storage), prontuario (clinical record), antropometria (body measurement report), exame (lab exam), perfil (patient photo), evolucao (photo evolution).\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id"
            ],
            "properties": {
              "tipo": {
                "enum": [
                  "anexo",
                  "cloud",
                  "prontuario",
                  "antropometria",
                  "exame",
                  "perfil",
                  "evolucao"
                ],
                "type": "string",
                "default": "anexo"
              },
              "account": {
                "type": "string"
              },
              "file_url": {
                "type": "string",
                "default": ""
              },
              "file_name": {
                "type": "string",
                "default": ""
              },
              "nome_anexo": {
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "file_base64": {
                "type": "string",
                "default": ""
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "upload_code": {
                "type": "string",
                "default": ""
              },
              "salvar_cloud": {
                "type": "boolean",
                "default": false
              }
            }
          },
          "annotations": {
            "title": "webdiet_upload_anexo",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_list_message_templates",
          "description": "Load patient welcome message templates. Returns the active layout and all available template layouts.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "tipo": {
                "type": "string",
                "default": "adicionar"
              },
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_list_message_templates",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_financeiro_list",
          "description": "Read financial records (payments, receipts) in WebDiet.\nActions: list (all records in date range — defaults to last 30 days), categories (get available categories for income/expense).\nEach record includes: id, nome, tipo (entrada=income, saida=expense), categoria, valor, data, observacao, recibo status, and recibo_url when receipt was generated.\nUse inicio/fim in YYYYMMDDHHmm format to filter by date range (e.g. \"202604010000\" to \"202604302359\" for April 2026).\n\n[Flattened action: list]",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "fim": {
                "type": "string",
                "default": ""
              },
              "tipo": {
                "enum": [
                  "entrada",
                  "saida"
                ],
                "type": "string",
                "default": "entrada"
              },
              "inicio": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_financeiro_list",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_financeiro_categories",
          "description": "Read financial records (payments, receipts) in WebDiet.\nActions: list (all records in date range — defaults to last 30 days), categories (get available categories for income/expense).\nEach record includes: id, nome, tipo (entrada=income, saida=expense), categoria, valor, data, observacao, recibo status, and recibo_url when receipt was generated.\nUse inicio/fim in YYYYMMDDHHmm format to filter by date range (e.g. \"202604010000\" to \"202604302359\" for April 2026).\n\n[Flattened action: categories]",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "fim": {
                "type": "string",
                "default": ""
              },
              "tipo": {
                "enum": [
                  "entrada",
                  "saida"
                ],
                "type": "string",
                "default": "entrada"
              },
              "inicio": {
                "type": "string",
                "default": ""
              },
              "account": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "webdiet_financeiro_categories",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_financeiro_write",
          "description": "Create financial records in WebDiet.\ntipo: \"entrada\" for income (e.g. consultation payment received), \"saida\" for expense.\nDefault income categories: Consulta, Retorno. Default expense categories: Internet, Aluguel. Use nova_cat to create a custom category.\nvalor format: use comma for decimals (e.g. \"300,00\" or \"150,50\"). forma: payment method (e.g. Pix, Dinheiro, Cartão de crédito, Transferência).\nparcelas: number of installments (default 1). For installments, dataCobranca is the first billing date.\nFor destructive delete use webdiet_financeiro_delete.\n\nBulk support: accepts patient_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "patient_id",
              "valor"
            ],
            "properties": {
              "cpf": {
                "type": "string",
                "default": ""
              },
              "data": {
                "type": "string",
                "default": ""
              },
              "nome": {
                "type": "string"
              },
              "tipo": {
                "enum": [
                  "entrada",
                  "saida"
                ],
                "type": "string",
                "default": "entrada"
              },
              "forma": {
                "type": "string",
                "default": ""
              },
              "valor": {
                "type": "string"
              },
              "account": {
                "type": "string"
              },
              "horario": {
                "type": "string",
                "default": ""
              },
              "nova_cat": {
                "type": "string",
                "default": ""
              },
              "parcelas": {
                "type": "string",
                "default": "1"
              },
              "categoria": {
                "type": "string",
                "default": "Consulta"
              },
              "observacao": {
                "type": "string",
                "default": ""
              },
              "patient_id": {
                "type": "string"
              },
              "patient_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "dataCobranca": {
                "type": "string",
                "default": ""
              }
            }
          },
          "annotations": {
            "title": "webdiet_financeiro_write",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "webdiet_financeiro_delete",
          "description": "Permanently delete a financial record. Irreversible.\n\nBulk support: accepts financeiro_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "financeiro_id"
            ],
            "properties": {
              "account": {
                "type": "string"
              },
              "financeiro_id": {
                "type": "string"
              },
              "financeiro_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_financeiro_delete",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "webdiet_recibo",
          "description": "Generate or update a receipt (recibo) for a financial record in WebDiet.\nPass the financeiro_id from webdiet_financeiro list. dados_recibo is a JSON array with 6 fields: [patient_name, cpf, address, city, nutritionist_name, crn_number].\nAfter generating, the recibo_url in the financial record will point to the PDF receipt.\nReturns the receipt PDF URL that can be shared with the patient.\n\nBulk support: accepts financeiro_ids for batched execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "financeiro_id",
              "nome"
            ],
            "properties": {
              "nome": {
                "type": "string"
              },
              "account": {
                "type": "string"
              },
              "dados_recibo": {
                "type": "string",
                "default": "[]"
              },
              "financeiro_id": {
                "type": "string"
              },
              "financeiro_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "annotations": {
            "title": "webdiet_recibo",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "show_version",
          "description": "Show the current MCP platform and adapter versions.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Show Version",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "report_bug",
          "description": "Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "message"
            ],
            "properties": {
              "context": {
                "type": "string",
                "default": ""
              },
              "message": {
                "type": "string"
              },
              "conversation": {
                "type": "string",
                "default": "[]"
              }
            }
          },
          "annotations": {
            "title": "Report Bug",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "connect",
          "description": "Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Connection Status",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "toolkit_info",
          "description": "Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Toolkit Info",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "marketplace",
          "description": "The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like \"find an MCP that does X\", \"consulta um CPF\", \"is there a tool for Y\". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "number",
                "default": 10
              },
              "query": {
                "type": "string",
                "default": ""
              },
              "action": {
                "enum": [
                  "search",
                  "describe",
                  "install",
                  "uninstall",
                  "subscribe",
                  "cancel",
                  "resume",
                  "report_bug",
                  "request_mcp",
                  "list_tools",
                  "invoke",
                  "search_prompts",
                  "get_prompt",
                  "publish_prompt"
                ],
                "type": "string",
                "default": "search"
              },
              "mcp_id": {
                "type": "string",
                "default": ""
              },
              "message": {
                "type": "string",
                "default": ""
              },
              "tool_id": {
                "type": "string",
                "default": ""
              },
              "arguments": {
                "type": "string",
                "default": "{}"
              },
              "immediate": {
                "type": "boolean",
                "default": false
              },
              "tier_slug": {
                "type": "string",
                "default": ""
              },
              "prompt_body": {
                "type": "string",
                "default": ""
              },
              "prompt_slug": {
                "type": "string",
                "default": ""
              },
              "prompt_tool": {
                "type": "string",
                "default": ""
              },
              "prompt_vars": {
                "type": "string",
                "default": "{}"
              },
              "conversation": {
                "type": "string",
                "default": "[]"
              },
              "prompt_title": {
                "type": "string",
                "default": ""
              },
              "request_name": {
                "type": "string",
                "default": ""
              },
              "cancel_reason": {
                "enum": [
                  "too_expensive",
                  "missing_features",
                  "switched_service",
                  "unused",
                  "customer_service",
                  "too_complex",
                  "low_quality",
                  "other"
                ],
                "type": "string"
              },
              "cancel_comment": {
                "type": "string",
                "default": ""
              },
              "prompt_targets": {
                "type": "array",
                "items": {
                  "enum": [
                    "claude",
                    "chatgpt",
                    "cursor",
                    "lovable"
                  ],
                  "type": "string"
                },
                "default": []
              },
              "report_context": {
                "type": "string",
                "default": ""
              },
              "prompt_category": {
                "type": "string",
                "default": ""
              },
              "request_details": {
                "type": "string",
                "default": ""
              },
              "prompt_description": {
                "type": "string",
                "default": ""
              }
            }
          },
          "annotations": {
            "title": "Marketplace",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "authenticate",
          "description": "MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: \"<jwt>\" } after the user pastes, or with no args to get the link.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "token": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "Authenticate",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "MCP.AI platform v0.9.485 | Adapters: webdiet v1.6.4. When the user asks about the version (e.g. \"qual a versão\", \"which version\"), call the show_version tool. NEW MCPs/tools/integrations (capabilities not already in this toolkit) come from the official mcp.ai catalog: the `marketplace` tool (action=search) finds and runs them. You are not authenticated yet. Call the authenticate tool first — it will give the user a browser link to log in and copy a token. No other tools will work until authenticated."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}