{
  "id": "tc_04",
  "slug": "websearch_then_calculate",
  "category": "tool_call",
  "system": "You are a helpful assistant with access to tools.",
  "messages": [
    {
      "role": "user",
      "content": "Search for the current USD to KRW exchange rate, then calculate how much 3,500 USD is in KRW."
    }
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "websearch",
        "description": "Search the web for information and return a list of relevant results.",
        "parameters": {
          "type": "object",
          "properties": {
            "query": {
              "type": "string",
              "description": "Search query string"
            }
          },
          "required": [
            "query"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "webfetch",
        "description": "Fetch the content of a web page or URL and return its text.",
        "parameters": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "description": "Full URL to fetch"
            },
            "extract": {
              "type": "string",
              "description": "Optional: specific section to extract"
            }
          },
          "required": [
            "url"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "calculate",
        "description": "Evaluate a mathematical expression and return the numeric result.",
        "parameters": {
          "type": "object",
          "properties": {
            "expression": {
              "type": "string",
              "description": "Math expression, e.g. '72 * 2'"
            }
          },
          "required": [
            "expression"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "create_calendar_event",
        "description": "Create a calendar event.",
        "parameters": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "date": {
              "type": "string",
              "description": "ISO 8601 date, e.g. 2026-04-20"
            },
            "duration_hours": {
              "type": "number"
            }
          },
          "required": [
            "title",
            "date"
          ]
        }
      }
    }
  ],
  "generation_config": {
    "temperature": 0,
    "max_tokens": 512
  },
  "grading": {
    "no_tool_expected": false,
    "expected_tool_call": "websearch",
    "alternative_tool_calls": [],
    "expected_args_must_contain": [
      "query"
    ],
    "multi_turn": true,
    "tool_response_mock": {
      "websearch": "Current USD/KRW exchange rate: 1 USD = 1,380 KRW (Bank of Korea, April 2026)"
    }
  },
  "quality_checkpoint": "websearch 호출 → mock 결과로 4,830,000원 계산"
}