get_random_problem
Selects a random LeetCode problem by difficulty, category, or topic tags and returns its details as JSON for mock interviews and algorithmic practice.
Instructions
Picks a random LeetCode problem optionally filtered by difficulty, category, and topic tags (read-only, no auth). Returns randomly selected problem details as JSON. Useful for mock interview preparation or algorithmic practice.
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": "get_random_problem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional topic tags, e.g. ['array', 'dynamic-programming'] | |
| category | No | Category filter (default: 'all-code-essentials') | all-code-essentials |
| difficulty | No | Optional difficulty filter: 'EASY', 'MEDIUM', or 'HARD' |