Skip to main content
Glama
pebblehost-mcp
by numycode

Upload a file from a URL

upload_file_from_url
Destructive

Download a file from a public URL directly into a hosted Minecraft server folder, such as a plugin jar into plugins/. Use for binary files that text writing cannot create.

Instructions

Has the server download a file from a public URL into a folder, such as a plugin jar (LuckPerms, ViaVersion, EaglercraftXServer) into plugins/. Use this for binary files, which write_file cannot create. Returns once the download finishes; plugins load on the next restart.

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": {
      "url": "<url>"
    },
    "name": "upload_file_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesDirect download URL of the file.
serverNoServer identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set.
filenameNoFile name to save as. Defaults to the name the download provides.
directoryNoDestination folder, relative to the server root, such as "plugins". Defaults to "/"./

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false; the description adds real value beyond them by stating the call is synchronous ('returns once the download finishes') and that plugins only load on the next restart. It does not say what happens when a file of the same name already exists in the target directory, which is the key detail for a destructive write.

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 short sentences, front-loaded with what the tool does and followed by the alternative and the side-effect timing. Slightly awkward phrasing ('Has the server download a file') but no wasted sentences.

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 4-parameter mutation with no output schema, the description covers purpose, alternative, synchronous return and restart requirement, which is most of what an agent needs. The remaining gap is overwrite behavior on an existing filename and any size or authentication limits on the download.

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 100%, so url, server, filename and directory are all documented in the schema itself. The description only indirectly illustrates directory usage through the plugins/ example and adds no new meaning about url resolution, filename defaulting, or server scoping rules. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Has the server download a file from a public URL into a folder') and explicitly separates itself from write_file by naming the capability gap ('binary files, which write_file cannot create'). Concrete examples (plugin jars into plugins/) make the intent unmistakable.

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?

Gives the selecting condition against an alternative by name: use this for binary files because write_file cannot create them. The 'public URL' qualifier tells the agent which URLs qualify, and the plugin example shows the intended scenario rather than leaving it to inference.

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