Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Afficher le Contenu d'une Migration

pocketbase-view-migration

Displays the contents of a PocketBase migration file by name, letting you inspect migration code to review or troubleshoot schema changes before applying them.

Instructions

Affiche le contenu d'un fichier de migration 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": {
      "filename": "<filename>"
    },
    "name": "pocketbase-view-migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesNom du fichier de migration

Output Schema

NameRequiredDescriptionDefault
contentYes

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. It implies a read-only operation via "Affiche" but says nothing about error behavior for a nonexistent filename, permission/auth requirements, or whether the returned content is raw source text; the existence of an output schema removes the need to document return shape, but the failure and access semantics remain undisclosed.

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 zero redundancy. It is efficient rather than padded; the only issue is that its brevity borders on under-specification rather than verbosity.

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?

For a one-parameter read tool with an output schema, the core is covered and an agent could invoke it correctly. What is missing is the practical prerequisite (how a filename is obtained, likely via list-migrations) and the failure mode, which matter given the many sibling tools operating on migrations.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains that "filename" is the migration file name. The description adds no format hint (e.g., whether the .js extension or full path is expected), which is exactly the baseline-3 case when schema coverage is complete.

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 pairs a specific verb ("Affiche") with a specific resource ("le contenu d'un fichier de migration PocketBase"), so an agent can tell this is a read of migration source text rather than a listing or an execution. It does not explicitly name the sibling it differs from (list-migrations, execute-migration), but the resource+verb combination is concrete enough to separate it.

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, and no alternative is mentioned — notably, nothing says to call pocketbase-list-migrations first to obtain a valid filename, nor that this is an inspection step before execute-migration. The usage is only inferable from the purpose statement itself.

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