find_kth_smallest
Finds the kth smallest number in an unsorted list (1-indexed, where k=1 returns the smallest element). (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_kth_smallest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | integer, required, the position of the desired smallest element (1-indexed) | |
| nums | No | array of numbers, required, the list of numbers to search |