Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as amz-vault. If you published it, claim ownership there.

PPC: Media upload slot

ppc_media_upload_slot
Read-only

Mint a 1-hour signed PUT slot so the ASSISTANT can upload a file it holds in its own sandbox (no browser round trip): file_name with its extension (image jpg/jpeg/png/tif/tiff up to 25MB, video mp4/mov/wmv/avi up to 100MB), optional content_type and size_bytes checked up front. PUT the raw bytes to put_url, then pass the returned staged_file_id to stage_listing_update (main_image, other_images), stage_asset_upload or stage_aplus_update. The response lists accepted_by. Videos over 100MB go through stage_asset_upload source_url 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": {
      "file_name": "<file_name>"
    },
    "name": "ppc_media_upload_slot"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_nameYes
profile_idNoWhich advertising profile (see account_profiles). Optional when the token has exactly one.
size_bytesNo
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description stays consistent with that by making clear the actual byte write happens out-of-band against put_url, not inside this call. It adds real behavioral detail the annotations cannot carry: a 1-hour expiry, per-media-type size ceilings (25MB image, 100MB video), upfront validation of content_type/size_bytes, and that the response lists accepted_by. It stops short of saying what happens if the slot expires unused or what headers the PUT requires.

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?

Purpose is front-loaded in the first clause and every later sentence carries operational content: constraints, then the PUT step, then the consumer tools, then the exclusion. The long parenthetical enumerating extensions and sizes makes it dense and slightly run-on, but no sentence is 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?

With no output schema and only 25% schema coverage, the description still covers the call sequence, the accepted formats and limits, the downstream handoff, and the large-file alternative. The residual gaps are small but real: it mentions accepted_by without explaining it, and never states the lifetime or reusable-ness of staged_file_id, which an agent needs before retrying.

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 coverage is only 25%, so the description has to compensate, and it does for three of four parameters: file_name must include its extension and conform to a jpg/jpeg/png/tif/tiff or mp4/mov/wmv/avi whitelist with matching size caps, while content_type and size_bytes are validated up front rather than at PUT time. The remaining gap is profile_id, which the schema itself documents well (see account_profiles, optional for single-profile tokens), so the description loses little.

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 a specific verb and resource: "Mint a 1-hour signed PUT slot" for the assistant's own sandbox file, with no browser round trip. It also distinguishes itself from the sibling path for oversized videos ("Videos over 100MB go through stage_asset_upload source_url instead"), so an agent can pick it apart from video_upload_slot, stage_asset_upload and ppc_asset_upload_link without opening another schema.

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?

Gives a complete workflow: call this, PUT raw bytes to put_url, then hand the returned staged_file_id to stage_listing_update (main_image/other_images), stage_asset_upload or stage_aplus_update. It also names an explicit exclusion and its replacement for files above the video size cap, which is the routing decision an agent would otherwise get wrong.

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