Skip to main content
Glama
fadlee

PocketBase MCP Server

by fadlee

create_collection

Create a new collection in PocketBase with defined fields, access rules, and configuration options for organizing database records.

Instructions

Create a new collection in PocketBase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
createRuleNoRule for creating records
deleteRuleNoRule for deleting records
fieldsYesCollection fields configuration
indexesNoCollection indexes
listRuleNoRule for listing records
nameYesCollection name
passwordAuthNoPassword authentication settings for auth collections
typeNoCollection type (base, auth, view)base
updateRuleNoRule for updating records
viewQueryNoSQL query for view collections
viewRuleNoRule for viewing records
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but only states the basic action. It doesn't cover critical aspects like required permissions, whether this is a destructive operation, rate limits, error handling, or what happens on success (e.g., returns a collection ID). For a creation tool with complex parameters, this is a significant gap.

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, clear sentence with zero wasted words. It's appropriately sized and front-loaded, immediately conveying the core purpose without unnecessary elaboration.

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

Completeness2/5

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

Given the complexity (11 parameters with nested objects, no output schema, and no annotations), the description is inadequate. It doesn't explain the return value, error conditions, or behavioral nuances needed for a tool that creates collections with extensive configuration options. The agent would struggle to use this effectively without additional context.

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 schema description coverage is 100%, so the schema already documents all 11 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema, but since the schema is comprehensive, the baseline score of 3 is appropriate as the description doesn't need to compensate for schema gaps.

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 description clearly states the action ('Create') and resource ('new collection in PocketBase'), making the purpose immediately understandable. However, it doesn't differentiate this tool from sibling tools like 'migrate_collection' or 'generate_pb_schema' which might also involve collection creation or modification, leaving room for 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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication), when not to use it (e.g., for updating existing collections), or refer to sibling tools like 'update_record' or 'migrate_collection' for related operations.

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/fadlee/dynamic-pocketbase-mcp'

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