Skip to main content
Glama

CMO Studio: deploy and host AI-built apps

Finish direct upload

finish_direct_upload

After a direct upload: Studio checks the size against what was announced and the storage left, then puts the file at its path.

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": {
      "project": "<project>",
      "bucket": "<bucket>",
      "uploadId": "<uploadId>"
    },
    "name": "finish_direct_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketYesBucket name
projectYesProject slug
uploadIdYesuploadId from get_direct_upload_url

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare it a non-read-only, non-destructive, open-world mutation, and the description adds real substance on top: a size check against the announced value and against remaining storage, followed by placement at the file's path. It does not say what happens when validation fails (rejection vs. partial write) or whether the call is idempotent, which are the remaining behavioral gaps.

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?

A single compact sentence with the precondition front-loaded before the two actions, and no filler. The colon construction is slightly clipped and the subject 'Studio' is informal, but nothing is wasted.

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?

With three well-documented required parameters, no output schema, and annotations covering the mutation profile, the essentials are present. However, for a write operation that can fail validation, the description omits the failure mode and does not indicate what the call returns (e.g., the resulting file record), leaving a meaningful gap.

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 all three parameters (project, bucket, uploadId) are already documented, including that uploadId comes from get_direct_upload_url. The description's reference to an 'announced' size does not map to any parameter and adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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 names a specific operation on a specific resource: it finalizes an upload by validating size against the announced value and remaining storage, then placing the file at its path. An agent can distinguish this from get_direct_upload_url, which only produces the URL, though the 'finish' verb itself appears only in the tool name, not in the description text.

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?

'After a direct upload' establishes a clear precondition and ordering relative to the sibling that issues the upload URL. It does not explicitly name an alternative or state when not to use it, but the sequencing context is unambiguous for this workflow step.

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.