# WebDiet (remote · api.mcp.ai)

Patient, meal plan, prescription, chart and anthropometry management for dietitians.

- Trust score: 51/100 (low)
- Change this week: +7
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- remote · `api.mcp.ai`: 51/100 (this document), [markdown](https://verifymcp.io/servers/mcp-dir-webdiet-mcp/p-webdiet.md), [page](https://verifymcp.io/servers/mcp-dir-webdiet-mcp/p-webdiet)

## Channel facts

- Endpoint: `https://api.mcp.ai/p_webdiet`
- Transports: `streamable-http`
- Auth: `none`
- Version: `0.1.0`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Endpoint Security**: 46/100
  - The endpoint's TLS certificate is valid, in date, and uses a strong key.
  - Authorisation check failed: no authorisation is required to call this server, and it exposes a tool marked destructive (webdiet_patient_delete).
  - HTTPS not yet verified: we couldn't determine whether a plaintext access path exists.
  - HSTS check failed: the Strict-Transport-Security header is absent.
  - DNSSEC check failed: this domain isn't protected by DNSSEC.
- **Transport & Reachability**: 100/100
  - Verified streamable-http transport via a live MCP handshake.
- **Schema Quality & AI Usability**: 33/100
  - AI-judged instruction clarity (fair).
  - Context-footprint check failed: tool/resource definitions use about 13929 tokens (~224/item across 62 items; 62 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 67/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 0% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add --transport http mcp-dir-webdiet-mcp https://api.mcp.ai/p_webdiet
```

### Codex

```toml
[mcp_servers.mcp-dir-webdiet-mcp]
url = "https://api.mcp.ai/p_webdiet"
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mcp-dir-webdiet-mcp": {
      "type": "remote",
      "url": "https://api.mcp.ai/p_webdiet",
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add mcp-dir-webdiet-mcp --url https://api.mcp.ai/p_webdiet --transport streamable-http
```

### Hermes

```yaml
mcp_servers:
  mcp-dir-webdiet-mcp:
    url: "https://api.mcp.ai/p_webdiet"
```

### Other

```json
{
  "mcpServers": {
    "mcp-dir-webdiet-mcp": {
      "type": "http",
      "url": "https://api.mcp.ai/p_webdiet"
    }
  }
}
```

The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 51, +1)

- [security] The server rewrote its instructions, which are the text every model session reads
- [functional] Server version: 0.9.200 → 0.9.201

### 2026-08-02 (score 50, 0)

- [security] The server rewrote its instructions, which are the text every model session reads
- [functional] Server version: 0.9.197 → 0.9.200

### 2026-08-01 (score 50, +1)

No change was recorded against any check on this day. Stability & Change Management went from 17 to 20. That category is still filling its 30-day observation window: 5 days of observed history at the previous scan, 6 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-07-31 (score 49, +3)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 46, +1)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-29 (score 45, 0)

- [security] The server rewrote its instructions, which are the text every model session reads
- [functional] Server version: 0.9.184 → 0.9.194

### 2026-07-28 (score 45, +1)

- [security] The server rewrote its instructions, which are the text every model session reads
- [functional] Server version: 0.9.182 → 0.9.184

### 2026-07-27 (score 44, +1)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

## MCP tools (62)

### `webdiet_list_accounts` (~97 tokens)

List all WebDiet accounts linked to this install.
Returns 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.

Input parameters:

- `account` (string)

### `webdiet_patient_list` (~192 tokens)

Read patients in WebDiet.
Actions: list (search by keyword — returns id, nome, link, with pagination), get (full profile with address, phone, links to panel sections).
Both actions return a permanent "link" identifier and direct URLs when available (antropometria, prescriptions, etc.).
IMPORTANT: Patient list search may be paginated — for writes, pass the numeric id from webdiet_patient get/list, the portal "link" number, or a unique phone/name keyword; the adapter falls back to dadosPaciente.php when the id is not on the first list page.

[Flattened action: list]

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `keyword` (string)
- `page` (number)
- `page_size` (number)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_patient_get` (~192 tokens)

Read patients in WebDiet.
Actions: list (search by keyword — returns id, nome, link, with pagination), get (full profile with address, phone, links to panel sections).
Both actions return a permanent "link" identifier and direct URLs when available (antropometria, prescriptions, etc.).
IMPORTANT: Patient list search may be paginated — for writes, pass the numeric id from webdiet_patient get/list, the portal "link" number, or a unique phone/name keyword; the adapter falls back to dadosPaciente.php when the id is not on the first list page.

[Flattened action: get]

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `keyword` (string)
- `page` (number)
- `page_size` (number)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_patient_write_create` (~239 tokens)

Create or update patients in WebDiet.
Actions: create (nome + nascimento required — returns patient_id), update (partial fields).
IMPORTANT: 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.
For destructive removal use webdiet_patient_delete.

[Flattened action: create]

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `apelido` (string)
- `bairro` (string)
- `boasvindas` (boolean)
- `cep` (string)
- `cidade` (string)
- `complemento` (string)
- `cpf` (string)
- `email` (string)
- `endereco` (string)
- `estado` (string)
- `genero` (string)
- `instagram` (string)
- `nascimento` (string)
- `nome` (string)
- `numero` (string)
- `patient_id` (string)
- `patient_ids` (array)
- `telefone` (string)

### `webdiet_patient_write_update` (~239 tokens)

Create or update patients in WebDiet.
Actions: create (nome + nascimento required — returns patient_id), update (partial fields).
IMPORTANT: 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.
For destructive removal use webdiet_patient_delete.

[Flattened action: update]

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `apelido` (string)
- `bairro` (string)
- `boasvindas` (boolean)
- `cep` (string)
- `cidade` (string)
- `complemento` (string)
- `cpf` (string)
- `email` (string)
- `endereco` (string)
- `estado` (string)
- `genero` (string)
- `instagram` (string)
- `nascimento` (string)
- `nome` (string)
- `numero` (string)
- `patient_id` (string)
- `patient_ids` (array)
- `telefone` (string)

### `webdiet_patient_delete` (~69 tokens)

Permanently delete a WebDiet patient (uses removerPaciente — resolves id/link from a fresh list first). Irreversible.

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `patient_id` (string, required)
- `patient_ids` (array)

### `webdiet_get_consultations` (~109 tokens)

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).

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `limite` (number)
- `patient_id` (string, required)
- `patient_ids` (array)
- `tipo` (string)

### `webdiet_prontuario` (~79 tokens)

Get the clinical record (prontuario) for a WebDiet patient. Returns decoded text with sections: Identificacao, Triagem, Anamnese alimentar, etc.

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `patient_id` (string, required)
- `patient_ids` (array)

### `webdiet_prontuario_write` (~82 tokens)

Save the clinical record (prontuario) for a WebDiet patient. Pass texto as a JSON array of HTML strings, one per section.

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string, required)

### `webdiet_anamnese` (~213 tokens)

List all anamnesis records for a WebDiet patient WITH the full Q/A content.
Each item carries:
  \- id, titulo, data
  \- texto       → plain-text Q/A (readable, line-broken — best for AI consumption / RAG)
  \- texto_html  → original HTML (<b>...</b><br>...) preserved for rich rendering
  \- interpretacao / interpretacao_html → nutritionist's notes when present
WebDiet 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.
For pre-consultation questionnaire responses NOT yet linked to a patient, use webdiet_preconsulta action=list_responses.

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `patient_id` (string, required)
- `patient_ids` (array)

### `webdiet_anamnese_write_save` (~158 tokens)

Create / update anamnesis records in WebDiet.
Actions: save (create or update — anamnese_id empty = new), save_interpretation (save AI/nutritionist interpretation), duplicate (copy existing record).
For destructive removal use webdiet_anamnese_delete.

[Flattened action: save]

Bulk support: accepts patient_ids, anamnese_ids for batched execution.

Input parameters:

- `account` (string)
- `anamnese_id` (string)
- `anamnese_ids` (array)
- `interpretacao` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)
- `titulo` (string)

### `webdiet_anamnese_write_save_interpretation` (~164 tokens)

Create / update anamnesis records in WebDiet.
Actions: save (create or update — anamnese_id empty = new), save_interpretation (save AI/nutritionist interpretation), duplicate (copy existing record).
For destructive removal use webdiet_anamnese_delete.

[Flattened action: save_interpretation]

Bulk support: accepts patient_ids, anamnese_ids for batched execution.

Input parameters:

- `account` (string)
- `anamnese_id` (string)
- `anamnese_ids` (array)
- `interpretacao` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)
- `titulo` (string)

### `webdiet_anamnese_write_duplicate` (~158 tokens)

Create / update anamnesis records in WebDiet.
Actions: save (create or update — anamnese_id empty = new), save_interpretation (save AI/nutritionist interpretation), duplicate (copy existing record).
For destructive removal use webdiet_anamnese_delete.

[Flattened action: duplicate]

Bulk support: accepts patient_ids, anamnese_ids for batched execution.

Input parameters:

- `account` (string)
- `anamnese_id` (string)
- `anamnese_ids` (array)
- `interpretacao` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)
- `titulo` (string)

### `webdiet_anamnese_delete` (~87 tokens)

Permanently delete an anamnesis record in WebDiet. Irreversible.

Bulk support: accepts patient_ids, anamnese_ids for batched execution.

Input parameters:

- `account` (string)
- `anamnese_id` (string, required)
- `anamnese_ids` (array)
- `patient_id` (string, required)
- `patient_ids` (array)

### `webdiet_preconsulta_list_templates` (~303 tokens)

Read pre-consultation questionnaires (Pré-consulta) in WebDiet.
Actions:
\- 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".
\- 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.
\- get_response    → fetch one response by id (or id_code/codigo).
For LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.

[Flattened action: list_templates]

Bulk support: accepts response_ids for batched execution.

Input parameters:

- `account` (string)
- `limit` (number)
- `nome` (string)
- `offset` (number)
- `response_id` (string)
- `response_ids` (array)
- `tipo` (string)

### `webdiet_preconsulta_list_responses` (~305 tokens)

Read pre-consultation questionnaires (Pré-consulta) in WebDiet.
Actions:
\- 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".
\- 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.
\- get_response    → fetch one response by id (or id_code/codigo).
For LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.

[Flattened action: list_responses]

Bulk support: accepts response_ids for batched execution.

Input parameters:

- `account` (string)
- `limit` (number)
- `nome` (string)
- `offset` (number)
- `response_id` (string)
- `response_ids` (array)
- `tipo` (string)

### `webdiet_preconsulta_get_response` (~303 tokens)

Read pre-consultation questionnaires (Pré-consulta) in WebDiet.
Actions:
\- 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".
\- 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.
\- get_response    → fetch one response by id (or id_code/codigo).
For LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.

[Flattened action: get_response]

Bulk support: accepts response_ids for batched execution.

Input parameters:

- `account` (string)
- `limit` (number)
- `nome` (string)
- `offset` (number)
- `response_id` (string)
- `response_ids` (array)
- `tipo` (string)

### `webdiet_preconsulta_write_link_to_patient` (~267 tokens)

Vincular (link) a pre-consultation response to an existing patient in WebDiet.
Action: link_to_patient — imports the response content into the patient's chart. WebDiet routes automatically based on the response's "origem":
  • origem=anamnese      → response becomes a new anamnese (importarPreanamnese.php)
  • origem=questionario  → response becomes a new diagnostico (criarDiagnosticoPre.php)
This 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.
Tip: 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.

[Flattened action: link_to_patient]

Bulk support: accepts patient_ids, response_ids for batched execution.

Input parameters:

- `account` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `response_id` (string, required)
- `response_ids` (array)

### `webdiet_preconsulta_delete` (~67 tokens)

Permanently delete a pre-consultation response in WebDiet. Templates are NOT affected. Irreversible.

Bulk support: accepts response_ids for batched execution.

Input parameters:

- `account` (string)
- `response_id` (string, required)
- `response_ids` (array)

### `webdiet_antropometria_list` (~221 tokens)

Read anthropometry (body measurement) records for a WebDiet patient.
Actions: 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).
Each 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=...).
Use this to analyze patient body composition evolution over time. For creating/saving records, use webdiet_create_antropometria + webdiet_save_antropometria.

[Flattened action: list]

Bulk support: accepts patient_ids, antropometria_ids for batched execution.

Input parameters:

- `account` (string)
- `antropometria_id` (string)
- `antropometria_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_antropometria_get` (~221 tokens)

Read anthropometry (body measurement) records for a WebDiet patient.
Actions: 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).
Each 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=...).
Use this to analyze patient body composition evolution over time. For creating/saving records, use webdiet_create_antropometria + webdiet_save_antropometria.

[Flattened action: get]

Bulk support: accepts patient_ids, antropometria_ids for batched execution.

Input parameters:

- `account` (string)
- `antropometria_id` (string)
- `antropometria_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_create_antropometria` (~101 tokens)

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).

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `data` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `tipo` (string)

### `webdiet_save_antropometria` (~794 tokens)

Save body measurements (anthropometry) for a patient. Call webdiet_create_antropometria first to get the antropometria_id.
All 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.
Sections: 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).
Formulas for body fat %: pollock3 (default), pollock7, guedes, petroski, durnin, faulkner, nenhuma.
Density conversion: brozek (default) or siri. Side for CMB: esquerdo (default) or direito.

Bulk support: accepts patient_ids, antropometria_ids for batched execution.

Input parameters:

- `account` (string)
- `altura_joelho` (string)
- `antropometria_id` (string, required)
- `antropometria_ids` (array)
- `bioimpedancia_agua` (string)
- `bioimpedancia_gordura` (string)
- `bioimpedancia_idade` (string)
- `bioimpedancia_massa` (string)
- `bioimpedancia_massaGordura` (string)
- `bioimpedancia_massalivre` (string)
- `bioimpedancia_osseo` (string)
- `bioimpedancia_percentualMagra` (string)
- `bioimpedancia_visceral` (string)
- `c_abdomen` (string)
- `c_antebraco` (string)
- `c_antebraco_dir` (string)
- `c_bracocontraido` (string)
- `c_bracocontraido_dir` (string)
- `c_bracorelaxado` (string)
- `c_bracorelaxado_dir` (string)
- `c_cintura` (string)
- `c_coxadistal` (string)
- `c_coxadistal_dir` (string)
- `c_coxamedial` (string)
- `c_coxamedial_dir` (string)
- `c_coxaproximal` (string)
- `c_coxaproximal_dir` (string)
- `c_ombro` (string)
- `c_panturrilha` (string)
- `c_panturrilha_dir` (string)
- `c_pescoco` (string)
- `c_quadril` (string)
- `c_torax` (string)
- `diametro_femur` (string)
- `diametro_punho` (string)
- `diametro_umero` (string)
- `dobra_abdominal` (string)
- `dobra_axilar` (string)
- `dobra_biciptal` (string)
- `dobra_coxa` (string)
- `dobra_panturrilha` (string)
- `dobra_subescapular` (string)
- `dobra_supraespinhal` (string)
- `dobra_suprailiaca` (string)
- `dobra_toraxica` (string)
- `dobra_triceptal` (string)
- `estatura` (string)
- `estatura_sentado` (string)
- `formula_escolhida` (string)
- `lado` (string)
- `massa` (string)
- `origem` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `refAntropometria` (string)

### `webdiet_get_planner` (~50 tokens)

Load the nutritionist's calendar/agenda for a date: appointments, overdue tasks, birthdays, events. Defaults to today.

Input parameters:

- `account` (string)
- `date` (string)

### `webdiet_prescription_list` (~89 tokens)

Read meal plan prescriptions in WebDiet.
Actions: list (all recent prescriptions — each includes "url" with the full direct link), get_detail (full meals/foods from a prescription URL).
Always show the "url" field to the user when they ask for a prescription link.

[Flattened action: list]

Input parameters:

- `account` (string)
- `link` (string)

### `webdiet_prescription_get_detail` (~91 tokens)

Read meal plan prescriptions in WebDiet.
Actions: list (all recent prescriptions — each includes "url" with the full direct link), get_detail (full meals/foods from a prescription URL).
Always show the "url" field to the user when they ask for a prescription link.

[Flattened action: get_detail]

Input parameters:

- `account` (string)
- `link` (string)

### `webdiet_prescription_write_create` (~933 tokens)

Create, save or publish meal plan prescriptions in WebDiet.
Actions: 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).
IMPORTANT: After creating and saving foods, you MUST call publish to make the prescription visible to the patient.

═══ MÉTODO DE PRESCRIÇÃO — escolha no create ═══
WebDiet tem 3 métodos:

• "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.

• "Equivalentes"  (UI: "Por equivalentes", URL: metodoWebdiet.php) — avançado. Prescrição por grupos de equivalentes. Requer IDs do banco.

• "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).

═══ prescricao_json (para o save) ═══
JSON array de refeições. Cada refeição: {nome, horario, alimentos:[...]}.
Cada alimento: {nome, quantidade, medida_caseira, peso_gramas, id?}.

AUTO-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…

Input parameters:

- `account` (string)
- `metodo` (string)
- `nome` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `prescricao_json` (string)
- `prescription_id` (string)
- `prescription_ids` (array)

### `webdiet_prescription_write_save` (~933 tokens)

Create, save or publish meal plan prescriptions in WebDiet.
Actions: 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).
IMPORTANT: After creating and saving foods, you MUST call publish to make the prescription visible to the patient.

═══ MÉTODO DE PRESCRIÇÃO — escolha no create ═══
WebDiet tem 3 métodos:

• "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.

• "Equivalentes"  (UI: "Por equivalentes", URL: metodoWebdiet.php) — avançado. Prescrição por grupos de equivalentes. Requer IDs do banco.

• "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).

═══ prescricao_json (para o save) ═══
JSON array de refeições. Cada refeição: {nome, horario, alimentos:[...]}.
Cada alimento: {nome, quantidade, medida_caseira, peso_gramas, id?}.

AUTO-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…

Input parameters:

- `account` (string)
- `metodo` (string)
- `nome` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `prescricao_json` (string)
- `prescription_id` (string)
- `prescription_ids` (array)

### `webdiet_prescription_write_publish` (~933 tokens)

Create, save or publish meal plan prescriptions in WebDiet.
Actions: 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).
IMPORTANT: After creating and saving foods, you MUST call publish to make the prescription visible to the patient.

═══ MÉTODO DE PRESCRIÇÃO — escolha no create ═══
WebDiet tem 3 métodos:

• "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.

• "Equivalentes"  (UI: "Por equivalentes", URL: metodoWebdiet.php) — avançado. Prescrição por grupos de equivalentes. Requer IDs do banco.

• "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).

═══ prescricao_json (para o save) ═══
JSON array de refeições. Cada refeição: {nome, horario, alimentos:[...]}.
Cada alimento: {nome, quantidade, medida_caseira, peso_gramas, id?}.

AUTO-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…

Input parameters:

- `account` (string)
- `metodo` (string)
- `nome` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `prescricao_json` (string)
- `prescription_id` (string)
- `prescription_ids` (array)

### `webdiet_food_search` (~132 tokens)

Search WebDiet food database for numeric food ids (needed for full macros in Convencional / metodoPlanning prescriptions).
Uses 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).
Returns id, nome, grupo, origem, macros (kcal, proteinas, lipidios, carboidratos, fibras), and medidas_caseiras with gram weights.

Input parameters:

- `account` (string)
- `keyword` (string, required)
- `limite` (number)

### `webdiet_orientacoes_list` (~168 tokens)

Read "Listas e Orientações" (guidelines/orientation lists) in WebDiet.
Actions: list (orientation records for a patient), list_banco (orientation bank / favorites — saved templates available to send to any patient).
The 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.

[Flattened action: list]

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `limite` (number)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_orientacoes_list_banco` (~172 tokens)

Read "Listas e Orientações" (guidelines/orientation lists) in WebDiet.
Actions: list (orientation records for a patient), list_banco (orientation bank / favorites — saved templates available to send to any patient).
The 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.

[Flattened action: list_banco]

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `limite` (number)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_orientacoes_write_save` (~205 tokens)

Create / update / send "Listas e Orientações" in WebDiet.
Actions: save (create/update an orientation for a patient), send (send orientation(s) from the bank to a patient by exact name).
save: 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).

[Flattened action: save]

Bulk support: accepts patient_ids, orientacao_ids for batched execution.

Input parameters:

- `account` (string)
- `nomes` (string)
- `orientacao_id` (string)
- `orientacao_ids` (array)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)
- `titulo` (string)

### `webdiet_orientacoes_write_send` (~205 tokens)

Create / update / send "Listas e Orientações" in WebDiet.
Actions: save (create/update an orientation for a patient), send (send orientation(s) from the bank to a patient by exact name).
save: 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).

[Flattened action: send]

Bulk support: accepts patient_ids, orientacao_ids for batched execution.

Input parameters:

- `account` (string)
- `nomes` (string)
- `orientacao_id` (string)
- `orientacao_ids` (array)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)
- `titulo` (string)

### `webdiet_manipulados_list` (~335 tokens)

Read "Prescrição de manipulados" (compounded/magistral pharmacy formulas) in WebDiet.
Actions:
\- 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.
\- list         → list manipulados already prescribed to a patient (id, nome, data, liberado, pdf_url + pdf_global_url).
\- get          → fetch full HTML content (componentes + doses) of a specific manipulado already prescribed to a patient.

For write operations (save / send / publish / duplicate) use webdiet_manipulados_write.
For destructive delete use webdiet_manipulados_delete.

[Flattened action: list]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `categoria` (string)
- `incluir_bloqueados` (boolean)
- `keyword` (string)
- `limite` (number)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_manipulados_list_banco` (~339 tokens)

Read "Prescrição de manipulados" (compounded/magistral pharmacy formulas) in WebDiet.
Actions:
\- 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.
\- list         → list manipulados already prescribed to a patient (id, nome, data, liberado, pdf_url + pdf_global_url).
\- get          → fetch full HTML content (componentes + doses) of a specific manipulado already prescribed to a patient.

For write operations (save / send / publish / duplicate) use webdiet_manipulados_write.
For destructive delete use webdiet_manipulados_delete.

[Flattened action: list_banco]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `categoria` (string)
- `incluir_bloqueados` (boolean)
- `keyword` (string)
- `limite` (number)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_manipulados_get` (~335 tokens)

Read "Prescrição de manipulados" (compounded/magistral pharmacy formulas) in WebDiet.
Actions:
\- 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.
\- list         → list manipulados already prescribed to a patient (id, nome, data, liberado, pdf_url + pdf_global_url).
\- get          → fetch full HTML content (componentes + doses) of a specific manipulado already prescribed to a patient.

For write operations (save / send / publish / duplicate) use webdiet_manipulados_write.
For destructive delete use webdiet_manipulados_delete.

[Flattened action: get]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `categoria` (string)
- `incluir_bloqueados` (boolean)
- `keyword` (string)
- `limite` (number)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_manipulados_write_save` (~299 tokens)

Create / send / publish / duplicate manipulados in WebDiet.
Actions:
\- 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.
\- 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.
\- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.
\- duplicate  → duplicate an existing manipulado (creates a copy "(cópia)").

For destructive delete use webdiet_manipulados_delete.

[Flattened action: save]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `nome` (string)
- `nomes` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)

### `webdiet_manipulados_write_send` (~299 tokens)

Create / send / publish / duplicate manipulados in WebDiet.
Actions:
\- 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.
\- 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.
\- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.
\- duplicate  → duplicate an existing manipulado (creates a copy "(cópia)").

For destructive delete use webdiet_manipulados_delete.

[Flattened action: send]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `nome` (string)
- `nomes` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)

