Skip to main content
Glama

TikTok Scripts | InayaFlow

Check a TikTok account for a drop in views

check_tiktok_view_drop
Read-only

Use this when someone asks why their TikTok views dropped, or whether the views of a public TikTok account have gone down. Input: the TikTok username. It compares the median views of the 5 newest public videos that are at least 3 days old with the median of the videos before them and says whether that is a big drop (under half of usual). The result keeps what was observed apart from possible causes: the causes are general possibilities to check, not findings. Videos from the last 3 days are left out because they are still collecting views. It only compares public view counts: it cannot see TikTok’s internal account status and does not confirm any restriction. It needs at least 8 public videos that are 3 days old or older.

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": "check_tiktok_view_drop"
  }
}

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.
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.
big_dropNotrue when the median views of the 5 newest videos that are at least 3 days old are under half of the median of the videos before them.
observedNoWhat the public numbers show. These are the facts.
change_percentNo
posting_rhythmNo
possible_causesNoGeneral possibilities to check, listed only when there is a big drop. Not findings: this data cannot show which one applies.
usual_video_viewsNo
recent_video_viewsNo
usual_median_viewsNo
recent_median_viewsNo
possible_causes_noteNo
videos_left_out_as_too_newNoVideos posted in the last 3 days, left out because they are still collecting views.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint and non-destructive, and the description adds real behavioral detail beyond them: the median-comparison method, the 3-day exclusion window and its rationale, and the explicit separation of observations from speculated causes. It stops short of describing the shape of the returned result, but with an output schema present that gap is minor.

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 use case, then method, then caveats, so an agent can stop reading early if it only needs the trigger. Some sentences are near-restatements ('Videos from the last 3 days are left out' / 'at least 3 days old'), costing a little tightness in an otherwise well-ordered block.

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?

For a one-parameter read-only analysis tool with an output schema and safety annotations, this covers everything an agent needs: trigger, input, algorithm, threshold, minimum-data requirement, and explicit non-claims about account status. Nothing material is left to inference.

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 100% and the single parameter already documents accepting a bare username, with or without @, or a tiktok.com profile link. The description reinforces that the username is public but adds no syntax beyond what the schema already carries, so it lands at the high-coverage baseline rather than above it.

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?

States a specific verb and resource: detecting a drop in views for a public TikTok account. It also spells out the exact comparison (median of the 5 newest videos at least 3 days old versus the median of earlier videos) and the drop threshold (under half of usual), so an agent can distinguish this precisely from check_tiktok_account or the growth-plan siblings without opening a schema.

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?

Opens with an explicit trigger ('when someone asks why their TikTok views dropped, or whether views have gone down') and follows with the hard precondition (at least 8 public videos 3 days old or older). It also states the limits that select against misuse: it cannot see internal account status and does not confirm a restriction.

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