Skip to main content
Glama

Upload a game asset

sekai_upload_asset
Idempotent

Upload ONE of the game's own files (an image, sound, video, 3D model or font it ships with) so the html can link it instead of inlining it. Pass the file name, its size and its sha256. Returns put_url (PUT the raw bytes, Content-Type as returned) and the url to put in the html. Accepted: gif, glb, jpg, m4a, mp3, mp4, ogg, otf, png, ttf, wav, webm, webp, woff2. The bytes must be what the extension says. Call once per file; for art Sekai already has, use sekai_search_assets instead.

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": {
      "filename": "<filename>",
      "size_bytes": "<size_bytes>",
      "content_sha256": "<content_sha256>"
    },
    "name": "sekai_upload_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
size_bytesYes
content_sha256Yes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the safety profile (not read-only, open-world, idempotent, not destructive), and the description still adds substantial context beyond that: the exact call is a two-step PUT to put_url with the raw bytes and returned Content-Type, the byte content must match the declared extension, and it must be invoked once per file. That is the kind of operational detail annotations cannot convey.

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 the action and purpose, then the invocation contract, then the accepted-extension constraints. The extension whitelist is long but genuinely necessary for correct invocation, so it earns its space; the prose is dense without filler.

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?

For a three-parameter upload tool with an output schema already present, nothing critical is missing. The description even explains the two return values (put_url and the html url) and the content-type handling, which goes beyond what an output schema alone would guarantee an agent reads.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden, and it does map all three parameters: file name, size, and sha256. It does not state the encoding or length expectation for content_sha256, which is the one remaining ambiguity, but the correspondence between description and schema is otherwise complete.

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?

A specific verb (upload) plus a specific resource (one of the game's own shipped files), with the downstream effect spelled out (so the html can link it instead of inlining it). It also names the sibling it is not for ('for art Sekai already has, use sekai_search_assets instead'), so an agent can separate it from neighbors without reading the schema.

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?

Explicit usage is given: 'Call once per file' and the negative case routing to sekai_search_assets. It does not, however, mention how this relates to sekai_create_upload or sekai_finalize_upload, which are plausibly adjacent workflow steps, so the alternative-routing is clear but not exhaustive.

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