Skip to main content
Glama

Email Me When a Profile Goes Viral

create_viral_alert

Creates a viral alert: we watch a TikTok, Instagram or YouTube profile and email the address you give when it publishes a post whose outlier score (views divided by the profile's own average) reaches minOutlierScore (default 3, minimum 1.5) within postAgeDays of posting (default 7, max 30). Identify the profile by profileId, platform+handle, or a public URL; it must already be in the database (crawl_profile it first if not). Setting up, listing and deleting alerts is free. Two things cost credits: the refresh crawl that keeps the profile fresh (10 credits per run, daily by default, started for you if you are not already monitoring the profile with track_profile) and each alert email actually sent (5 credits). Limits: one alert email per destination address per day, sent around sendHour in your timezone (defaults 9, UTC) and bundling every alert that fired; 3 emails per alert in total, after which the alert ends; expiresInDays (default 30, max 90) ends it regardless; 25 active alerts per account. A post can trigger an alert only once. Your account email needs no confirmation; any other address receives a confirmation link first and nothing is sent until it is clicked. Every alert email has its own stop link. Calling again for the same profile and address updates the settings instead of creating a duplicate. Cost: free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic profile or post URL identifying the profile
emailYesWhere to send the alert. Your account email needs no confirmation; any other address gets a confirmation link first
handleNoPublic handle, without @ (pair with platform)
platformNoWith handle: resolve the profile to watch
sendHourNoPreferred hour of day for the email, 0-23 (default 9)
timezoneNoIANA timezone for sendHour, e.g. Europe/Brussels (default UTC)
frequencyNoRefresh cadence for the profile if tracking is started by this alert (default daily)
profileIdNoInternal profile id from search results
postAgeDaysNoOnly posts published within this many days can trigger (default 7, max 30)
scoreWindowNoWhich profile average the score is measured against (default three_months)
expiresInDaysNoThe alert ends after this many days (default 30, max 90)
minOutlierScoreNoTrigger at this outlier score or above (views / the profile average; default 3, minimum 1.5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

The description goes far beyond annotations. It details the credit costs, email limits (one per day, 3 total), confirmation requirements for external emails, stop links, idempotent update behavior, and expiration rules. This covers all the operational behaviors an agent needs to understand consequences before calling.

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 very long (over 250 words), covering many nuances. While every detail is relevant, it could be more succinct by grouping related constraints. The core purpose is stated upfront, but the volume of edge cases (limits, costs, confirmation) makes it heavy. Not excessively verbose but borderline.

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 complexity (12 params, no output schema, cost implications, lifecycle rules), the description covers nearly all possible failure modes and edge cases: prerequisites, cost model, idempotency, limits, timezone handling, confirmation flow, and update behavior. It is remarkably comprehensive.

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%, so the schema already documents each parameter. However, the description adds significant value by explaining defaults (3/1.5 for minOutlierScore), relationships between parameters (profileId, URL, handle+platform are alternatives), and the meaning of scoreWindow. It doesn't fully explain every parameter interaction, so 4 rather than 5.

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 creates a viral alert that watches a social media profile and emails when a post's outlier score exceeds a threshold. It distinguishes from related tools like track_profile and crawl_profile by explicitly mentioning them as prerequisites/alternatives, and from delete_viral_alert/list_viral_alerts which are the lifecycle counterparts.

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?

Provides extensive when-to-use guidance: explains the tool is for setting up alerts, identifies prerequisites (profile must be crawled first), explains cost implications, and contrasts with track_profile and crawl_profile. It also covers update behavior (calling again updates settings) which is crucial for correct invocation.

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