Skip to main content
Glama

AdsAgent — TikTok Ads MCP

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description fully discloses critical behavioral traits: the tool is credential-free, enforces various limits (rate, concurrency, size, type, prefix), and returns either upload_endpoint or dedup_success. It also warns about what it never returns, preventing misuses. This is exceptional transparency beyond typical descriptions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but organized: first the core function, then security/constraints, then required/optional parameters, then an example. Every sentence adds value, and the example is compact. It is front-loaded with the most critical information (what it returns and never returns).

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?

Given the tool's complexity (7 params, no output schema), the description covers all essential aspects: idempotency, endpoint, authentication, constraints, and an example call. It even details the return behavior (upload_endpoint vs dedup_success). The example clarifies usage. It is complete for an agent to call correctly.

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 0%, so the description must compensate. It does by listing required parameters (filename, content_type, file_size, file_hash, idempotency_key) with constraints (1..500MB, lowercase 64-hex, etc.) and optional ones (upload_attempt, folder_id). It adds value by specifying the file_hash format and size limits, which are not in the schema. Slight deduction for not explaining content_type or folder_id semantics.

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?

The description clearly states the tool's purpose: to prepare or reconcile a tenant-owned creative upload using a credential-free contract. It distinguishes itself from siblings like creatives_request_upload by version suffix and by specifying the unique behavior (returns upload_endpoint or dedup_success). The verb 'request_upload' plus the explicit conditions make it unambiguous.

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?

The description explicitly states when to use this tool: when needing to request or reconcile an upload, with a stable idempotency_key. It also provides clear exclusions: it never returns upload_url, r2_key, or credentials, and it specifies the exact follow-up action (send bytes to the returned endpoint with Authorization header). This is more than most descriptions, making alternatives obvious.

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