Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Créer une Migration de Collection PocketBase

pocketbase-create-collection-migration

Generate a correctly formatted PocketBase migration file for a new base or auth collection from specified fields and access rules.

Instructions

Génère un fichier de migration PocketBase au format correct avec les champs spécifiés

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": {
      "collectionName": "<collectionName>",
      "fields": "<fields>"
    },
    "name": "pocketbase-create-collection-migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoType de collectionbase
fieldsYesListe des champs
listRuleNoRègle de lecture
createRuleNoRègle de création
deleteRuleNoRègle de suppression
updateRuleNoRègle de modification
collectionNameYesNom de la collection

Output Schema

NameRequiredDescriptionDefault
contentYes
successYes
filePathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers almost nothing. It does not say whether a file is written to disk and where, whether the migration is registered or applied, whether it is reversible, or whether it requires authentication; "au format correct" is the only behavioral hint and it is vague.

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 short, front-loaded sentence with no filler, which is good structure. The brevity is not itself a flaw, but the single sentence leaves no room for the routing or side-effect cues an agent needs here.

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?

With 7 parameters including a nested field array, an enum, four rule fields, and an output schema, one sentence is far short of adequate. An agent still cannot tell what the tool writes, where the migration lands, or how it should be sequenced with the execute-migration tools, which are essential context for a migration-generating operation.

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 the schema already documents collectionName, fields, type and the access rules. The phrase "avec les champs spécifiés" only gestures at the fields parameter and adds no constraint, syntax or default information beyond what the schema provides, making the baseline 3 appropriate.

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 uses a specific verb and resource: "Génère un fichier de migration PocketBase au format correct". That tells an agent it produces a migration file rather than executing one, which implicitly separates it from the execute-migration siblings, but it never names those siblings or clarifies its relation to add-field-migration or create-collection.

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 mention of prerequisites (existing collection? version?), no exclusions, and no alternatives. An agent must infer from the name alone whether to use this versus pocketbase-add-field-migration or pocketbase-update-collection.

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