---
title: "Run an LLM diagnosis over a meal photo queue's pipeline trace"
method: POST
path: "/support/meal_trace/{meal_photo_queue_id}/diagnose"
tags: ["support meal trace"]
---

# Run an LLM diagnosis over a meal photo queue's pipeline trace

`POST /support/meal_trace/{meal_photo_queue_id}/diagnose`

## Request

- Base URL: `https://api.rxfoodapp.com/api`
- URL: `https://api.rxfoodapp.com/api/support/meal_trace/{meal_photo_queue_id}/diagnose`
- Auth: HTTP bearer

## Path parameters

- `meal_photo_queue_id` integer, required

## Response `200`

successful operation

- SupportMealTraceDiagnosis
  - `auditor_url` string, required: Deep-link into the existing Food Auditor queue-item view
  - `confidence` number, float, required: Model confidence in the verdict, 0.0 to 1.0
  - `explanation` string, required: Short walkthrough of the signals that led to the verdict
  - `langfuse_session_url` string, required: Deep-link to the Langfuse session for this MPQ
  - `probable_failure_reason` string, required: One-sentence description of the likely failure (empty when verdict=ok)
  - `probable_failure_stage` string, nullable: Pipeline stage most likely responsible when verdict=failed
  - `suggested_next_steps` string[], required: Actionable follow-up steps for the support engineer
  - `verdict` 'ok' | 'failed' | 'ambiguous', required: Top-level LLM verdict on the pipeline run

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) - [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) - [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/c3d8e22b22e8?raw)
