Skip to main content
Glama

search_categories

Search for Lucide Icons categories by name using partial matching. Specify a query and limit results to find relevant icon categories efficiently.

Instructions

Search for icon categories by category name using partial matching

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return
queryYesSearch term for category name

Implementation Reference

  • src/utils.ts:109-122 (registration)
    Full registration of the 'search_categories' MCP tool including name, description, input schema, and handler function.
    // Tool: search_categories
    server.tool(
      "search_categories",
      "Search for icon categories by category name using partial matching",
      {
        query: z.string().describe("Search term for category name"),
        limit: searchSchemas.categoryLimit.describe("Max results to return")
      },
      async ({ query, limit }) => {
        let results = SearchService.filterCategories(query);
        results = SearchService.applyLimit(results, limit);
        return createTextResponse(results);
      }
    );
  • The async handler function that executes the tool logic: filters categories by query using partial matching, applies limit, and returns formatted response.
    async ({ query, limit }) => {
      let results = SearchService.filterCategories(query);
      results = SearchService.applyLimit(results, limit);
      return createTextResponse(results);
    }
  • Zod input schema defining 'query' (string) and optional 'limit' (number) parameters for the tool.
    {
      query: z.string().describe("Search term for category name"),
      limit: searchSchemas.categoryLimit.describe("Max results to return")
    },
  • SearchService helper method implementing the partial matching filter logic on the categories array.
    static filterCategories(categoryName: string) {
      return categories.filter((category) =>
        category.name.toLowerCase().includes(categoryName.toLowerCase())
      );
    }
  • Definition of categoryLimit schema used in the tool's input schema (max 50, default 10).
    categoryLimit: limitSchema(50, 10),
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'partial matching' which adds some context about search behavior, but doesn't describe important aspects like pagination, rate limits, authentication requirements, error conditions, or what the return format looks like. For a search tool with zero annotation coverage, this leaves significant behavioral gaps.

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, efficient sentence that contains no wasted words. It's appropriately sized for a simple search tool and front-loads the essential information about what the tool does.

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?

For a search tool with 2 parameters, 100% schema coverage, but no annotations and no output schema, the description provides basic purpose and some behavioral context ('partial matching'). However, it doesn't compensate for the lack of output schema by describing return values, and with no annotations, it should provide more behavioral transparency about what to expect from the operation.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already fully documents both parameters ('query' and 'limit'). The description adds minimal value beyond the schema by implying the 'query' parameter is used for 'category name' searching with 'partial matching', but doesn't provide additional syntax, format, or usage details. This meets the baseline expectation when schema coverage is high.

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

Purpose4/5

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

The description clearly states the action ('Search for') and resource ('icon categories'), specifying the search field ('by category name') and matching method ('using partial matching'). It distinguishes from 'list_all_categories' by indicating search functionality, though it doesn't explicitly differentiate from 'fuzzy_search_categories' which might use different matching 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 for searching categories with partial matching on names, but doesn't provide explicit guidance on when to use this tool versus alternatives like 'fuzzy_search_categories' or 'list_all_categories'. No exclusions or prerequisites are mentioned, leaving usage context somewhat ambiguous.

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

Related 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/SeeYangZhi/lucide-icons-mcp'

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