Skip to main content
Glama

upload-file-from-url

Idempotent

Fetches a file from a remote URL and uploads it to the wiki's File namespace. Use to add new files when upload-by-URL is enabled.

Instructions

Fetches a file from a remote web URL and uploads it into the wiki's File namespace, returning the resulting file title and URL. The upload appears in the wiki's upload log. Requires the wiki to have upload-by-URL enabled; if it is disabled, download the file locally and use upload-file instead. Fails if a file with the target title already exists. To replace an existing file with a new revision, use update-file-from-url.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the file to upload
titleYesFile title (with or without the "File:" prefix)
textYesWikitext on the file page
commentNoReason for uploading the file
Behavior1/5

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

Description contradicts annotation idempotentHint=true by stating the tool fails if the file title already exists, meaning repeated identical calls are not idempotent. This is a clear contradiction.

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?

Four well-structured sentences, each adding unique value. Front-loaded with core purpose, followed by constraints and alternatives. No redundancy.

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?

Covers core behavior, return values, prerequisites, failure conditions, and alternatives. Lacks details on size/rate limits but adequate for a standard file upload tool.

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?

Input schema covers all 4 parameters with descriptions, achieving 100% coverage. The tool description does not add significant parameter-level detail, but the schema is sufficient.

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?

Clearly states the tool fetches a file from a URL and uploads to the wiki's File namespace, returning the title and URL. Distinguishes from siblings such as update-file-from-url and upload-file.

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?

Explicitly mentions prerequisite (upload-by-URL enabled), failure condition (title exists), and provides alternatives: use upload-file for local files, use update-file-from-url for replacing existing files.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProfessionalWiki/MediaWiki-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server