Skip to main content
Glama

post_gym_macro_mode

Configure a nutritionally optimized burrito based on your workout activity and fitness goals to support post-exercise recovery.

Instructions

Automatically configures a nutritionally optimized burrito based on your workout. Gains-as-a-Service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activityYesWhat workout did you just do?
goalNoCurrent fitness goalmaintain

Implementation Reference

  • Registration and implementation of the 'post_gym_macro_mode' tool, which takes activity and goal arguments and returns a configured burrito order.
    server.tool(
      "post_gym_macro_mode",
      "Automatically configures a nutritionally optimized burrito based on your workout. Gains-as-a-Service.",
      {
        activity: z
          .enum(["ran_5k", "ran_10k", "lifted_weights", "crossfit", "yoga", "walked_to_fridge", "rest_day"])
          .describe("What workout did you just do?"),
        goal: z
          .enum(["bulk", "cut", "maintain", "survive"])
          .default("maintain")
          .describe("Current fitness goal"),
      },
      async ({ activity, goal }) => {
        const configs = {
          ran_5k: {
            protein: "Chicken", double: false, rice: "Brown Rice", beans: "Black Beans",
            toppings: ["Fajita Veggies", "Fresh Tomato Salsa (Mild)", "Lettuce"],
            note: "Moderate cardio detected. Balanced rebuild protocol activated.",
          },
          ran_10k: {
            protein: "Chicken", double: true, rice: "Brown Rice", beans: "Black Beans",
            toppings: ["Fajita Veggies", "Fresh Tomato Salsa (Mild)"],
            note: "Serious mileage. Double protein authorized. Skip the cheese, you earned it differently.",
          },
          lifted_weights: {
            protein: "Steak", double: true, rice: "White Rice", beans: "Black Beans",
            toppings: ["Cheese", "Fajita Veggies", "Fresh Tomato Salsa (Mild)"],
            note: "Anabolic window is OPEN. Maximum protein deployed.",
          },
          crossfit: {
            protein: "Chicken", double: true, rice: "White Rice", beans: "Pinto Beans",
            toppings: ["Guacamole", "Cheese", "Fajita Veggies", "Lettuce"],
            note: "You probably already told everyone about your WOD. Here's your reward.",
          },
          yoga: {
            protein: "Sofritas", double: false, rice: "Brown Rice", beans: "Black Beans",
            toppings: ["Fajita Veggies", "Lettuce", "Fresh Tomato Salsa (Mild)"],
            note: "Namaste. Your burrito has been spiritually aligned.",
          },
          walked_to_fridge: {
            protein: "Carnitas", double: false, rice: "White Rice", beans: "Pinto Beans",
            toppings: ["Cheese", "Sour Cream", "Guacamole"],
            note: "Cardio is cardio. No judgment. Full indulgence mode.",
          },
          rest_day: {
            protein: "Chicken", double: false, rice: "Brown Rice", beans: "Black Beans",
            toppings: ["Lettuce", "Fresh Tomato Salsa (Mild)"],
            note: "Rest day = discipline day. Minimal toppings. Character building.",
          },
        };
    
        const config = configs[activity];
    
        // Goal adjustments
        let goalNote = "";
        if (goal === "bulk") {
          config.double = true;
          config.toppings.push("Cheese", "Sour Cream");
          config.toppings = [...new Set(config.toppings)];
          goalNote = "BULK MODE: Extra everything. Calories are your friend.";
        } else if (goal === "cut") {
          config.rice = "No Rice";
          config.toppings = config.toppings.filter((t) => !["Cheese", "Sour Cream", "Guacamole"].includes(t));
          goalNote = "CUT MODE: Rice eliminated. Flavor sacrificed at the altar of abs.";
        } else if (goal === "survive") {
          goalNote = "SURVIVAL MODE: Just eat something. Anything. Please.";
        }
    
        const lines = [
          "# Post-Workout Burrito Configuration",
          "",
          `**Activity:** ${activity.replace(/_/g, " ")}`,
          `**Goal:** ${goal}`,
          "",
          "## Optimized Order",
          "",
          `- **Entree:** Bowl (always bowl for macro tracking)`,
          `- **Protein:** ${config.double ? "Double " : ""}${config.protein}`,
          `- **Rice:** ${config.rice}`,
          `- **Beans:** ${config.beans}`,
          `- **Toppings:** ${config.toppings.join(", ")}`,
          "",
          `> ${config.note}`,
          ...(goalNote ? ["", `> ${goalNote}`] : []),
        ];
    
        return { content: [{ type: "text", text: lines.join("\n") }] };
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YoshiSaurus/mcp-otle'

If you have feedback or need assistance with the MCP directory API, please join our Discord server