Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Modifier une Collection PocketBase

pocketbase-update-collection

Generates a migration to change an existing PocketBase collection's properties, such as its name, list, create, update, or delete rules. Use it to update collection settings safely.

Instructions

Génère une migration pour modifier les propriétés d'une collection existante (règles, nom, etc.)

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>"
    },
    "name": "pocketbase-update-collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNameNoNouveau nom de la collection
listRuleNoNouvelle règle de lecture
createRuleNoNouvelle règle de création
deleteRuleNoNouvelle règle de suppression
updateRuleNoNouvelle règle de modification
collectionNameYesNom de la collection à modifier

Output Schema

NameRequiredDescriptionDefault
contentYes
successYes
filePathYes
collectionNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/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. It does disclose the important fact that the output is a generated migration file rather than an immediate mutation, but it never states whether the change takes effect immediately, whether the migration must be executed separately, or what permissions are required — gaps that matter for a mutation-adjacent tool.

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?

A single front-loaded sentence with no filler; the key verb and the migration framing both appear immediately. It is slightly under-informative rather than bloated, which is the opposite failure mode.

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?

With an output schema present the description needn't explain return values, and parameters are already fully documented. What remains missing is the workflow context an agent needs — that this only stages a migration, and how this differs from update-collection-fields or create-collection-migration — leaving it only minimally viable for a six-parameter collection-mutation tool.

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% and all six parameters carry their own descriptions, so the baseline of 3 applies. The description's mention of rules and name loosely mirrors the parameters but adds no format, null-semantics, or precedence information beyond the schema.

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 names a specific verb and resource ('Génère une migration pour modifier les propriétés d'une collection existante') and usefully clarifies that the tool produces a migration rather than applying a change directly, which the name 'update-collection' alone would not convey. It does not, however, distinguish itself from close siblings such as pocketbase-update-collection-fields or pocketbase-create-collection-migration.

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 phrase 'collection existante' implicitly scopes usage to existing collections and the parenthetical '(règles, nom, etc.)' hints at the kind of edits intended. There is no explicit when-to-use versus when-not guidance, no mention of the alternative field-editing tool, and no statement of prerequisites such as needing to run the generated migration afterwards.

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