Skip to main content
Glama

list_collections

Read-only

Discover Directus collection names and metadata before reading or writing data; results flag folders and inactive collections and omit system collections unless include_system is true.

Instructions

Lists every collection in the Directus instance with its metadata, so the data model can be discovered before anything is read or written. Start here when the collection name is unknown; use get_collection_schema for the fields of one collection and get_collection_items to read its rows. Folders (grouping elements with no table behind them) and inactive collections (Directus 12.4 refuses to read or write their contents) are flagged in the result. System collections are omitted unless include_system is true. Returns one entry per collection with its name, metadata and those flags.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_collections"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_systemNoInclude system collections

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint it explains real behavior: system collections are omitted by default, folders are returned but have no table behind them, and inactive collections (Directus 12.4 refuses reads/writes) are flagged in the result. That is exactly the kind of 'what you will and won't get back' context annotations cannot express.

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?

Purpose is front-loaded in the first clause and each subsequent sentence carries routing or behavioral information. The final two sentences partially restate the same flag concept ('flagged in the result' then 'with its name, metadata and those flags'), a minor redundancy in an otherwise tight paragraph.

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

Completeness5/5

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

With no output schema, the description supplies the return shape itself (one entry per collection, name, metadata, folder/inactive flags). For a single-parameter, read-only discovery tool, nothing an agent needs in order to call it correctly is missing.

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% and the single parameter is self-describing, so the baseline would be 3. The description adds the default-state meaning ('System collections are omitted unless include_system is true'), which tells the agent the effect of omitting the flag rather than just its name.

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?

States a specific verb and resource ('Lists every collection in the Directus instance with its metadata') and immediately frames the purpose as data-model discovery. It explicitly distinguishes itself from get_collection_schema and get_collection_items, so an agent can separate it from siblings without opening another schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('Start here when the collection name is unknown') and names the alternative tools with their conditions — get_collection_schema for fields, get_collection_items for rows. The only gap is it doesn't cover the analyze_/diff_ siblings, but the routing guidance for the closest alternatives is unambiguous.

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