### `webdiet_manipulados_write_publish` (~299 tokens)

Create / send / publish / duplicate manipulados in WebDiet.
Actions:
\- 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.
\- 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.
\- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.
\- duplicate  → duplicate an existing manipulado (creates a copy "(cópia)").

For destructive delete use webdiet_manipulados_delete.

[Flattened action: publish]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `nome` (string)
- `nomes` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)

### `webdiet_manipulados_write_duplicate` (~299 tokens)

Create / send / publish / duplicate manipulados in WebDiet.
Actions:
\- 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.
\- 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.
\- publish    → toggle liberar/disponibilizar status (makes the formula visible/invisible on the patient portal/app). Server toggles and returns the NEW state.
\- duplicate  → duplicate an existing manipulado (creates a copy "(cópia)").

For destructive delete use webdiet_manipulados_delete.

[Flattened action: duplicate]

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `manipulado_id` (string)
- `manipulado_ids` (array)
- `nome` (string)
- `nomes` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `texto` (string)

### `webdiet_manipulados_delete` (~82 tokens)

Permanently delete a manipulado for a patient. Irreversible.

Bulk support: accepts patient_ids, manipulado_ids for batched execution.

Input parameters:

- `account` (string)
- `manipulado_id` (string, required)
- `manipulado_ids` (array)
- `patient_id` (string, required)
- `patient_ids` (array)

### `webdiet_calculo_energetico_list` (~135 tokens)

Read energy expenditure calculations (Cálculo Energético) in WebDiet.
Actions: list (all calculations for a patient), get (load saved data).
Results: TMB (basal metabolic rate), GET (total energy expenditure) in Kcal/dia and Kcal/kg.

[Flattened action: list]

Bulk support: accepts patient_ids, calculo_ids for batched execution.

Input parameters:

- `account` (string)
- `calculo_id` (string)
- `calculo_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_calculo_energetico_get` (~135 tokens)

Read energy expenditure calculations (Cálculo Energético) in WebDiet.
Actions: list (all calculations for a patient), get (load saved data).
Results: TMB (basal metabolic rate), GET (total energy expenditure) in Kcal/dia and Kcal/kg.

[Flattened action: get]

Bulk support: accepts patient_ids, calculo_ids for batched execution.

Input parameters:

- `account` (string)
- `calculo_id` (string)
- `calculo_ids` (array)
- `patient_id` (string)
- `patient_ids` (array)

### `webdiet_calculo_energetico_write_create` (~301 tokens)

Create / update energy expenditure calculations in WebDiet.
Actions: create (new calculation), save (update existing calculation).
Supports 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.
Activity factors: 1.0 (none), 1.2 (sedentary), 1.375 (light), 1.55 (moderate), 1.725 (intense), 1.9 (very intense).
Injury factors: 1.0 (none) up to 2.0 (burns 70-90%).

