Skip to main content
Glama

TikTok Scripts | InayaFlow

Posting times for a TikTok account

get_tiktok_posting_times
Read-only

Use this when someone asks for the best time to post on TikTok for their account, or when a specific public TikTok account should post. Input: the TikTok username, and optionally the creator’s time zone. It reads the account’s recent public videos and returns, for each 3-hour window and each weekday in which the account posted, how many videos were posted and their median views against the account’s typical views, plus the window with the highest median when at least two windows hold 2 or more videos. When the niche is clear from the captions, it adds when other creators’ stored posts in that niche were posted, as a secondary signal. It only compares past posting times with public view counts: it cannot see when followers are online, and a few videos are a weak signal. 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_posting_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
usernameNoRequired. The public TikTok username to read, as text, with or without @ (for example nasa), or a tiktok.com profile link.
time_zoneNoOptional. The creator’s time zone as an IANA name, for example America/New_York. Leave out to use UTC. Text.

Output Schema

NameRequiredDescriptionDefault
linkYesThe matching page on inayaflow.ai.
notesNo
limitsNo
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.
time_zoneNoThe clock the windows are on. UTC when no time zone was given.
days_of_weekNo
time_windowsNoEach 3-hour clock window in which this account posted: how many of the counted videos, their median views, and that median against the account’s typical views.
typical_viewsNo
videos_countedNoRecent public videos at least 3 days old with a date and a view count.
niche_post_timesNoOnly when the niche is clear from the captions and stored posts exist: when OTHER creators’ stored posts in that niche were posted. A secondary signal.
most_posted_windowNoThe 3-hour clock window (the same windows as time_windows) in which the account posts most often. `of` counts every dated recent video, the ones under 3 days old too.
highest_median_windowNoThe window with the highest median views among windows holding 2 or more videos. null when fewer than two windows hold 2 or more videos. Something to test, not a finding about followers.
videos_left_out_as_too_newNo

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 establish read-only, open-world, non-destructive, so the bar is lower, yet the description still adds substantive behavior: it reads recent public videos, augments with stored niche posts from captions as a secondary signal, and explicitly disclaims that it cannot see follower online times and does not predict views. The 'few videos are a weak signal' caveat is exactly the kind of confidence framing an agent needs before presenting results.

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 and input, then the return shape, then caveats — a sensible order. It runs long with several clauses, but nearly every sentence carries decision-relevant information (niche signal, limitations); only the final 'does not predict' line overlaps slightly with the earlier weakness caveat.

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 an output schema present, the description needn't specify return fields, and it still summarizes the aggregation logic and the top-window rule. For a two-parameter read-only analysis tool it covers triggers, inputs, semantics, secondary signals, and limitations — nothing an agent needs to call it correctly is missing.

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 both parameters are already fully documented, including the @-optional username and IANA time zone formats. The description's 'Input: the TikTok username, and optionally the creator's time zone' merely restates the schema without adding format, default, or edge-case detail, so the baseline 3 applies.

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 a specific resource (posting times for a TikTok account) and a concrete output shape: video counts and median views per 3-hour window and weekday, benchmarked against the account's typical views. That is far more precise than the title and lets an agent distinguish it from siblings like check_tiktok_account or get_tiktok_growth_plan.

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 opens with an explicit trigger: use when someone asks for the best time to post for their account, or for a specific public account. It adds boundary conditions (public accounts only, past posting times vs. public views) but never names a sibling tool as the alternative path, so routing between this and the growth/trend tools is left partly to inference.

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