Skip to main content
Glama

publish_file

Upload a file from a URL to BrewPage and receive a shareable link and owner token. Set an optional filename, namespace, or delivery mode for the publication.

Instructions

Upload a file to BrewPage via URL. Repository defaults: 5 MiB for files/audio, 20 MiB for video. Returns its primary share link and owner token. Does not expose password or TTL inputs.

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the file to upload
filenameNoCustom filename (optional)
namespaceNoOptional. Omit to generate an unlisted namespace: anyone with its unpassworded link can read it, but it is excluded from gallery/search. Pass a custom namespace to group unlisted content, or pass `public` ONLY when the user explicitly wants gallery/search eligibility. Password-protected content stays excluded; unlisted, protected or otherwise ineligible native responses carry noindex; eligible public HTML, sites and files may permit indexing.
deliveryModeNoOptional delivery choice for a fresh publication, independent of password/namespace. Fresh sites and HTML-format pages outside public (including the default unlisted namespace) always use subdomain; an explicit path there still publishes, on subdomain, with a delivery notice. Everything else in any namespace (Markdown, code/text, files, JSON, KV, public HTML) defaults to path (Promotion); public HTML may automatically choose subdomain for browser features. When creation returns an existing publication, it keeps its actual mode and URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real value: size caps (5 MiB files/audio, 20 MiB video), what gets returned (share link and owner token), and the absence of password/TTL inputs. It does not disclose auth requirements, overwrite/idempotency behavior on repeat uploads, or failure modes, leaving meaningful gaps for a mutating tool.

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?

Four short sentences, front-loaded with the core action, then limits, then return values, then scope boundaries. No filler, though the return-value sentence is somewhat compressed compared to the afterthought phrasing of the last sentence.

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?

No output schema exists, so the description's mention of the primary share link and owner token is necessary and present. Combined with the 100%-covered input schema, the definition covers enough to call the tool correctly, with the only gap being permission/auth expectations.

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 description coverage is 100%, so the parameters are already well documented, and the baseline of 3 applies. The description adds the size-limit context and the explicit exclusion of password/TTL options, but nothing about how filename or namespace affect the result beyond what the schema says.

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 ('Upload a file to BrewPage via URL'), which cleanly separates it from publish_site, publish_html, publish_json, and publish_kv by naming the resource type. It does not explicitly name a sibling or exclusion, so it stops short of 5.

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 is implied by 'upload a file via URL', and the note that password/TTL inputs are not exposed signals a scope boundary. However there is no explicit 'use this instead of publish_site when...' guidance and no stated prerequisites, so the agent must infer selection from the resource noun.

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