Skip to main content
Glama

hedwigai

Put a file in a drive or a workbook

upload
Destructive

Puts a file into a connected drive or a workbook's attachments. With text, writes that text as the file at path in a drive (/googledrive//), folders made, a file already there overwritten: how a markdown file is put in a drive, since the bash shell cannot write to one. With file (an image, video or other file the person attached in this chat) or url (a public http(s) link), this server fetches it and writes it at path (a drive, or /attachments//), up to 25 MB, and answers the drive's file id. Otherwise, for a file too large to send inline: returns a link to PUT the file to; then call again with upload_id to file it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA public http(s) link to the file: this server fetches it and writes it at `path`. Up to 25 MB.
fileNoA file the person attached in the chat, written at `path`. Up to 25 MB.
pathNoWhere the file goes: /attachments/<workbook>/<name>, /googledrive/<folders>/<name> or /dropbox/<folders>/<name>.
sizeNoThe file's size in bytes, when known: one over the limit is refused before uploading.
textNoThe file's whole content, as text.
upload_idNoOnce the file is PUT: the upload_id the link came with.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "A file the person attached in the chat, written at `path`. Up to 25 MB.",
      +  "properties": {
      +    "download_url": {
      +      "description": "A temporary link to the file's bytes.",
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "description": "The chat's id for the file.",
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "description": "Its name, when known.",
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "description": "Its MIME type, when known.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "A public http(s) link to the file: this server fetches it and writes it at `path`. Up to 25 MB.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "The file's whole content, as text.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description names exactly what is destroyed — 'a file already there overwritten' — plus that intermediate folders are created. It also discloses the 25 MB ceiling, that the server fetches `url` content (an outbound side effect consistent with openWorldHint), and the fact that the first call returns a PUT link rather than storing the file.

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?

Front-loaded with the core action and then organized by mode, with every sentence carrying operational detail. The embedded clause 'how a markdown file is put in a drive, since the bash shell cannot write to one' is grammatically tangled inside an otherwise dense paragraph, which costs it a point.

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?

For a 6-parameter, all-optional tool with no output schema, it covers entry modes, size limits, path formats, overwrite semantics, and what is returned (file id or PUT link). It does not address failure modes, permission/auth requirements for the connected drive, or what the attachments response looks like, leaving modest gaps.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the field docs: the two-call upload_id handshake, the path shapes for drive vs attachments targets, and which parameter sources the server actually fetches. It clarifies `text` is for agent-authored content while `file`/`url` are fetched server-side, which the schema alone does not make obvious.

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 and resource ('Puts a file into a connected drive or a workbook's attachments') and enumerates the concrete modes of operation (text, file, url, upload_id). It also implicitly separates itself from the bash sibling by noting the shell cannot write a markdown file to a drive, though it never explicitly routes against sibling tools like `attachments`.

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

Usage Guidelines4/5

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

Gives clear conditional routing between the modes: use `text` for content the agent generates, `file`/`url` for existing binaries up to 25 MB, and `upload_id` for the two-step large-file flow. It lacks explicit when-not-to-use guidance or named alternatives, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.