{
  "name": "Tally MCP",
  "endpoint": "https://mcp.tallyday.dk/mcp",
  "transport": "Streamable HTTP",
  "tools": [
    {
      "name": "load_context",
      "inputSchema": {
        "properties": {},
        "title": "load_contextInput",
        "type": "object"
      },
      "outputSchema": {
        "$defs": {
          "TodayBlock": {
            "additionalProperties": false,
            "properties": {
              "date": {
                "title": "Date",
                "type": "string"
              },
              "summary": {
                "additionalProperties": true,
                "title": "Summary",
                "type": "object"
              },
              "table": {
                "title": "Table",
                "type": "string"
              },
              "render_instruction": {
                "default": "Render the markdown table in `table` exactly as-is, complete and unchanged, at the end of your response. Never rebuild, reorder or summarize it.",
                "title": "Render Instruction",
                "type": "string"
              },
              "meals_logged": {
                "title": "Meals Logged",
                "type": "integer"
              },
              "exercise_logged": {
                "title": "Exercise Logged",
                "type": "integer"
              },
              "metrics_logged": {
                "title": "Metrics Logged",
                "type": "integer"
              }
            },
            "required": [
              "date",
              "summary",
              "table",
              "meals_logged",
              "exercise_logged",
              "metrics_logged"
            ],
            "title": "TodayBlock",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "status": {
            "title": "Status",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Identity"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "signup_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Signup Url"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Profile"
          },
          "consent": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Consent"
          },
          "memory": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Memory"
          },
          "trackers": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Trackers"
          },
          "today": {
            "anyOf": [
              {
                "$ref": "#/$defs/TodayBlock"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "unfilled_days": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Unfilled Days"
          },
          "query_journal_fields": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Query Journal Fields"
          },
          "hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Hint"
          }
        },
        "required": [
          "status"
        ],
        "title": "LoadContextResponse",
        "type": "object"
      },
      "description": "Start every conversation with this read-only tool. Returns the authenticated user’s profile, saved preferences, configured trackers and today’s summary. A no_profile status directs new users to account setup in the app.",
      "annotations": {
        "title": "Load user context",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "save_profile",
      "inputSchema": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name"
          },
          "sex": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sex"
          },
          "age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Age"
          },
          "height_cm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Height Cm"
          },
          "weight_kg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Weight Kg"
          },
          "tdee_method": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tdee Method"
          },
          "tdee_given": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tdee Given"
          },
          "baseline_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Baseline Steps"
          },
          "bmr_override": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bmr Override"
          },
          "deficit": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 500,
            "title": "Deficit"
          },
          "target_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Target Kcal"
          },
          "protein_minimum_target_g": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Protein Minimum Target G"
          },
          "kcal_per_extra_step": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kcal Per Extra Step"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tz"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Country"
          },
          "job_activity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Job Activity"
          },
          "include_steps": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Include Steps"
          },
          "activity_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Activity Level"
          },
          "goal_rate_kg_per_week": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Goal Rate Kg Per Week"
          },
          "protein_g_per_kg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Protein G Per Kg"
          },
          "track_protein": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Track Protein"
          },
          "track_fat": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Track Fat"
          },
          "track_fiber": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Track Fiber"
          }
        },
        "title": "save_profileInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "computed": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Computed"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Profile"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "ProfileWriteResponse",
        "type": "object"
      },
      "description": "Create a profile programmatically and calculate BMR, TDEE and targets. New users must complete signup in the app first. TDEE methods are calculate, multiplier and typed. Positive deficit means a calorie reduction; protein, fat and fiber targets are minimums.",
      "annotations": {
        "title": "Create profile",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "update_profile",
      "inputSchema": {
        "properties": {
          "weight_kg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Weight Kg"
          },
          "height_cm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Height Cm"
          },
          "age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Age"
          },
          "tdee_method": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tdee Method"
          },
          "tdee_given": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tdee Given"
          },
          "baseline_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Baseline Steps"
          },
          "bmr_override": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bmr Override"
          },
          "deficit": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Deficit"
          },
          "target_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Target Kcal"
          },
          "protein_minimum_target_g": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Protein Minimum Target G"
          },
          "kcal_per_extra_step": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kcal Per Extra Step"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tz"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Country"
          },
          "job_activity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Job Activity"
          },
          "include_steps": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Include Steps"
          },
          "activity_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Activity Level"
          },
          "goal_rate_kg_per_week": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Goal Rate Kg Per Week"
          },
          "protein_g_per_kg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Protein G Per Kg"
          },
          "track_protein": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Track Protein"
          },
          "track_fat": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Track Fat"
          },
          "track_fiber": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Track Fiber"
          }
        },
        "title": "update_profileInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "computed": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Computed"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Profile"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "ProfileWriteResponse",
        "type": "object"
      },
      "description": "Update only the supplied profile fields and recalculate affected targets. A changed weight also creates today’s weigh-in. Use log_weight for a weigh-in with body-composition measurements.",
      "annotations": {
        "title": "Update profile",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "log_meal",
      "inputSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "kcal": {
            "title": "Kcal",
            "type": "number"
          },
          "protein_g": {
            "default": 0,
            "title": "Protein G",
            "type": "number"
          },
          "carbs_g": {
            "default": 0,
            "title": "Carbs G",
            "type": "number"
          },
          "fat_g": {
            "default": 0,
            "title": "Fat G",
            "type": "number"
          },
          "fiber_g": {
            "default": 0,
            "title": "Fiber G",
            "type": "number"
          },
          "components": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Components"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Note"
          },
          "meal_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meal Type"
          },
          "eaten_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Eaten At"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          },
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          },
          "save_to_library": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Save To Library"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "name",
          "kcal"
        ],
        "title": "log_mealInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "table": {
            "title": "Table",
            "type": "string"
          },
          "render_instruction": {
            "default": "Render the markdown table in `table` exactly as-is, complete and unchanged, at the end of your response. Never rebuild, reorder or summarize it.",
            "title": "Render Instruction",
            "type": "string"
          },
          "plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Plan"
          },
          "saved_to_library": {
            "title": "Saved To Library",
            "type": "boolean"
          },
          "meal_type": {
            "title": "Meal Type",
            "type": "string"
          },
          "meal_type_inferred": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meal Type Inferred"
          }
        },
        "required": [
          "message",
          "table",
          "saved_to_library",
          "meal_type"
        ],
        "title": "LogMealResponse",
        "type": "object"
      },
      "description": "Log final meal totals after checking nutrition sources and confirming composite meal components. Components accept name, grams, kcal and macro fields. source is deklaration, web, estimat or bibliotek. eaten_at accepts HH:MM or an ISO datetime. meal_type is morgenmad, frokost, aftensmad or snack; omitted types are inferred and flagged in the response. New composite meals can be saved to the library. Attach images afterward in the app.",
      "annotations": {
        "title": "Log meal",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "log_meal_from_library",
      "inputSchema": {
        "properties": {
          "name_or_alias": {
            "title": "Name Or Alias",
            "type": "string"
          },
          "servings": {
            "default": 1,
            "title": "Servings",
            "type": "number"
          },
          "grams": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Grams"
          },
          "meal_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meal Type"
          },
          "eaten_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Eaten At"
          },
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "name_or_alias"
        ],
        "title": "log_meal_from_libraryInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Plan"
          },
          "meal_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meal Type"
          },
          "meal_type_inferred": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meal Type Inferred"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          },
          "suggestions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Suggestions"
          }
        },
        "title": "LogMealFromLibraryResponse",
        "type": "object"
      },
      "description": "Find a saved meal by name or alias and log its stored nutrition. Scale with servings, or with grams when the saved reference uses weight. A meal saved in portions cannot be scaled with grams. Returns the resolved meal and updated daily table.",
      "annotations": {
        "title": "Log meal from library",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "save_meal",
      "inputSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kcal"
          },
          "protein_g": {
            "default": 0,
            "title": "Protein G",
            "type": "number"
          },
          "carbs_g": {
            "default": 0,
            "title": "Carbs G",
            "type": "number"
          },
          "fat_g": {
            "default": 0,
            "title": "Fat G",
            "type": "number"
          },
          "fiber_g": {
            "default": 0,
            "title": "Fiber G",
            "type": "number"
          },
          "contents": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Contents"
          },
          "components": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Components"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Aliases"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Desc"
          },
          "is_preset": {
            "default": false,
            "title": "Is Preset",
            "type": "boolean"
          },
          "per": {
            "default": "portion",
            "title": "Per",
            "type": "string"
          },
          "reference_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Reference Amount"
          },
          "reference_unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Reference Unit"
          }
        },
        "required": [
          "name"
        ],
        "title": "save_mealInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "meal": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meal"
          },
          "name_normalized": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name Normalized"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "SaveMealResponse",
        "type": "object"
      },
      "description": "Save a reusable meal without logging it. Supply flat nutrition for the reference quantity, or contents made from library references and inline ingredients. The server derives composite totals. contents items accept library_meal or library_ingredient with amount and unit, or name, amount, unit, nutrition and optional nested contents. Nesting is limited to three levels.",
      "annotations": {
        "title": "Save meal to library",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "search_meals",
      "inputSchema": {
        "properties": {
          "q": {
            "default": "",
            "title": "Q",
            "type": "string"
          },
          "collection": {
            "default": "meals",
            "enum": [
              "meals",
              "blocks"
            ],
            "title": "Collection",
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kind"
          }
        },
        "title": "search_mealsInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "meals": {
            "default": [],
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Meals",
            "type": "array"
          },
          "blocks": {
            "default": [],
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Blocks",
            "type": "array"
          }
        },
        "required": [
          "count"
        ],
        "title": "SearchMealsResponse",
        "type": "object"
      },
      "description": "Search meals by fuzzy name or alias; an empty query lists saved items. Set collection to blocks to search reusable block templates and optionally filter by kind. Results include reference quantities and nutrition totals.",
      "annotations": {
        "title": "Search meal library",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "save_ingredient",
      "inputSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "kcal": {
            "title": "Kcal",
            "type": "number"
          },
          "protein_g": {
            "default": 0,
            "title": "Protein G",
            "type": "number"
          },
          "carbs_g": {
            "default": 0,
            "title": "Carbs G",
            "type": "number"
          },
          "fat_g": {
            "default": 0,
            "title": "Fat G",
            "type": "number"
          },
          "fiber_g": {
            "default": 0,
            "title": "Fiber G",
            "type": "number"
          },
          "per": {
            "default": "100g",
            "title": "Per",
            "type": "string"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Aliases"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Desc"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          },
          "reference_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Reference Amount"
          },
          "reference_unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Reference Unit"
          }
        },
        "required": [
          "name",
          "kcal"
        ],
        "title": "save_ingredientInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "ingredient": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Ingredient"
          },
          "name_normalized": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name Normalized"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "SaveIngredientResponse",
        "type": "object"
      },
      "description": "Save or overwrite an ingredient’s verified reference nutrition. The default reference is 100 g; reference_amount and reference_unit can define another quantity. source is deklaration, web or estimat. Future portions scale from this reference.",
      "annotations": {
        "title": "Save ingredient",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "search_ingredients",
      "inputSchema": {
        "properties": {
          "q": {
            "default": "",
            "title": "Q",
            "type": "string"
          }
        },
        "title": "search_ingredientsInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "ingredients": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Ingredients",
            "type": "array"
          }
        },
        "required": [
          "count",
          "ingredients"
        ],
        "title": "SearchIngredientsResponse",
        "type": "object"
      },
      "description": "Search individual ingredients by fuzzy name or alias. An empty query lists saved ingredients. Results include reference quantities and nutrition; scale by requested amount divided by reference amount.",
      "annotations": {
        "title": "Search ingredient library",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "save_block",
      "inputSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "meals": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Meals",
            "type": "array"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Aliases"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Desc"
          }
        },
        "required": [
          "name",
          "kind",
          "meals"
        ],
        "title": "save_blockInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "block": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Block"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "SaveBlockResponse",
        "type": "object"
      },
      "description": "Save a reusable group of meals without changing a journal day. kind is morgenmad, frokost, aftensmad, snack, pre_workout or post_workout. meals uses the same library-reference or inline-item format as save_meal contents. Place a saved template on a plan with save_plan_block.",
      "annotations": {
        "title": "Save block template",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "update_library_item",
      "inputSchema": {
        "properties": {
          "collection": {
            "enum": [
              "meal",
              "ingredient",
              "block"
            ],
            "title": "Collection",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "new_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "New Name"
          },
          "desc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Desc"
          },
          "aliases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Aliases"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kind"
          }
        },
        "required": [
          "collection",
          "name"
        ],
        "title": "update_library_itemInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "item": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Item"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "UpdateLibraryItemResponse",
        "type": "object"
      },
      "description": "Rename a meal, ingredient or block, or update its description and aliases. Renaming preserves the old name as an alias. aliases replaces the alias list; kind applies only to blocks. Use the corresponding save tool to change nutrition or contents.",
      "annotations": {
        "title": "Update library item",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "delete_library_item",
      "inputSchema": {
        "properties": {
          "collection": {
            "enum": [
              "meal",
              "ingredient",
              "block"
            ],
            "title": "Collection",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "merge_into": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Merge Into"
          }
        },
        "required": [
          "collection",
          "name"
        ],
        "title": "delete_library_itemInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "deleted": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Deleted"
          },
          "merged_into": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Merged Into"
          },
          "survivor": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Survivor"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "DeleteLibraryItemResponse",
        "type": "object"
      },
      "description": "Remove a meal, ingredient or block. With merge_into, merge its name and aliases into another item in the same collection; the survivor keeps its own nutrition. Previously logged days and saved plans are not rewritten. Confirm destructive changes before calling.",
      "annotations": {
        "title": "Delete library item",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "delete_entry",
      "inputSchema": {
        "properties": {
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "index": {
            "title": "Index",
            "type": "integer"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "kind",
          "index"
        ],
        "title": "delete_entryInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "removed": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Removed"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "DeleteEntryResponse",
        "type": "object"
      },
      "description": "Remove a logged meal, exercise, session, metric or weight entry by kind and zero-based index, then recalculate the day. Read the day first to identify the correct index. Weight always has index 0. Confirm the removal before calling.",
      "annotations": {
        "title": "Delete entry",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "log_exercise",
      "inputSchema": {
        "properties": {
          "activity": {
            "title": "Activity",
            "type": "string"
          },
          "kcal_burned": {
            "title": "Kcal Burned",
            "type": "number"
          },
          "source": {
            "default": "manual",
            "title": "Source",
            "type": "string"
          },
          "raw": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Raw"
          },
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "activity",
          "kcal_burned"
        ],
        "title": "log_exerciseInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Plan"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "LogExerciseResponse",
        "type": "object"
      },
      "description": "Log a completed activity with a positive kcal_burned value; the daily table subtracts it from food intake. source is manual, met_estimate or garmin. Use conservative estimates and confirm Garmin workouts before logging them. extra can hold tracker values.",
      "annotations": {
        "title": "Log exercise",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "sync_garmin",
      "inputSchema": {
        "properties": {
          "days": {
            "default": 2,
            "title": "Days",
            "type": "integer"
          }
        },
        "title": "sync_garminInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "synced_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Synced Days"
          },
          "synced_activities": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Synced Activities"
          },
          "sync_errors": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sync Errors"
          },
          "latest_workouts": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Latest Workouts"
          },
          "hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Hint"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "SyncGarminResponse",
        "type": "object"
      },
      "description": "Refresh the connected user’s Garmin data and return recent workouts. days defaults to 2 and supports backfills up to 31 days. Sync retrieves data; it does not log workouts as calorie deductions. Confirm an activity before calling log_exercise.",
      "annotations": {
        "title": "Sync Garmin",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      }
    },
    {
      "name": "get_garmin_workouts",
      "inputSchema": {
        "properties": {
          "start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start"
          },
          "end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "End"
          },
          "limit": {
            "default": 10,
            "title": "Limit",
            "type": "integer"
          },
          "activity_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Activity Id"
          },
          "include_series": {
            "default": false,
            "title": "Include Series",
            "type": "boolean"
          },
          "series_points": {
            "default": 120,
            "title": "Series Points",
            "type": "integer"
          }
        },
        "title": "get_garmin_workoutsInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Count"
          },
          "workouts": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Workouts"
          },
          "activity": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Activity"
          },
          "hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Hint"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "GarminWorkoutsResponse",
        "type": "object"
      },
      "description": "Read synced workouts, newest first, or pass activity_id for one workout’s detailed splits and training data. include_series adds interval summaries and a downsampled heart-rate, pace and power curve, requiring a working Garmin connection. series_points defaults to 120 and is clamped to 20–600.",
      "annotations": {
        "title": "Garmin workouts",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": true
      }
    },
    {
      "name": "get_garmin_day",
      "inputSchema": {
        "properties": {
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "title": "get_garmin_dayInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": true,
        "properties": {
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          },
          "steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Steps"
          },
          "resting_hr": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Resting Hr"
          },
          "active_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Active Kcal"
          },
          "total_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Total Kcal"
          },
          "sleep_hours": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sleep Hours"
          },
          "sleep_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sleep Score"
          },
          "stress_avg": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Stress Avg"
          },
          "body_battery_high": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Body Battery High"
          },
          "body_battery_low": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Body Battery Low"
          },
          "intensity_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Intensity Minutes"
          },
          "hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Hint"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "GarminDayResponse",
        "type": "object"
      },
      "description": "Read stored daily Garmin metrics such as steps, resting heart rate, sleep, stress, body battery and energy. Call sync_garmin first for fresh data. Missing measurements can be null. Connect or reconnect Garmin through the app when required.",
      "annotations": {
        "title": "Garmin day",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "log_weight",
      "inputSchema": {
        "properties": {
          "weight_kg": {
            "title": "Weight Kg",
            "type": "number"
          },
          "body_fat_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Body Fat Pct"
          },
          "muscle_kg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Muscle Kg"
          },
          "skeletal_muscle_kg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Skeletal Muscle Kg"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          },
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "weight_kg"
        ],
        "title": "log_weightInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "table": {
            "title": "Table",
            "type": "string"
          },
          "render_instruction": {
            "default": "Render the markdown table in `table` exactly as-is, complete and unchanged, at the end of your response. Never rebuild, reorder or summarize it.",
            "title": "Render Instruction",
            "type": "string"
          },
          "plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Plan"
          },
          "weight": {
            "additionalProperties": true,
            "title": "Weight",
            "type": "object"
          }
        },
        "required": [
          "message",
          "table",
          "weight"
        ],
        "title": "LogWeightResponse",
        "type": "object"
      },
      "description": "Record body weight in kilograms, with optional body-fat percentage, muscle mass, skeletal muscle mass, source and extra measurements. Returns the updated day and weigh-in; it is available to trend queries.",
      "annotations": {
        "title": "Log weight",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "log_session",
      "inputSchema": {
        "properties": {
          "type": {
            "title": "Type",
            "type": "string"
          },
          "rpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Rpe"
          },
          "felt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Felt"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Notes"
          },
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          }
        },
        "required": [
          "type"
        ],
        "title": "log_sessionInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "session": {
            "additionalProperties": true,
            "title": "Session",
            "type": "object"
          },
          "sessions_today": {
            "title": "Sessions Today",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "session",
          "sessions_today"
        ],
        "title": "LogSessionResponse",
        "type": "object"
      },
      "description": "Record how today’s training session felt, including type, optional RPE from 1 to 10, subjective feedback, notes and extra tracker values. This does not add an exercise calorie deduction; use log_exercise for burned calories.",
      "annotations": {
        "title": "Log training session",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "log_metric",
      "inputSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "value": {
            "title": "Value"
          },
          "unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Unit"
          },
          "context": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Context"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Note"
          },
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "title": "log_metricInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "metric": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Metric"
          },
          "metrics_today": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Metrics Today"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          },
          "tracker": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tracker"
          }
        },
        "title": "LogMetricResponse",
        "type": "object"
      },
      "description": "Record a number or short text value such as mood, soreness, medication or sleep quality. Configured trackers validate value types and ranges. For an ongoing new metric, confirm its type before configure_tracker. One-off metrics need no configuration.",
      "annotations": {
        "title": "Log metric",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "configure_tracker",
      "inputSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "value_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Value Type"
          },
          "scale_min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Scale Min"
          },
          "scale_max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Scale Max"
          },
          "scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Scale"
          },
          "unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Unit"
          },
          "when": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "When"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Notes"
          },
          "active": {
            "default": true,
            "title": "Active",
            "type": "boolean"
          },
          "remove": {
            "default": false,
            "title": "Remove",
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ],
        "title": "configure_trackerInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "trackers": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Trackers"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "ConfigureTrackerResponse",
        "type": "object"
      },
      "description": "Create, update, deactivate or remove a custom tracker. value_type is quantity, scale, yes_no or text. Scale ratings default to 1–5 unless another range is requested. when can include before_exercise, after_exercise, with_meal, daily or adhoc. remove permanently removes the tracker configuration.",
      "annotations": {
        "title": "Configure tracker",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_day_summary",
      "inputSchema": {
        "properties": {
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "title": "get_day_summaryInput",
        "type": "object"
      },
      "outputSchema": {
        "$defs": {
          "DayRows": {
            "additionalProperties": false,
            "properties": {
              "meals": {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "title": "Meals",
                "type": "array"
              },
              "exercise": {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "title": "Exercise",
                "type": "array"
              },
              "metrics": {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "title": "Metrics",
                "type": "array"
              }
            },
            "required": [
              "meals",
              "exercise",
              "metrics"
            ],
            "title": "DayRows",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "summary": {
            "additionalProperties": true,
            "title": "Summary",
            "type": "object"
          },
          "table": {
            "title": "Table",
            "type": "string"
          },
          "render_instruction": {
            "default": "Render the markdown table in `table` exactly as-is, complete and unchanged, at the end of your response. Never rebuild, reorder or summarize it.",
            "title": "Render Instruction",
            "type": "string"
          },
          "rows": {
            "$ref": "#/$defs/DayRows"
          },
          "steps": {
            "title": "Steps",
            "type": "integer"
          },
          "weight": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weight"
          },
          "sessions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Sessions",
            "type": "array"
          },
          "excluded": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Excluded"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Label"
          },
          "estimated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Estimated"
          },
          "fill": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Fill"
          },
          "plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Plan"
          }
        },
        "required": [
          "date",
          "summary",
          "table",
          "rows",
          "steps",
          "weight",
          "sessions"
        ],
        "title": "DaySummaryResponse",
        "type": "object"
      },
      "description": "Read a date’s complete structured summary and markdown table, including food, exercise, targets, net and remaining amounts. Omit date for today. A pending plan is identified separately. An incomplete past day can include fill options; missing food is not treated as zero.",
      "annotations": {
        "title": "Day summary",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "close_day",
      "inputSchema": {
        "properties": {
          "extra": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Extra"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          },
          "exclude": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Exclude"
          },
          "label": {
            "anyOf": [
              {
                "enum": [
                  "target",
                  "vedligehold",
                  "cheat",
                  ""
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Label"
          }
        },
        "title": "close_dayInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "journal": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Journal"
          },
          "excluded": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Excluded"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Label"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "required": [
          "message"
        ],
        "title": "CloseDayResponse",
        "type": "object"
      },
      "description": "Return a final recap and save optional extra information or a day label. label is target, vedligehold, cheat or an empty string to clear it. exclude marks a day outside adherence averages; an empty string clears that mark. Real data remains visible. Clearing the label on an estimated filled day undoes that fill.",
      "annotations": {
        "title": "Close day",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "fill_day",
      "inputSchema": {
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "level": {
            "enum": [
              "target",
              "vedligehold",
              "cheat"
            ],
            "title": "Level",
            "type": "string"
          },
          "cheat_size": {
            "anyOf": [
              {
                "enum": [
                  "lille",
                  "typisk",
                  "stor"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Cheat Size"
          },
          "exercise_activity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Exercise Activity"
          },
          "exercise_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Exercise Kcal"
          },
          "count_in_averages": {
            "default": true,
            "title": "Count In Averages",
            "type": "boolean"
          },
          "cheat_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Cheat Kcal"
          }
        },
        "required": [
          "date",
          "level"
        ],
        "title": "fill_dayInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Label"
          },
          "estimated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Estimated"
          },
          "excluded": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Excluded"
          },
          "estimate_row": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Estimate Row"
          },
          "exercise_row": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Exercise Row"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "FillDayResponse",
        "type": "object"
      },
      "description": "Estimate missing food for a past day while preserving real entries. level is target, vedligehold (maintenance) or cheat. cheat_size is lille (+500 kcal), typisk (+1500) or stor (+3000), or use cheat_kcal for a custom surplus above maintenance. Optional exercise is logged before sizing the estimate. Repeating replaces the previous fill; count_in_averages controls adherence inclusion.",
      "annotations": {
        "title": "Fill day",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_energy_balance",
      "inputSchema": {
        "properties": {
          "window": {
            "default": "7d",
            "title": "Window",
            "type": "string"
          },
          "start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start"
          },
          "end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "End"
          },
          "basis": {
            "default": "target",
            "title": "Basis",
            "type": "string"
          }
        },
        "title": "get_energy_balanceInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "window": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Window"
          },
          "target_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Target Kcal"
          },
          "tdee_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tdee Kcal"
          },
          "basis": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Basis"
          },
          "balance_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Balance Kcal"
          },
          "avg_balance_kcal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Avg Balance Kcal"
          },
          "buffer": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Buffer"
          },
          "days": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Days"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Summary"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "EnergyBalanceResponse",
        "type": "object"
      },
      "description": "Compare net intake with the target (basis=target) or maintenance (basis=tdee). Use window 3d, 7d, uge-til-nu, 14d, 1md, md-til-nu or siden-sidste-vejning, or supply both start and end. Negative balance means below the reference. Historical targets remain date-specific. Missing-food days, today and explicitly excluded days do not contribute to balance averages.",
      "annotations": {
        "title": "Energy balance",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_trend",
      "inputSchema": {
        "properties": {
          "days": {
            "default": 14,
            "title": "Days",
            "type": "integer"
          },
          "metric": {
            "default": "weight",
            "title": "Metric",
            "type": "string"
          }
        },
        "title": "get_trendInput",
        "type": "object"
      },
      "outputSchema": {
        "$defs": {
          "TrendPoint": {
            "additionalProperties": false,
            "properties": {
              "date": {
                "title": "Date",
                "type": "string"
              },
              "value": {
                "title": "Value",
                "type": "number"
              },
              "excluded": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Excluded"
              }
            },
            "required": [
              "date",
              "value"
            ],
            "title": "TrendPoint",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "metric": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Metric"
          },
          "days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Days"
          },
          "points": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Points"
          },
          "series": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/TrendPoint"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Series"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "TrendResponse",
        "type": "object"
      },
      "description": "Read a dated series for weight, net_kcal, protein or body_fat_pct. days selects recent journal days. Food metrics skip days without logged meals. Excluded days remain tagged in the series; all weigh-ins remain visible.",
      "annotations": {
        "title": "Trend series",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_memory",
      "inputSchema": {
        "properties": {
          "kind": {
            "default": "",
            "title": "Kind",
            "type": "string"
          }
        },
        "title": "get_memoryInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kind"
          },
          "content_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Content Md"
          },
          "instructions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Instructions"
          },
          "preferences": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Preferences"
          },
          "insights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Insights"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "GetMemoryResponse",
        "type": "object"
      },
      "description": "Read persistent instructions, preferences or insights as markdown. Omit kind to retrieve all three. These documents are already included in load_context.",
      "annotations": {
        "title": "Read memory",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "update_memory",
      "inputSchema": {
        "properties": {
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "content_md": {
            "title": "Content Md",
            "type": "string"
          },
          "mode": {
            "default": "replace",
            "title": "Mode",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "content_md"
        ],
        "title": "update_memoryInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kind"
          },
          "length": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Length"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "UpdateMemoryResponse",
        "type": "object"
      },
      "description": "Persist a requested change to instructions, preferences or insights. content_md is markdown; mode is replace or append. Update only when the user has requested an actual change.",
      "annotations": {
        "title": "Update memory",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "query_journal",
      "inputSchema": {
        "properties": {
          "filter_json": {
            "additionalProperties": true,
            "title": "Filter Json",
            "type": "object"
          },
          "projection": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Projection"
          },
          "limit": {
            "default": 60,
            "title": "Limit",
            "type": "integer"
          }
        },
        "required": [
          "filter_json"
        ],
        "title": "query_journalInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Count"
          },
          "results": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Results"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "QueryJournalResponse",
        "type": "object"
      },
      "description": "Run a read-only query over the authenticated user’s journal. filter_json supports equality and $gte, $lte, $gt, $lt, $in, $ne and $exists; write operators are rejected. projection selects fields and limit caps results. Discover supported journal fields through load_context.",
      "annotations": {
        "title": "Query journal",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "submit_feedback",
      "inputSchema": {
        "$defs": {
          "ConversationMessage": {
            "properties": {
              "role": {
                "enum": [
                  "user",
                  "assistant"
                ],
                "title": "Role",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "role",
              "text"
            ],
            "title": "ConversationMessage",
            "type": "object"
          }
        },
        "properties": {
          "text": {
            "title": "Text",
            "type": "string"
          },
          "kind": {
            "enum": [
              "feature_request",
              "bug",
              "eval_case"
            ],
            "title": "Kind",
            "type": "string"
          },
          "conversation": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/ConversationMessage"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Conversation"
          },
          "expected": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Expected"
          },
          "context": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Context"
          }
        },
        "required": [
          "text",
          "kind"
        ],
        "title": "submit_feedbackInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Id"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Kind"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "FeedbackResponse",
        "type": "object"
      },
      "description": "Submit a feature_request, bug or eval_case. text describes the issue. eval_case requires the verbatim conversation as role/text messages; expected describes the desired result. Obtain consent before including conversation text. context can include structured diagnostic information.",
      "annotations": {
        "title": "Submit feedback",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "get_plan",
      "inputSchema": {
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          }
        },
        "required": [
          "date"
        ],
        "title": "get_planInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "blocks": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Blocks",
            "type": "array"
          },
          "motion": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Motion",
            "type": "array"
          },
          "totals": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totals"
          }
        },
        "required": [
          "date",
          "status",
          "blocks",
          "totals"
        ],
        "title": "PlanResponse",
        "type": "object"
      },
      "description": "Read a proposed day’s food blocks, meals, ingredient quantities, motion and calculated totals. Returns status empty if no plan exists. Plans are separate from logged days until commit_plan is called.",
      "annotations": {
        "title": "Get day plan",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "save_plan_block",
      "inputSchema": {
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name"
          },
          "block_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Block Id"
          },
          "library_block": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Library Block"
          },
          "meals": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Meals"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Note"
          }
        },
        "required": [
          "date",
          "kind"
        ],
        "title": "save_plan_blockInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          },
          "blocks": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Blocks"
          },
          "motion": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Motion"
          },
          "totals": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Totals"
          },
          "block_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Block Id"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "SavePlanBlockResponse",
        "type": "object"
      },
      "description": "Add or replace a food block on a date’s plan. kind is morgenmad, frokost, aftensmad, snack, pre_workout or post_workout. Use library_block for a saved template, meals for library references or inline items, or both. Pass block_id to edit an existing block; the server rescales nutrition when quantities change.",
      "annotations": {
        "title": "Save plan block",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "save_plan_motion",
      "inputSchema": {
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "activity": {
            "title": "Activity",
            "type": "string"
          },
          "kcal_burned": {
            "title": "Kcal Burned",
            "type": "number"
          },
          "motion_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Motion Id"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Note"
          }
        },
        "required": [
          "date",
          "activity",
          "kcal_burned"
        ],
        "title": "save_plan_motionInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          },
          "blocks": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Blocks"
          },
          "motion": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Motion"
          },
          "totals": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Totals"
          },
          "motion_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Motion Id"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "SavePlanMotionResponse",
        "type": "object"
      },
      "description": "Add a planned activity with positive kcal_burned. Pass motion_id to replace an existing activity; omit it to append. Planned activity is separate from completed exercise and does not affect the logged day until the plan is committed.",
      "annotations": {
        "title": "Save plan motion",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "clear_plan",
      "inputSchema": {
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "block_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Block Id"
          },
          "motion_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Motion Id"
          }
        },
        "required": [
          "date"
        ],
        "title": "clear_planInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "cleared": {
            "title": "Cleared",
            "type": "boolean"
          },
          "removed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Removed"
          },
          "blocks": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Blocks"
          },
          "motion": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Motion"
          },
          "totals": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Totals"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "required": [
          "date",
          "cleared"
        ],
        "title": "ClearPlanResponse",
        "type": "object"
      },
      "description": "Remove the whole plan for a date, or only the supplied block_id and/or motion_id. Does not remove journal entries or library items. Confirm the intended removal before calling.",
      "annotations": {
        "title": "Clear day plan",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "commit_plan",
      "inputSchema": {
        "properties": {
          "date": {
            "title": "Date",
            "type": "string"
          },
          "force": {
            "default": false,
            "title": "Force",
            "type": "boolean"
          }
        },
        "required": [
          "date"
        ],
        "title": "commit_planInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "committed": {
            "title": "Committed",
            "type": "boolean"
          },
          "date": {
            "title": "Date",
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Summary"
          },
          "table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Table"
          },
          "render_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Render Instruction"
          },
          "blocks_logged": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Blocks Logged"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "required": [
          "committed",
          "date"
        ],
        "title": "CommitPlanResponse",
        "type": "object"
      },
      "description": "Convert a proposed plan into logged meals and exercise for the same date, then remove the plan. Refuses a date that already has a logged day unless force=true. Confirm before committing, especially when overriding that protection. Returns the committed daily table.",
      "annotations": {
        "title": "Commit plan to day",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "get_entry_images",
      "inputSchema": {
        "properties": {
          "entry_id": {
            "title": "Entry Id",
            "type": "string"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Date"
          }
        },
        "required": [
          "entry_id"
        ],
        "title": "get_entry_imagesInput",
        "type": "object"
      },
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "images": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Images"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Message"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "title": "EntryImagesResponse",
        "type": "object"
      },
      "description": "Return temporary signed view URLs for images attached to a logged meal, exercise, weigh-in, session or metric. Use an entry_id returned by day-summary or journal results. Upload and attach images through the app, not this tool.",
      "annotations": {
        "title": "Entry images",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ]
}
