Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Exécuter une Migration PocketBase (tout type)

pocketbase-execute-any-migration

Executes a PocketBase migration file to create, modify, or delete collections and fields through the REST API, applying schema changes on demand.

Instructions

Exécute une migration PocketBase de création, modification ou suppression via API REST

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": {
      "migrationFile": "<migrationFile>"
    },
    "name": "pocketbase-execute-any-migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
migrationFileYesNom du fichier de migration à exécuter

Output Schema

NameRequiredDescriptionDefault
actionYes
successYes
migrationTypeYes
collectionNameNo

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 burden, yet it only says the migration may create, modify, or delete. It does not state whether the change is irreversible, whether deletions destroy data, what permissions or server state are required, or whether the migration must already exist on disk — all critical for a destructive operation.

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 or repetition. It is efficient, though its brevity is partly the cause of the missing behavioral and routing context rather than a deliberate trade-off.

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?

For an unannotated, potentially destructive schema-mutating tool with many similar siblings, the definition is too thin. The output schema reduces the need to describe return values, but irreversibility, permissions, and differentiation from 'pocketbase-execute-migration' are all missing.

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 the single 'migrationFile' parameter is documented in the schema as 'Nom du fichier de migration à exécuter'. The description adds nothing beyond that — no naming convention, path resolution, or file-location expectations — so it sits at the baseline for full schema coverage.

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 concrete verb+resource ('Exécute une migration PocketBase') and enumerates the migration types it covers (création, modification, suppression) plus the transport (API REST). It is clear what the tool does, but it never explains how it differs from the near-identically named sibling 'pocketbase-execute-migration', so the 'any' scope is left implicit.

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 or when-not-to-use guidance, no mention of prerequisites, and no reference to alternatives. With siblings such as 'pocketbase-execute-migration', 'pocketbase-add-field-migration', and 'pocketbase-revert-migration' present, the absence of routing guidance forces the agent to guess.

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