[Flattened action: create]

Bulk support: accepts patient_ids, calculo_ids for batched execution.

Input parameters:

- `account` (string)
- `altura` (string)
- `calculo_id` (string)
- `calculo_ids` (array)
- `fator_atividade` (string)
- `fator_injuria` (string)
- `formula` (string)
- `mlg` (string)
- `nome` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `peso` (string)

### `webdiet_calculo_energetico_write_save` (~301 tokens)

Create / update energy expenditure calculations in WebDiet.
Actions: create (new calculation), save (update existing calculation).
Supports 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.
Activity factors: 1.0 (none), 1.2 (sedentary), 1.375 (light), 1.55 (moderate), 1.725 (intense), 1.9 (very intense).
Injury factors: 1.0 (none) up to 2.0 (burns 70-90%).

[Flattened action: save]

Bulk support: accepts patient_ids, calculo_ids for batched execution.

Input parameters:

- `account` (string)
- `altura` (string)
- `calculo_id` (string)
- `calculo_ids` (array)
- `fator_atividade` (string)
- `fator_injuria` (string)
- `formula` (string)
- `mlg` (string)
- `nome` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `peso` (string)

### `webdiet_calculo_energetico_delete` (~64 tokens)

Permanently delete an energy expenditure calculation. Irreversible.

