Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Éditer les Champs d'une Collection

pocketbase-update-collection-fields

Generate a migration to add, modify, or delete fields in a PocketBase collection, enabling schema changes through MCP.

Instructions

Génère une migration pour ajouter, modifier ou supprimer des champs d'une collection PocketBase

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-update-collection-fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesNouvelle liste de champs (remplace les champs existants)
collectionNameYesNom de la collection

Output Schema

NameRequiredDescriptionDefault
contentYes
successYes
filePathYes
fieldCountYes
collectionNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important trait: it generates a migration rather than applying the change directly. However, it never says whether the migration must then be run (e.g. via pocketbase-execute-migration), whether removing fields is destructive to existing data, or whether permissions are required.

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 the verb and outcome first and zero filler. It is arguably too terse for a tool that replaces an entire field list, but nothing in it is wasted.

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?

An output schema exists and the input schema is fully documented, so much of the burden is covered. What remains missing is workflow-level context an agent needs for this tool: that 'fields' replaces the existing field list wholesale, and what the agent should do with the generated migration afterwards.

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 every property, including the nested field attributes, is documented in the schema, so the baseline is 3. The description adds no format or semantics beyond that, such as how the 'fields' array maps to add vs. modify vs. delete.

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 gives a specific verb ('Génère une migration') plus the resource ('champs d'une collection PocketBase') and enumerates the three operations covered (ajouter, modifier, supprimer). It stops short of naming how it differs from close siblings such as pocketbase-add-field-migration / pocketbase-remove-field-migration, so the agent must infer the overlap.

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 explicit when-to-use or when-not-to-use guidance and no mention of alternatives, even though the sibling list contains several field- and migration-level tools that could plausibly be chosen instead. Usage is only implied by the operation list.

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