Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Obtenir le Schéma d'une Collection

pocketbase-get-collection-schema

Retrieve the fields and data types of a PocketBase collection to inspect or validate its schema before making changes.

Instructions

Obtient le schéma (champs et types) 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>"
    },
    "name": "pocketbase-get-collection-schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
collectionNameYesNom de la collection

Output Schema

NameRequiredDescriptionDefault
schemaYes
successYes
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?

Because no annotations are provided, the description carries the full behavior burden. 'Obtient' implies a read-only lookup, but the description never explicitly confirms it is non-mutating, requires no special permissions, or what happens if the collection name doesn't exist. For a simple one-parameter getter, this is adequate but thin.

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 no filler, front-loading the verb and the returned data. It is efficient, though it could name its key fields more precisely or add one routing clause at little cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a simple one-parameter getter with an output schema, so return values need no explanation. The description covers the essential purpose; only routing versus similar read tools is missing, which is a modest gap given the low complexity.

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 coverage is 100% and the single parameter (collectionName, 'Nom de la collection') is already documented in the schema. The description adds nothing about format (slug vs display name) or case sensitivity, so baseline 3 applies.

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 states a specific verb and resource: 'Obtient le schéma (champs et types) d'une collection PocketBase' — it retrieves field definitions and types for one collection. It is clear what it returns, but it does not distinguish itself from siblings such as pocketbase-view-collection or pocketbase-list-collections, so an agent must infer which one to pick.

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 guidance and no mention of alternatives. It never says whether this tool is for inspecting structure before editing fields, or how it differs from view-collection or update-collection-fields, leaving the choice entirely to inference from names.

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