Bulk support: accepts calculo_ids for batched execution.

Input parameters:

- `account` (string)
- `calculo_id` (string, required)
- `calculo_ids` (array)

### `webdiet_list_anexos` (~109 tokens)

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.

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `patient_id` (string)
- `patient_ids` (array)
- `tipo` (string)

### `webdiet_get_upload_command` (~165 tokens)

Returns a ready-to-run curl command that uploads a file directly to the server without reading it into context.
RECOMMENDED for large files (images, PDFs, lab results). The flow:
1\. Call this tool with the file_path the user provided
2\. Execute the returned curl command in your code execution sandbox (or tell the user to run it)
3\. The command returns a JSON with a "code" (e.g. "file-a1b2c3d4")
4\. Call webdiet_upload_anexo with upload_code=that_code to attach it to the patient
This avoids loading large file contents into the conversation context.

Input parameters:

- `account` (string)
- `file_name` (string)
- `file_path` (string, required)

### `webdiet_upload_anexo` (~243 tokens)

Upload a file (PDF, image, etc.) to a patient's attachments in WebDiet.
Three ways to provide the file (use ONE):
  1\. upload_code — from webdiet_get_upload_command curl (RECOMMENDED for large files)
  2\. file_url — direct URL to download the file (e.g. https://example.com/report.pdf)
  3\. file_base64 — base64-encoded file content (small files only)
Supported 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).

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `file_base64` (string)
- `file_name` (string)
- `file_url` (string)
- `nome_anexo` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `salvar_cloud` (boolean)
- `tipo` (string)
- `upload_code` (string)

