Skip to main content
Glama

create_directory_collection

Create a new directory collection.

Args: project_id: The project ID. name: Collection display name. slug: URL-safe slug (lowercase, hyphens, underscores only). fields: JSON array of field objects. Each field needs: type (text|richtext|image|link|datetime|switch|option|reference|map|html|multiimage|video), label. Optional: id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
slugYes
fieldsNo[]
project_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile of this write is covered. The description adds useful substance the annotations do not: the full enumeration of allowed field types and the slug format constraint. It still omits any side-effect context such as slug uniqueness, permission requirements, or what happens on duplicate slug.

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

Conciseness4/5

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

One-sentence purpose followed by a compact parameter list; every line carries information and nothing is padded. The Python-style 'Args:' docstring formatting is slightly unconventional for a tool description but is well organized and front-loaded.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. Combined with full parameter documentation, the description is sufficient to invoke the tool correctly; what is missing is invocation context (permissions, slug collision behavior, usage guidance), which keeps it short of complete.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the entire burden and does so well: it documents all four parameters, clarifies that 'fields' is a JSON array of field objects despite being typed as a bare string in the schema, specifies required vs optional field keys (type, label required; id optional), and enumerates the twelve valid field types. The slug format constraint is not present anywhere in the schema.

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 opening line gives a specific verb and resource ('Create a new directory collection'), which is enough to distinguish it from list/update/delete_directory_collection siblings. It does not, however, differentiate it from the other create_* tools (create_directory_field, create_directory_item, create_commerce_collection), leaving the agent to infer the distinction from the name alone.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. The Args block documents parameter shapes but never says when a directory collection is the right construct versus a CMS category, commerce collection, or a directory field/item. The agent gets no routing help.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources