Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Ajouter un Champ à une Collection

pocketbase-add-field-migration

Generates a migration that adds a single field to an existing PocketBase collection, letting you define the field's name, type, and constraints before applying it.

Instructions

Génère une migration pour ajouter un seul champ à une collection existante

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>",
      "field": "<field>"
    },
    "name": "pocketbase-add-field-migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldYesChamp à ajouter
collectionNameYesNom de la collection

Output Schema

NameRequiredDescriptionDefault
contentYes
successYes
filePathYes
fieldNameYes
collectionNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 burden. It does disclose one genuinely useful behavioral trait: the tool generates a migration rather than executing it, which tells the agent this is a non-destructive codegen step. It says nothing about where the migration file lands, whether existing data is affected, permission requirements, or reversibility.

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 short sentence with the key constraint front-loaded and no filler. It is efficient, though the terseness borders on under-specification for a tool with a nested parameter object.

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?

An output schema exists, so return values need not be explained, but the tool has a nested field object, no annotations, and a multi-step workflow (generate then execute). The description covers none of the workflow or side effects, leaving the agent to infer the most consequential part of using this 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 every nested field property (type enum, required, min/max, relation collectionId, etc.) is documented in the schema itself, so the baseline is 3. The description adds only the constraint that exactly one field is accepted per call, which clarifies why the nested object is singular rather than a list.

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?

States a specific verb and resource: 'Génère une migration pour ajouter un seul champ à une collection existante'. The qualifier 'un seul champ' implicitly separates it from a bulk field-update sibling, and 'migration' separates it from tools that mutate collections directly, so an agent can place it without opening the schema. It does not name any sibling explicitly, which keeps it from a 5.

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 only usage signal is implicit: the collection must already exist, and this produces a migration rather than applying it. There is no statement of when to prefer this over updating collection fields directly, nor any mention that a migration typically must be run afterwards (e.g. via the execute-migration siblings). The agent must infer the workflow.

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