Skip to main content
Glama

files_upload

Create a new file in Nextcloud from text, base64, or a ChatGPT attachment, with chunked upload support for binary files.

Instructions

Create a new file from text, base64 or a ChatGPT attachment.

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": {
      "path": "<path>"
    },
    "name": "files_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
pathYesNew file path; must not exist
finalNoAssemble after this chunk
contentNoUTF-8 text; omit for binary
upload_idNoContinuation id
chunk_indexNoChunk number, starting at 1
total_bytesNoTotal binary size in bytes
content_typeNoBinary MIME typeapplication/octet-stream
content_base64NoBase64 chunk for binary upload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly=false, destructive=false, idempotent=false, so the mutation safety profile is covered. The description adds nothing about the multi-chunk assembly flow (upload_id, chunk_index, final), the 10000-chunk ceiling, or what happens if the path already exists — significant behavioral traits for a 9-param mutation that 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 front-loaded sentence with zero filler; the verb and the three source modes lead. It is effficient, though its brevity leaves the chunked flow entirely unaddressed.

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 a 9-parameter mutation with a nested file object, a chuncked upload protocol, and no output schema, the description covers only the simple single-shot case. The multi-chunk lifecycle and the 'path must not exist' failure mode are left to the schema or to inference, which is insufficient at this 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 description coverage is 89%, so the schema documents almost all parameters, setting a baseline of 3. The description maps the three source modes to content, content_base64, and the nested file object, adding modest meaning above the schema but nothing about the chunking parameters or their interaction.

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 ('Create') plus resource ('file') and enumerates the three input modes: text, base64, and a ChatGPT attachment. An agent can distinguish it from files_create_folder or files_download. It does not mention the chunked-upload mode the schema exposes, so it is clear but not fully differentiating.

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?

No when-to-use guidance, no mention of alternatives (e.g., files_download for retrieval or files_create_folder for directories), and no prerequisites beyond the implicit 'must not exist' that lives in the schema. The agent must infer context 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.