Skip to main content
Glama

upload_file

Idempotent

Upload or overwrite text files in Nextcloud. Writes plain-text content like markdown, code, or JSON to a specified path, creating or replacing the file.

Instructions

Upload or overwrite a text file in Nextcloud.

Use this for plain-text content (markdown, source code, CSV, JSON, etc.). For binary files (images, PDFs, archives), use upload_file_binary instead.

Creates the file if it doesn't exist. Overwrites if it does.

Args: path: Destination path relative to user's root. Example: "Documents/report.md" content: Text content to write to the file.

Returns: Confirmation message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.8/5.0
Behavior4/5

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

The description reveals important behavior beyond the annotations: it creates files if absent and overwrites if present. The annotations already cover read-only, idempotent, and destructive hints, so the bar is lower, and the description adds useful context about content-type limitations and overwrite semantics. No contradiction with the annotations exists.

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

Conciseness5/5

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

The description is appropriately sized and front-loaded. The first sentence states the core operation, the second gives usage guidance, and the remaining lines cover behavior, parameters, and return value. Every sentence earns its place with no filler.

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

Completeness5/5

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

For a two-parameter text upload tool, this description is complete: it covers what the tool does, when to use it, the distinction from the binary variant, create/overwrite behavior, path semantics with an example, and the return value. The output schema and annotations cover the rest.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it fully compensates. It defines 'path' as relative to the user's root with a concrete example, and defines 'content' as the text to write. This goes far beyond the schema's bare 'Path' and 'Content' titles.

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

Purpose5/5

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

The description opens with 'Upload or overwrite a text file in Nextcloud', a specific verb plus resource. It also explicitly distinguishes itself from upload_file_binary by scoping to plain-text content (markdown, source code, CSV, JSON). This clearly separates it from the most similar sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The tool states exactly when to use it ('plain-text content') and explicitly routes binary content to 'upload_file_binary instead'. This gives the agent a direct decision rule, including the alternative tool name, rather than leaving the choice to inference.

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

Deploy Server

Other Tools