Skip to main content
Glama
tokportal

tokportal-mcp

Official
by tokportal

tokportal_create_video_ad_code_request

Request a TikTok Spark Code or Instagram Partner Code for a finalized video. Debits 7 credits and creates an atomic task for your manager; poll the GET endpoint to retrieve the code after submission.

Instructions

Request an ad code (TikTok Spark Code / Instagram Partner Code) for a finalized video. Requests an ad code (TikTok Spark Code or Instagram Partner Code) for one finalized video and debits 7 credits. The video must be finalized on TikTok or Instagram with a live post link. Active TokPortal Coverage and a routable active account manager are required. TokPortal uses the account's current active manager, then its still-active manager relationship, then eligible non-cancelled order history. Completed bundles remain eligible without a delivery-age limit; cancelled orders are never restored. Assignment, debit, and task creation are atomic. Only one open request per video is allowed. Poll the GET endpoint to retrieve the code once the manager submits it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesVideo ID.
bodyYesJSON request body.
idempotency_keyNoOptional Idempotency-Key header for safe retries.
Behavior5/5

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

The description goes far beyond the basic annotations (which only indicate non-readOnly, non-destructive, non-idempotent). It discloses that 7 credits are debited, the operation is atomic (assignment, debit, task creation), the routing logic for managers, eligibility rules for completed bundles, and the necessity to poll the GET endpoint. No contradictions with annotations exist.

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

Conciseness3/5

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

The description is dense and covers many operational details, but it is somewhat verbose. For example, the paragraph on manager routing and eligibility could be shortened without losing clarity. While the core purpose is front-loaded, the extra details increase length beyond what is strictly necessary for a tool description.

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?

Given a nested input schema, 3 parameters, and no output schema, the description compensates well by explaining side effects (credit debit, atomicity), constraints (one request per video), and post-request actions (poll GET endpoint). It does not describe the return value, but that is acceptable since there is no output schema. Overall, it provides sufficient context for correct usage.

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 coverage is 100%, so baseline is 3. The description does not add significant meaning beyond the schema for the parameters themselves. It mentions platforms (TikTok/Instagram) but the schema already describes them with an enum. The idempotency_key is not elaborated. Overall, the description adds no new semantic value for parameters.

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 main action: 'Request an ad code (TikTok Spark Code / Instagram Partner Code) for a finalized video.' It names the specific resources (ad code, video) and the action (request). Among siblings, there is a separate GET endpoint for ad code requests, making this the sole creation tool, so sibling differentiation is implicit.

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?

The description explicitly lists prerequisites: video must be finalized with a live post link, active TokPortal Coverage, and a routable account manager. It also restricts to one open request per video. While it does not name alternative tools for non-finalized videos (e.g., bundling or finalization), the prerequisites serve as clear usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tokportal/langchain-tokportal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server