Skip to main content
Glama
AHM215

LeetCode MCP Server

by AHM215

search_problems

Retrieve LeetCode problems filtered by categories, tags, difficulty, and keywords, with pagination for efficient browsing.

Instructions

Searches for LeetCode problems based on multiple filter criteria including categories, tags, difficulty levels, and keywords, with pagination support.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
limitNo
offsetNo
categoryNoall-code-essentials
difficultyNo
searchKeywordsNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It mentions 'pagination support' but does not explain pagination mechanics, result ordering, or authentication requirements. It is adequate but lacks depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence of 20 words. It begins with the verb and key action, conveying essential information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no output schema, and no annotations, the description covers the filtering and pagination but omits the return format, result ordering, and authentication. It is incomplete for a search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description compensates by naming filter categories (categories, tags, difficulty, keywords) that map to parameters. It adds meaning beyond the schema, though it could enumerate allowed values (e.g., difficulty levels).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action ('Searches'), the resource ('LeetCode problems'), and the filtering criteria (categories, tags, difficulty, keywords) with pagination. It differentiates from siblings like get_problem which targets a single problem.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lacks any guidance on when to use this tool versus alternatives, such as recommending get_problem for specific problem lookups or generate_template for code generation. No exclusions or context are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AHM215/LeetCode-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server