Skip to main content
Glama

yoto_media_upload_begin

Idempotent

Starts an audio upload by checking whether Yoto already has the file's SHA-256 hash; if not, returns an upload URL to PUT the audio before waiting for completion.

Instructions

Start an audio upload. exists: true means Yoto already has these bytes (no PUT needed).

Otherwise PUT the file to upload_url (bin/yoto-upload does this), then call yoto_media_upload_wait.

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": {
      "sha256": "<sha256>",
      "filename": "<filename>"
    },
    "name": "yoto_media_upload_begin"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256Yes
accountNo
filenameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description adds genuinely new information beyond them: that the operation is content-addressed by sha256, that a true `exists` means the PUT can be skipped, and that the flow is deliberately split into begin/PUT/wait.

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 lines, front-loaded with the action and immediately followed by the next-step instructions. Nothing is redundant, though the inline backticked identifiers and parenthetical CLI reference make it read like a terse note rather than a fully structured description.

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

Completeness3/5

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

An output schema exists, so return values needn't be documented, and the description explains the one field (`exists`) that changes caller behavior. However, for a three-parameter mutation entry point with zero schema coverage, leaving filename and account unexplained and not naming the alternative wrapper tool leaves the definition short of complete.

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 0%, so the description must carry parameter meaning. It implies sha256 identifies the byte content for dedup and clarifies the `exists` result field, but filename and account receive no explanation at all, leaving a real compensation gap.

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?

The description opens with a specific verb and resource ('Start an audio upload') and describes the content-addressed dedup step plus the follow-up call to yoto_media_upload_wait in the sibling list. It does not state how this differs from the sibling yoto_media_upload_file, which presumably wraps the whole flow, so sibling differentiation is only partial.

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?

It gives an explicit procedural ordering: call this first, then PUT to upload_url or skip the PUT when `exists: true`, then call yoto_media_upload_wait. It stops short of saying when to prefer this multi-step path over the higher-level yoto_media_upload_file sibling.

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