Skip to main content
Glama

category_collection_add

Add a new category with directory and file patterns or a collection grouping multiple categories to the current project.

Instructions

Add a new category or collection to the current project.

Creates a category with directory and file patterns, or a collection grouping multiple categories. Category-specific fields (dir, patterns) and collection-specific fields (categories) are validated based on the type parameter.

Arguments

  • type (required): enum: 'category', 'collection'

    • Type of item to add

  • name (required): string

    • Name to create

  • description: any

    • Optional description

  • dir: any

    • Directory path (category only)

  • patterns: any

    • File patterns (category only)

  • categories: any

    • Category expressions (collection only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsYesArguments for category_collection_add tool.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full responsibility. It explains validation logic for conditional parameters, which is useful. However, it omits details about side effects (e.g., persistence, permissions, idempotency) or error handling. The description adds moderate transparency but leaves 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 well-structured with a brief intro, a validation paragraph, and a clear arguments list. Every sentence serves a purpose, and there is no redundancy. It is concise yet comprehensive.

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

Completeness4/5

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

Given that an output schema exists (not shown) and the tool is straightforward, the description covers purpose, parameters, and conditional logic. However, it assumes knowledge of the 'current project' context, which may require agent awareness of other tools. Overall, it is sufficiently complete for the complexity.

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 coverage is 100%, but the description adds significant value by grouping parameters by type (category-specific vs collection-specific) and explaining validation. This helps the agent understand which fields apply to each type, going beyond the individual parameter 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 the tool's action: 'Add a new category or collection to the current project.' It specifies the verb 'add' and the resources 'category' or 'collection', effectively distinguishing it from sibling tools with different verbs (e.g., change, list, remove, update). No ambiguity.

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 does not provide explicit guidance on when to use this tool versus alternatives. It explains conditional parameter usage for categories vs collections, but does not compare with other tools or advise on context. The agent must infer usage from the 'add' verb alone.

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/deeprave/mcp-guide'

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