Skip to main content
Glama

salsa_risk_assessment

Assess gastrointestinal risk based on salsa selection, spice tolerance, and recent meals to inform safer Chipotle orders.

Instructions

Predicts the gastrointestinal consequences of your salsa choices. Consult your doctor before using this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
salsasYesWhich salsas are you getting?
spice_toleranceYesYour spice tolerance level
has_eaten_todayYesHave you eaten anything else today?

Implementation Reference

  • The 'salsa_risk_assessment' tool is registered and implemented in index.js. It takes a list of salsas, spice tolerance, and eaten status as input, calculates a heat score, and returns a formatted markdown summary.
    server.tool(
      "salsa_risk_assessment",
      "Predicts the gastrointestinal consequences of your salsa choices. Consult your doctor before using this tool.",
      {
        salsas: z
          .array(z.enum(["mild", "medium_green", "medium_corn", "hot"]))
          .min(1)
          .describe("Which salsas are you getting?"),
        spice_tolerance: z.enum(["low", "medium", "high", "texas"]).describe("Your spice tolerance level"),
        has_eaten_today: z.boolean().describe("Have you eaten anything else today?"),
      },
      async ({ salsas, spice_tolerance, has_eaten_today }) => {
        const scoville = {
          mild: 500, medium_green: 2500, medium_corn: 1500, hot: 15000,
        };
        const totalScoville = salsas.reduce((sum, s) => sum + scoville[s], 0);
    
        const toleranceMultiplier = { low: 2.0, medium: 1.0, high: 0.5, texas: 0.2 }[spice_tolerance];
        const emptyStomachPenalty = has_eaten_today ? 1.0 : 1.8;
    
        const adjustedHeat = totalScoville * toleranceMultiplier * emptyStomachPenalty;
    
        let spiceRisk, milkGlasses, regretProbability;
        if (adjustedHeat > 20000) {
          spiceRisk = "SEVERE";
          milkGlasses = 3;
          regretProbability = "95%";
        } else if (adjustedHeat > 10000) {
          spiceRisk = "HIGH";
          milkGlasses = 2;
          regretProbability = "70%";
        } else if (adjustedHeat > 4000) {
          spiceRisk = "MODERATE";
          milkGlasses = 1;
          regretProbability = "35%";
        } else {
          spiceRisk = "LOW";
          milkGlasses = 0;
          regretProbability = "10%";
        }
    
        const lines = [
          "# Salsa Risk Assessment",
          "",
          "```",
          "  Gastrointestinal Impact Analysis",
          "  =================================",
          `  Salsas Selected:     ${salsas.join(", ")}`,
          `  Combined Scoville:   ${totalScoville} SHU`,
          `  Tolerance Level:     ${spice_tolerance}`,
          `  Empty Stomach:       ${!has_eaten_today ? "YES (danger)" : "No"}`,
          `  Adjusted Heat Index: ${adjustedHeat.toFixed(0)} AHU`,
          "",
          `  SPICE RISK:          ${spiceRisk}`,
          `  Recommended Milk:    ${milkGlasses} glass(es)`,
          `  Regret Probability:  ${regretProbability}`,
          "```",
          "",
          ...(spiceRisk === "SEVERE"
            ? [
                "> WARNING: You are entering the salsa danger zone.",
                "> Side effects may include: involuntary tears, existential reflection, and texting your ex.",
              ]
            : []),
          ...(spiceRisk === "LOW" ? ["> Your ancestors are watching. They are not impressed."] : []),
          ...(spice_tolerance === "texas"
            ? ["> Texas-level tolerance detected. Nothing can hurt you anymore."]
            : []),
        ];
    
        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