Skip to main content
Glama
Fileport

Fileport

Official

Remove Files

remove_files
Destructive

Remove selected files from an existing upload by their index from get_upload, ensuring at least one file remains in the upload.

Instructions

Removes files from an upload by their index from get_upload. An upload keeps one file at least.

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": {
      "id": "<id>",
      "indices": "<indices>"
    },
    "name": "remove_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe upload's id, the end of its link
indicesYes

Output Schema

NameRequiredDescriptionDefault
idYes
linkYes
nameYes
sizeYesBytes
tagsNo
albumNo
filesYesThe first 100 files
viewsNoPhotobooks only
expiryNo
productYes
finishedYesWhether every file arrived
passwordNo
createdAtNo
downloadsNoSend uploads only
expiresAtYes
fileCountYes
descriptionNo
expireAfterDownloadNo
notifyAfterDownloadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds a genuine invariant beyond the annotations: 'An upload keeps one file at least', which warns the agent that removing the last file will fail. It does not state whether removal is permanent or what happens with duplicate/out-of-range indices.

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?

Two short sentences, no filler, with the operation stated first and the invariant second. Every clause carries information the agent needs.

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?

An output schema exists, so return values need not be explained, and the destructive nature is covered by annotations plus the one-file invariant. For a destructive 2-parameter mutation, the remaining gaps (permissions, multi-index ordering semantics) are modest but real.

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 coverage is 50%: 'id' is documented as 'the end of its link' while 'indices' has no description. The description partially compensates by explaining indices are obtained from get_upload and relating them to file positions, but it never clarifies index base, ordering behavior, or whether indices shift between removals in a single call.

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 uses a specific verb and resource ('Removes files from an upload') and scopes the operation to file-level removal rather than upload-level deletion, which implicitly separates it from delete_upload. It does not name any sibling explicitly, so the differentiation is inferred rather than stated.

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?

It supplies a real usage prerequisite by telling the agent that indices come 'from get_upload', which is actionable context for constructing the call. It stops short of explicit when/when-not guidance, e.g. that delete_upload should be used to remove the whole upload or that add_files is the inverse operation.

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