Skip to main content
Glama

AdsAgent — TikTok Ads MCP

Prepare a versioned creative upload

creatives_request_upload_v2

Prepare or reconcile one tenant-owned creative upload using the credential-free P9 contract. Requires a stable idempotency_key and returns upload_endpoint=/api/upload/proxy when bytes are needed, or dedup_success only for a storage-verified ready object. Never returns upload_url, r2_key, provider credentials, or raw tenant identifiers. Send the multipart bytes to that same-origin endpoint with the same Authorization: Bearer <MCP token> header; the endpoint enforces mcp.launch.prepare, tenant ownership, rate limits, concurrency, size, type and R2-prefix checks.

REQUIRED: filename, content_type, file_size (1..500MB), lowercase 64-hex file_hash, idempotency_key. Optional: upload_attempt (1..3, default 1), folder_id. EXAMPLE: creatives_request_upload_v2({"filename": "hero.mp4", "content_type": "video/mp4", "file_size": 12345678, "file_hash": "", "idempotency_key": "upload-20260723-example", "upload_attempt": 1})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
file_hashYes
file_sizeYes
folder_idNo
content_typeYes
upload_attemptNo
idempotency_keyYes
connection_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=false, destructiveHint=false): it discloses the idempotency requirement, the exact return branches, explicit negative scope ('never returns upload_url, r2_key, provider credentials, or raw tenant identifiers'), the required Authorization header, and the server-side enforcement set (mcp.launch.prepare, tenant ownership, rate limits, concurrency, size, type, R2-prefix checks). This is exactly the operational context an agent needs beyond the safety hints.

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 core purpose and the idempotency requirement, then negative scope, then the follow-up mechanics and the example. Dense but every sentence carries substantive information; the final enforcement list is long but load-bearing rather than 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?

With no output schema and only sparse annotations, the description compensates by documenting both return branches, the follow-up HTTP step, auth requirements, and enforcement behavior. An agent has everything needed to invoke it correctly and route the resulting bytes.

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

Parameters5/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 full burden and does: file_size range (1..500MB), file_hash format (lowercase 64-hex), upload_attempt range (1..3, default 1), idempotency_key stability requirement, plus a concrete worked example. Only connection_context is left unexplained, a minor omission given the exhaustive coverage of the real inputs.

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?

States a specific verb+resource: prepare or reconcile a tenant-owned creative upload. It clearly scopes the operation as a pre-upload step versus a byte transfer. It does not explicitly differentiate from the v1 sibling 'creatives_request_upload' or route to 'creatives_confirm_upload', so it falls short of full sibling disambiguation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the described lifecycle (call this first, then POST bytes to the returned endpoint), and it describes the two return branches (upload_endpoint when bytes are needed vs dedup_success for a ready object). However, it never names an alternative tool or states when-not to use this, so the agent must infer the flow position from the sibling list.

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