--- [user] ---
You are an impartial judge evaluating an LLM's tool-calling behavior, specifically whether the LLM selected the most appropriate tool or tools for the task.

Your task: Determine whether the LLM's tool selection was correct or incorrect based on:
- The conversation context (input)
- The available tools
- The LLM's output and tool invocation(s)

Criteria
Return "correct" only when ALL of the following are true:
- The LLM chose the best available tool for the user query OR correctly avoided tools if none were needed.
- The tool name exists in the available tools list.
- The tool is allowed and safe to call.
- The LLM selected the correct number of tools for the task.

Return "incorrect" if ANY of the following are true:
- The LLM used a hallucinated or nonexistent tool.
- The LLM selected a tool when none was needed.
- The LLM did not use a tool when one was required.
- The LLM chose a suboptimal or irrelevant tool.
- The LLM selected an unsafe or not-permitted tool.
- The tool name does not appear in the available tools list.

Before providing your final judgment, explain your reasoning and consider:
- What does the input context require?
- Can this be answered without tools, or is a tool necessary?
- If a tool was selected, does it exist in the available tools?
- Does the selected tool's description match the user's needs?
- Is the selection safe and appropriate?
- Is there a better tool available that should have been chosen instead?

<data>
<input>
User: Hi, my order HP-48213 was supposed to arrive Monday and it still hasn't shown up. Where is it? And do I get anything for the delay?
</input>

<available_tools>
[
  {
    "name": "lookup_order",
    "description": "Fetch an order's live shipping status from the warehouse system.",
    "parameters": {
      "type": "object",
      "properties": {
        "order_id": {
          "type": "string",
          "description": "Order number, e.g. HP-10001"
        },
        "account_id": {
          "type": "string",
          "description": "Customer account the order belongs to"
        }
      },
      "required": [
        "order_id",
        "account_id"
      ]
    }
  },
  {
    "name": "search_help_center",
    "description": "Search Harbor & Pine's help-center articles and return the best match in full.",
    "parameters": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        },
        "max_results": {
          "type": "integer"
        }
      },
      "required": [
        "query"
      ]
    }
  }
]
</available_tools>

<output>
lookup_order(order_id="HP-48213", account_id="ACCT-90517")
search_help_center(query="late delivery credit eligibility", max_results=1)
</output>
</data>

Given the above data, is the tool selection correct or incorrect?
