Skip to main content
Glama

Upload ProteinIQ File

upload_file

Upload a file into the ProteinIQ file library for later use as a saved file input. Provide exactly one of file, content_base64 or content. Inline content travels in one 4 MiB request: about 3 MiB of file data as content_base64, or just under 4 MiB of plain text as content. Larger files cannot be sent inline.

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_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoA file the user attached in the chat. Supplied by the client; do not construct it.
tagsNoOptional file tags.
contentNoPlain UTF-8 file content. Do not combine with content_base64.
filenameNoOriginal filename, including extension. Required unless the attached file has a name.
mime_typeNoOptional MIME type, for example text/plain.
descriptionNoOptional file description.
collection_idsNoOptional collection IDs to attach.
content_base64NoBase64-encoded file bytes, up to about 3 MiB of file data. Use this for binary files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / content_base64 / description
      Previous value: -"Base64-encoded file bytes. Use this for binary or large text files."New value: +"Base64-encoded file bytes, up to about 3 MiB of file data. Use this for binary files."
  2. Changed3 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "A file the user attached in the chat. Supplied by the client; do not construct it.",
      +  "properties": {
      +    "download_url": {
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / filename / description
      Previous value: -"Original filename, including extension."New value: +"Original filename, including extension. Required unless the attached file has a name."
    • changedInput schema / required
      Previous value: -[
      -  "filename"
      -]New value: +[]
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish this is a non-readonly, non-destructive write to a closed system. The description adds real value with concrete request-size limits (~4 MiB request, ~3 MiB base64 payload, just under 4 MiB plain text) that are absent from the schema or annotations. It stops short of saying what a successful upload returns or what happens on failure.

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?

Three tight sentences, front-loaded with purpose then the critical input-selection constraint then the size ceiling. No filler, though the size-limit sentence is dense enough to warrant a careful read.

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?

For an 8-parameter write tool with a nested file object and no output schema, the description covers the risky parts (input exclusivity, payload ceiling) but leaves an agent stuck when files exceed the inline limit. Filename requirements, tags, and collection behavior are left entirely to the schema.

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 contributes the mutual-exclusion rule ('exactly one of file, content_base64 or content') and per-channel size budgets. That is meaningfully more than the schema's partial note on content vs content_base64.

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?

The description opens with a specific verb and resource: upload a file into the ProteinIQ file library, and adds the downstream purpose ('for later use as a saved file input'). The action is clearly distinct from read/list/get siblings, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage context is implied ('saved file input', the one-of input rule), but there is no explicit when-to-use vs when-not guidance. Notably, large files 'cannot be sent inline' without pointing the agent at any alternative path.

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.

Resources