Skip to main content
Glama
chzkyy

mcp-mongodb

by chzkyy

create_collection

Create a new collection in a specified MongoDB database. Provide the collection name and optionally the target database.

Instructions

Membuat koleksi baru di dalam sebuah database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseNoNama database tujuan. Opsional jika MONGODB_DB sudah diatur.
collectionYesNama koleksi.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It clearly indicates a mutating operation by saying 'Membuat' (create), but does not disclose behavior when the collection already exists, permissions required, or what response is returned.

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 sentence with no filler words. The key action and target resource are front-loaded, making it easy to parse quickly.

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 simple two-parameter creation tool, the schema covers the inputs and the description states the core operation. However, the lack of annotations and output schema leaves gaps around error behavior, idempotency, and return values.

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?

The input schema already describes both parameters with 100% coverage, including the optional database and required collection. The description adds no further parameter detail, so the baseline of 3 is appropriate.

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 uses a specific verb, 'Membuat' (create), with a clear resource, 'koleksi' (collection), and scope, 'di dalam sebuah database'. This unambiguously distinguishes it from siblings like rename_collection, drop_collection, and list_collections.

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 usage is implied by the verb 'create': an agent can infer this tool is for creating a new collection. However, the description does not explicitly state when to prefer this over alternatives or mention edge cases like whether a collection is auto-created on first insert.

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