{
  "metadata": {
    "description": "Scale an ingredient amount when changing the number of recipe servings.",
    "tags": [
      "recipe",
      "cooking",
      "ingredients",
      "servings"
    ]
  },
  "llm_config": {
    "model_name": "gpt-4.1-mini"
  },
  "max_steps": 6,
  "tools": [
    {
      "name": "recipe_scaler",
      "function": {
        "description": "Scale an ingredient amount when changing the number of recipe servings.",
        "parameters": {
          "type": "object",
          "properties": {
            "ingredient": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "amount": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000000
            },
            "originalServings": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 1000000
            },
            "targetServings": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 1000000
            }
          },
          "required": [
            "ingredient",
            "amount",
            "originalServings",
            "targetServings"
          ],
          "additionalProperties": false
        }
      },
      "instructions": "Call website_scale_recipe with the typed input and return the actual result.",
      "tools": [
        "handshake_validator"
      ],
      "x-handshake-action": "website_scale_recipe",
      "output_schema": {
        "type": "object"
      },
      "x-handshake-actions": [
        "website_scale_recipe"
      ]
    }
  ],
  "link_slots": {
    "handshake_validator": {
      "description": "Published demo peer link"
    }
  }
}