Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Uploader un Fichier vers PocketBase

pocketbase-upload-file

Uploads a local file to a specified file field of a PocketBase record using the collection name, record ID, and field name.

Instructions

Upload un fichier vers 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>",
      "recordId": "<recordId>",
      "fieldName": "<fieldName>",
      "filePath": "<filePath>"
    },
    "name": "pocketbase-upload-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesChemin local du fichier à uploader
recordIdYesID du record
fieldNameYesNom du champ de type file
collectionNameYesNom de la collection

Output Schema

NameRequiredDescriptionDefault
fileUrlNo
successYes
recordIdYes
fieldNameYes
collectionNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/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 and delivers almost none of it. It does not say whether an existing file is overwritten, whether the record must already exist, what authentication/permissions are needed, or any size/type limits — all critical for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, so nothing is wasted, but the brevity is achieved through under-specification rather than disciplined editing. There is no structure beyond one clause.

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 for a four-required-parameter mutating upload tool with zero annotations, the description says far too little about preconditions and side effects. It does not tell an agent enough to invoke this safely without inspecting the schema and guessing.

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% with all four parameters (collectionName, recordId, fieldName, filePath) individually documented, so the schema does the work. The description adds no meaning beyond it — notably it never mentions recordId or fieldName, which are the least obvious parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource ('Upload un fichier vers une collection PocketBase'), but it is essentially a restatement of the tool name and title. It omits the crucial scoping detail that the upload targets a specific record AND field, which is what actually separates this from siblings like pocketbase-download-file or pocketbase-update-record.

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 guidance on when to use this instead of alternatives such as pocketbase-update-record or pocketbase-download-file, and no prerequisites (collection must exist, field must be a file type). The only implicit signal is the word 'Upload', which is already in the name.

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