Skip to main content
Glama

prepare_media_upload

Prepares a signed upload URL for a local file. Upload the file bytes to that URL, then use the returned media asset ID to generate a 3D world.

Instructions

Prepare a signed GCS upload URL for a local file.

After calling this, PUT the raw file bytes to upload_info.upload_url with the returned upload_info.headers, then pass media_asset.id to generate_world_from_media_asset. For a simpler flow, use upload_and_generate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_nameYesOriginal filename (e.g. 'photo.jpg').
kindYes'image' or 'video'.
extensionYesFile extension without dot (e.g. 'jpg', 'mp4').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations provided; description fully discloses behavior: generates signed URL, requires subsequent PUT, and passes media_asset.id to another tool. No hidden side effects.

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?

Three sentences only: purpose, follow-up steps, alternative. No repetition, all text earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return values are covered. Description mentions key outputs (upload_info, media_asset.id) and provides complete workflow for a preparation 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?

Schema covers all parameters with descriptions (100% coverage). Description adds no additional parameter meaning beyond schema.

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 specific verb 'Prepare' and resource 'signed GCS upload URL for a local file', clearly distinguishing from sibling 'upload_and_generate' by mentioning simpler flow.

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 describes when to use (preparatory step) and when not to (simpler flow via upload_and_generate), plus provides step-by-step instructions for correct invocation.

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/sandraschi/worldlabs-mcp'

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