Skip to main content
Glama

validate_collection_creation

Read-only

Confirms a newly created collection is present, active, and readable with the current token, retrying once after a short wait to handle Directus lag before writing items.

Instructions

Confirms that a newly created collection is usable: present in the schema, active, and readable with the current token, retrying once after waitTime milliseconds (default 2000) because Directus can lag a moment behind a create. Read-only. Use it right after create_collection and before writing items; refresh_collection_cache when it still reports the collection as missing, diagnose_collection_access for the full permission breakdown.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "collection": "<collection>"
    },
    "name": "validate_collection_creation"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitTimeNoWait time in milliseconds before retry (default: 2000)
collectionYesCollection name to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description reinforces read-only while adding substantive behavior: a single retry, a configurable wait, and the reason (Directus lagging behind a create). What is missing is the failure/return contract — no output schema exists, so it never says what a failed validation looks like versus a thrown error.

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?

One front-loaded sentence defines the check and the retry semantics, followed by a compact routing clause naming two alternatives. Every clause carries information; nothing is padding.

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?

For a two-parameter read-only validator, the description covers purpose, timing, retry behavior, and escalation paths, which is close to sufficient. The remaining gap is the result contract — an agent cannot tell from the text whether a negative outcome is a returned value or an error, and there is no output schema to fall back on.

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 both parameters are already documented in the input schema, and the description's mention of waitTime largely restates the schema text. It does clarify the semantic role of the wait (a delay before the retry, not a timeout), which is a small but real addition.

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 (confirms a newly created collection is usable) and enumerates the exact conditions checked: present in schema, active, and readable with the current token. That level of specificity lets an agent distinguish it from cache-refresh or permission-diagnosis tools without opening a 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 placement in the workflow (right after create_collection, before writing items) plus two conditional alternatives: refresh_collection_cache when it still reports the collection missing, and diagnose_collection_access for a full permission breakdown. When-to-use and when-to-switch are both covered.

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