Skip to main content
Glama
mcande21

io.github.mcande21/thealgorithms-mcp

by mcande21

get_category

Lists all algorithms in a specified category for a chosen language, returning each algorithm's name and path.

Instructions

List every algorithm in one category (for a language) as {name, path}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
languageNopython

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the output format ({name, path}) but does not mention ordering, pagination, or other behavioral traits. Adequate but minimal.

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?

Single sentence, no filler, front-loaded with key information. Every word adds value.

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 2 params, no enums, and presence of output schema, the description covers the core function but lacks mention of prerequisites (e.g., need to know categories) or error handling. Adequate for a simple list tool.

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

Parameters2/5

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

Schema description coverage is 0%. The description only mentions 'for a language' but does not explain the category parameter or default language behavior. It adds some context but fails to compensate for missing schema descriptions.

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 it lists every algorithm in a category (for a language) as {name, path}. This is specific and distinguishes from sibling tools like list_languages and search_algorithms.

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

Usage Guidelines3/5

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

The description implies usage to list all algorithms in a category/language, but does not explicitly state when to use this vs alternatives like search_algorithms or list_categories.

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/mcande21/thealgorithms-mcp'

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