### `webdiet_list_message_templates` (~41 tokens)

Load patient welcome message templates. Returns the active layout and all available template layouts.

Input parameters:

- `account` (string)
- `tipo` (string)

### `webdiet_financeiro_list` (~166 tokens)

Read financial records (payments, receipts) in WebDiet.
Actions: list (all records in date range — defaults to last 30 days), categories (get available categories for income/expense).
Each record includes: id, nome, tipo (entrada=income, saida=expense), categoria, valor, data, observacao, recibo status, and recibo_url when receipt was generated.
Use inicio/fim in YYYYMMDDHHmm format to filter by date range (e.g. "202604010000" to "202604302359" for April 2026).

[Flattened action: list]

Input parameters:

- `account` (string)
- `fim` (string)
- `inicio` (string)
- `tipo` (string)

### `webdiet_financeiro_categories` (~166 tokens)

Read financial records (payments, receipts) in WebDiet.
Actions: list (all records in date range — defaults to last 30 days), categories (get available categories for income/expense).
Each record includes: id, nome, tipo (entrada=income, saida=expense), categoria, valor, data, observacao, recibo status, and recibo_url when receipt was generated.
Use inicio/fim in YYYYMMDDHHmm format to filter by date range (e.g. "202604010000" to "202604302359" for April 2026).

