Skip to main content
Glama

Studio: send an image or clip

studio_enviar_midia

Adds one of the user’s own files to a project, to use in scripts as "midia/". Images: JPEG, PNG, WebP or GIF up to 15 MB (best at the video’s size: 1920×1080 for 16:9, 1080×1920 for 9:16). Clips and the user’s own recordings (presenter "video"): MP4 or WebM up to 80 MB (720p is plenty; phone video works). With url (a public https link straight to the file) it is fetched now. Without it, returns a single-use upload link valid ~15 min in two forms: a page on avatar.diatech.solutions where the user drags the file in the browser (show that page to users of ChatGPT, claude.ai or any chat without a shell), and a PUT URL for agents with a shell (curl -X PUT -H 'Content-Type: video/mp4' --data-binary @file '', with the file's own type). Same name again replaces the file. Only send what the user owns or may use. Free.

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": {
      "projeto": "<projeto>",
      "nome": "<nome>"
    },
    "name": "studio_enviar_midia"
  }
}

Input Schema

NameRequiredDescriptionDefault
deNoReuse a file the user already sent to another of their projects (copied, nothing to upload): { projeto, nome } from studio_listar_midias with todas: true.
urlNoPublic https link straight to the file (optional; without it you get an upload URL).
nomeYesFile name with extension, kebab-case (e.g. 'versiculo-01.jpg', 'esboco.mp4').
projetoYesProject slug, from studio_listar_projetos.
languageNoAlways pass it: the language the user is writing in right now, as a BCP-47 tag (e.g. 'en', 'en-US', 'pt-BR', 'es'), not the app's interface language. Replies, prices and the card follow it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / language / description
      Previous value: -"The user's language as a BCP-47 tag (e.g. 'en', 'en-US', 'pt-BR', 'es'). Replies and prices follow it."New value: +"Always pass it: the language the user is writing in right now, as a BCP-47 tag (e.g. 'en', 'en-US', 'pt-BR', 'es'), not the app's interface language. Replies, prices and the card follow it."
  2. Changed1 schema field changed
    • addedInput schema / properties / de
      Added value: +{
      +  "description": "Reuse a file the user already sent to another of their projects (copied, nothing to upload): { projeto, nome } from studio_listar_midias with todas: true.",
      +  "properties": {
      +    "nome": {
      +      "maxLength": 70,
      +      "type": "string"
      +    },
      +    "projeto": {
      +      "maxLength": 60,
      +      "minLength": 1,
      +      "pattern": "^[a-z0-9][a-z0-9-]{0,59}$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "projeto",
      +    "nome"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false, so the description carries most of the burden and does it well: file-size and format limits, link validity (~15 min, single-use), the fact that `url` is fetched immediately, and that reusing a name replaces the file. That replacement behavior is a mild tension with destructiveHint=false and worth surfacing, but it is disclosed rather than hidden.

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?

Front-loaded with purpose and constraints, then the two upload modes side by side; the curl example earns its space by making the PUT path unambiguous. It is dense but not padded, though the parenthetical sizing advice ("720p is plenty") is close to filler.

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 5-parameter mutation with a nested reuse object and no output schema, the description covers formats, size ceilings, fetch-vs-upload branching, return values (two upload link forms), and overwrite semantics. Only the `de` copy path and `language` are left entirely to the schema, which is acceptable given full schema coverage.

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 documented, and the description adds only a little — mainly the meaning of `url` (public https link straight to the file) and the `midia/<nome>` destination name. The `de` reuse object and `language` are not discussed at all in the prose, so the baseline 3 applies.

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?

"Adds one of the user's own files to a project, to use in scripts as 'midia/<nome>'" is a specific verb plus resource with the resulting naming convention spelled out. It is clearly distinct from siblings like studio_listar_midias or studio_baixar, which are listing/download tools.

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?

Gives concrete routing advice: pass `url` when a public https link exists, otherwise use one of the two returned upload paths, with the browser page explicitly targeted at chat environments without a shell and the PUT URL at agents with a shell. It does not explicitly say when to prefer another tool (e.g. `de` reuse vs a fresh upload is left to the schema), so it stops just short of full alternative coverage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources