Skip to main content
Glama

TikTok Scripts | InayaFlow

TikTok scripts, hooks, captions and ideas for an account

get_tiktok_script_and_hook_inputs
Read-only

Use this when someone asks for a TikTok script, a viral TikTok script, hooks or opening lines, a caption, a title, or video and content ideas for a specific public TikTok account. Input: the TikTok username. It reads that account’s recent public videos and returns the ones with the most views (up to 5) and the ones with the fewest, each with how it compares to the account’s typical (median) views, their captions and opening lines, the hashtags used and the posting rhythm, plus a writing method with 7 hook types. When the niche is clear from the captions, it adds a few recent public posts from other creators in that niche (a stored weekly sample). The scripts, hooks, captions or ideas are then written from this data. Public data only: it cannot read private accounts, watch time or the words spoken inside a video. It does not predict or promise views.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_tiktok_script_and_hook_inputs"
  }
}

Input Schema

NameRequiredDescriptionDefault
usernameNoRequired. The public TikTok username to read, as text, with or without @ (for example nasa), or a tiktok.com profile link.

Output Schema

NameRequiredDescriptionDefault
linkYesThe matching page on inayaflow.ai.
limitsNo
methodNoHow to write the scripts, hooks, captions and ideas from this data.
statusYesok, or the plain reason there is no result (not_found, private, no_videos, videos_unavailable, not_enough_videos, invalid_input, unknown_niche, niche_needed, no_data, rate_limited, paused, off, busy, unavailable).
accountNo
messageYesOne or two plain sentences that say what was found or what went wrong.
top_videosNoThe recent public videos with the most views, highest first (up to 5). times_typical on each shows how it compares with typical_views; it can be under 1.
videos_readNo
lower_videosNoThe recent public videos with the fewest views, for contrast.
niche_trendsNoOnly when the niche is clear from the captions and stored posts exist: up to 4 recent public posts by OTHER creators in the same niche (a stored weekly sample), for topic and format ideas next to the account’s own videos.
hashtags_usedNo
typical_viewsNoMedian views of the recent public videos that were read.
posting_rhythmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare it read-only and non-destructive, yet the description adds substantial behavior: it returns up to five top and five bottom videos with median-view comparisons, captions, opening lines, hashtags and posting rhythm, appends a stored weekly sample of posts from other creators in the same niche, and explicitly disclaims private accounts, watch time, in-video speech and view prediction. That is well beyond what the annotations convey.

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?

It is front-loaded with the trigger condition and then moves to inputs, outputs and limits in a logical order. It runs long and repeats the script/hook/caption enumeration twice (at the start and near the end), which is slightly wasteful but the remaining sentences each carry real information.

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 one parameter, an output schema and full annotations, the description covers the trigger, the data read, the return contents, the niche-sample behavior and the accuracy boundaries. An agent has everything needed to decide to call it and to set expectations about results.

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% and the single username parameter already documents the @-optional and profile-link formats. The description adds only the framing that it must be a specific public account, which is minor added meaning rather than new syntax or constraints.

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 names the concrete trigger intents (TikTok script, viral script, hooks, opening lines, caption, title, video ideas) and the concrete action: reading a public account's recent videos and returning top/bottom-view posts with median comparisons. The 'Use this when someone asks for a TikTok script... for a specific public TikTok account' framing makes it distinguishable from check_tiktok_account or get_tiktok_growth_plan without opening any schema.

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?

It gives an explicit when-to-use trigger and clear scope limits (public accounts only, no watch time, no spoken words, no view predictions). It does not name sibling tools or say when to prefer get_tiktok_growth_plan or check_tiktok_account instead, so the routing is implied rather than complete.

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