[Flattened action: categories]

Input parameters:

- `account` (string)
- `fim` (string)
- `inicio` (string)
- `tipo` (string)

### `webdiet_financeiro_write` (~269 tokens)

Create financial records in WebDiet.
tipo: "entrada" for income (e.g. consultation payment received), "saida" for expense.
Default income categories: Consulta, Retorno. Default expense categories: Internet, Aluguel. Use nova_cat to create a custom category.
valor 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).
parcelas: number of installments (default 1). For installments, dataCobranca is the first billing date.
For destructive delete use webdiet_financeiro_delete.

Bulk support: accepts patient_ids for batched execution.

Input parameters:

- `account` (string)
- `categoria` (string)
- `cpf` (string)
- `data` (string)
- `dataCobranca` (string)
- `forma` (string)
- `horario` (string)
- `nome` (string)
- `nova_cat` (string)
- `observacao` (string)
- `parcelas` (string)
- `patient_id` (string, required)
- `patient_ids` (array)
- `tipo` (string)
- `valor` (string, required)

### `webdiet_financeiro_delete` (~57 tokens)

Permanently delete a financial record. Irreversible.

Bulk support: accepts financeiro_ids for batched execution.

Input parameters:

- `account` (string)
- `financeiro_id` (string, required)
- `financeiro_ids` (array)

