get_problem
Retrieves a single LeetCode problem by its URL slug, returning the description, examples, constraints, and metadata as JSON for problem lookup and analysis.
Instructions
Retrieves a single LeetCode problem by titleSlug (read-only, no auth). Returns description, examples, constraints, and metadata as JSON. Use search_problems to find problems by keyword/tag/difficulty; use get_daily_challenge for today's featured problem.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"titleSlug": "<titleSlug>"
},
"name": "get_problem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| titleSlug | Yes | Problem URL slug (e.g., 'two-sum', 'add-two-numbers')—the path segment after /problems/ |