Skip to main content
Glama
PocketBase MCP Server

PocketBase MCP Server

Télécharger un Fichier depuis PocketBase

pocketbase-download-file

Download a file from a PocketBase collection by record ID and file field, saving it to a local path (default ./downloads/) for backup or processing.

Instructions

Télécharge un fichier depuis 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>"
    },
    "name": "pocketbase-download-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordIdYesID du record
fieldNameYesNom du champ de type file
outputPathNoChemin local où sauvegarder le fichier (défaut: ./downloads/)
collectionNameYesNom de la collection

Output Schema

NameRequiredDescriptionDefault
successYes
filePathNo
fileSizeNo
recordIdYes
fieldNameYes
collectionNameYes

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 provided, so the description carries the full behavioral burden and largely drops it. It does not say whether the file is written to the local filesystem, what happens if outputPath already exists (overwrite vs. fail), whether authentication is required, or what error surfaces when the field is not a file type. "Download" is the only behavioral signal given.

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?

A single short sentence with no wasted wording, and the action is front-loaded. However, it is under-specified rather than genuinely concise — there is no second sentence carrying the details an agent needs.

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?

An output schema exists and the input schema is fully documented, so return values and parameters need no prose. The remaining gap is that a filesystem-writing tool with zero annotations leaves the agent without any statement of side effects or failure modes.

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%, so all four parameters (collectionName, recordId, fieldName, outputPath) are already documented in the schema. The description adds no meaning beyond that, so the 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?

States a specific verb ("Télécharge") and resource ("un fichier depuis une collection PocketBase"), so the action is immediately identifiable. It does not, however, distinguish itself from siblings such as pocketbase-upload-file or the record-fetching tools, nor does it clarify that the file is a record field value.

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 the obvious inverse (pocketbase-upload-file), and no prerequisites stated. The agent must infer everything about tool selection from the name alone.

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