### `webdiet_recibo` (~150 tokens)

Generate or update a receipt (recibo) for a financial record in WebDiet.
Pass 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].
After generating, the recibo_url in the financial record will point to the PDF receipt.
Returns the receipt PDF URL that can be shared with the patient.

Bulk support: accepts financeiro_ids for batched execution.

Input parameters:

- `account` (string)
- `dados_recibo` (string)
- `financeiro_id` (string, required)
- `financeiro_ids` (array)
- `nome` (string, required)

### `show_version` (~17 tokens)

Show the current MCP platform and adapter versions.

### `report_bug` (~50 tokens)

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

Input parameters:

- `context` (string)
- `conversation` (string)
- `message` (string, required)

### `connect` (~42 tokens)

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.

### `toolkit_info` (~30 tokens)

Returns the current toolkit state: installed MCPs, their connection status, and how many catalog tools each exposes.

### `marketplace` (~402 tokens)

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.

Input parameters:

- `action` (string)
- `arguments` (string)
- `cancel_comment` (string)
- `cancel_reason` (string)
- `conversation` (string)
- `immediate` (boolean)
- `limit` (number)
- `mcp_id` (string)
- `message` (string)
- `query` (string)
- `report_context` (string)
- `request_details` (string)
- `request_name` (string)
- `tier_slug` (string)
- `tool_id` (string)

### `authenticate` (~99 tokens)

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.

Input parameters:

- `token` (string)

## Diagnostics

Captured diagnostic sections: TLS, DNSSEC, Authorisation, Transports. The full working is on the page: https://verifymcp.io/servers/mcp-dir-webdiet-mcp/p-webdiet#diagnostics

## Score history

- 2026-08-03: 51
- 2026-08-02: 50
- 2026-08-01: 50
- 2026-07-31: 49
- 2026-07-30: 46
- 2026-07-29: 45
- 2026-07-28: 45
- 2026-07-27: 44
- 2026-07-26: 43

## Links

- Remote endpoint: https://api.mcp.ai/p_webdiet
- Repository: https://github.com/mcp-dir/webdiet-mcp
- Changelog RSS feed: https://verifymcp.io/servers/mcp-dir-webdiet-mcp/p-webdiet/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/mcp-dir-webdiet-mcp/p-webdiet/changelog.json
- HTML version of this page: https://verifymcp.io/servers/mcp-dir-webdiet-mcp/p-webdiet
