Skip to main content
Glama

Create Monitor

monitor-create

Create a monitor: a search that reruns on a schedule over web, X, Reddit, YouTube, Threads, TikTok, and Meta Ad Library ads (or watches up to 10 X, TikTok, Threads, or Instagram users, subreddits, YouTube channels, or Facebook pages per source, and up to 10 TikTok or Instagram hashtags) and keeps only the new items that match. Returns the monitor (monitor_id, settings, max_run_cost_usd, next_run_at) and, when webhook_url is set, webhook_secret, which is shown only here. With run_now (the API default) the first run is queued at once and billed when it ends; set run_now false to wait for the schedule. Creating, reading, changing, and deleting monitors is free. Each run is billed when it ends: its searches at their list price (TikTok, Instagram, Facebook, and Meta ads per read, $3.00 per 1,000 reads ($0.003 a read), whatever the number of posts: one read per watched account, hashtag, or Facebook page, per TikTok keyword search, and per Ad Library search; an empty or private TikTok account takes two reads, so the hold counts two per TikTok account; a watched X account about $0.003, its 20-post timeline; a watched subreddit, YouTube channel, or Threads account $0.00207 each; ten watched accounts cost about ten searches), AI screening at $0.05 per 1,000 new items screened, and the summary's LLM usage plus 50% when summary is on. A run with no new items still pays for its searches. While a run is queued or running, its most (max_run_cost_usd) is held on the balance; it is billed what it used and the rest is released. A run that cannot be held fails with insufficient_credits and pauses the monitor. Use monitor-estimate for the cost of a configuration. Each run searches its sources inside a window that starts where the previous run ended (or, for a source with watched accounts or hashtags, reads each feed's newest posts), drops everything the monitor has already seen, and screens the new items with an AI classifier: relevant (about what the query watches), new_info (news rather than an evergreen page), and one yes/no question per criterion. score is the lowest of relevant and the criteria x 100; an item is kept at min_score (0 keeps every new post). Read kept items with monitor-items or monitor-run; with a webhook they are also POSTed to it, signed with webhook_secret. TikTok search has no working date filter and ranks by relevance, so a TikTok keyword monitor finds a new video only when it reaches TikTok's top results; to follow creators or a tag, watch their accounts (tiktok_accounts) or the hashtag (tiktok_hashtags). 'instagram' and 'facebook' have no keyword search: they read only watched feeds, so a monitor with 'instagram' needs instagram_accounts or instagram_hashtags and one with 'facebook' needs facebook_pages, or the API answers 422. Facebook has no organic hashtag feed. 'meta_ads' searches the Meta Ad Library with the query, so write the query as keywords (a brand, product, or short phrase such as 'ChatGPT'); a sentence finds nothing. An ad counts as new the first time a run sees it if it started within the last 30 days, and ads are screened with their own relevance question and no new_info. Threads keyword search returns loosely matched posts, so watch accounts there (threads_accounts). Limits: 25 monitors per account (409 too_many_monitors); 402 when the balance cannot hold one run, even with run_now false.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "monitor-create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA label for the console and webhook deliveries.
queryYesWhat to watch, in plain words (3-500 characters). Each source is searched with it. Example: 'Bittensor subnet launches and updates'. With 'meta_ads', use keywords (a brand, product, or short phrase such as 'ChatGPT'): the Ad Library finds nothing for a sentence.
x_langNoOnly X posts in this language, example: 'en'. Sent as options.x.lang.
run_nowNoQueue the first run at once (API default true; billed when it ends). False waits for next_run_at.
sourcesNoWhere to look: any of 'web', 'x', 'reddit', 'youtube', 'threads', 'tiktok', 'instagram', 'facebook', 'meta_ads' (API default ['web', 'x']). Each run searches each source once, or reads its watched accounts and hashtags (x_accounts, reddit_subreddits, youtube_channels, tiktok_accounts, tiktok_hashtags, threads_accounts, instagram_accounts, instagram_hashtags, facebook_pages). 'instagram' and 'facebook' only read watched feeds: 'instagram' needs instagram_accounts or instagram_hashtags and 'facebook' needs facebook_pages (422 otherwise). 'meta_ads' searches the Meta Ad Library (ads) with the query as keywords.
summaryNoWrite a short digest of the items each run keeps (API default false). Billed as its LLM usage plus 50%.
x_countNoNewest X posts read per run (1-100, API default 20). Not used with x_accounts (a timeline page is 20 posts). Sent as options.x.count.
criteriaNoUp to 5 conditions a new item must meet to be kept, each up to 300 characters, example: ['Announces a new subnet, release or partnership']. Each is one yes/no question in the screen.
intervalNoHow often it runs: '1h', '3h', '6h', '12h', '1d' (API default), or '7d'. Each run is billed.
metadataNoYour own labels, example: {"team": "growth"}. Up to 20 keys of 1-64 characters; values are strings of up to 500 characters. Echoed in webhook deliveries; the monitor does not use them.
min_scoreNoScore (0-100) an item needs to be kept (API default 60). The score is the lowest of relevant and each criterion.
web_countNoWeb pages read per run: 10 (API default), 15, or 20. Sent as options.web.count.
x_accountsNoUp to 10 X usernames (1-15 characters) to watch, example: ['OpenAI', '@sama', 'https://x.com/opentensor']. With accounts, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. x_lang and x_min_likes still filter the timelines. Sent as options.x.accounts.
webhook_urlNoHTTPS URL on a public address that receives new items as signed POSTs (redirects are not followed). A new or changed URL gets a new webhook_secret, returned only in this response.
x_min_likesNoOnly X posts with at least this many likes. Sent as options.x.min_likes.
tiktok_countNoTikTok posts read per run: 10 (API default), 20, or 30; per account and per hashtag with tiktok_accounts or tiktok_hashtags. Billed per read, not per post (see the billing note). Sent as options.tiktok.count.
facebook_pagesNoFacebook pages to watch, 1-10: a page name, a numeric page ID, or a page URL (profile.php?id=... and /pages/Name/123... URLs are read as the ID), example: ['NASA', '100064869009429']. Required with the 'facebook' source, which has no keyword search or hashtag feed and reads only these pages (422 without any); for ads by keyword use the 'meta_ads' source. Each run reads up to 10 newest posts per page; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Each page is one read per run ($0.003), whatever the number of posts. Sent as options.facebook.pages.
meta_ads_countNoMeta Ad Library ads read per run with the 'meta_ads' source: 10 (API default), 20, or 30. The search is one read per run ($0.003), whatever the count. The Ad Library is searched with the query as keywords (a brand, product, or short phrase). Sent as options.meta_ads.count.
webhook_eventsNoEvents sent to webhook_url: 'monitor.items.found' (a run kept at least one item), 'monitor.run.completed' (every completed run), 'monitor.run.failed'. API default ['monitor.items.found', 'monitor.run.failed']. Needs webhook_url.
tiktok_accountsNoUp to 10 TikTok usernames to watch, example: ['openai', '@tiktok']. With accounts, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Sent as options.tiktok.accounts.
tiktok_hashtagsNoUp to 10 TikTok hashtags to watch, in any script, example: ['skincare', '#სილამაზე', 'https://www.tiktok.com/tag/skincare']. A hashtag feed lists popular posts before recent ones from any account, so it finds posts outside the watched accounts, and since a new post can reach it days late, a run keeps the hashtag posts from the last 7 days that the monitor has not seen; with accounts or hashtags, the source reads those feeds each run instead of searching by keyword, and the query and criteria still decide what is kept (min_score 0 keeps every new post). Hashtags are sent as given and the API returns them without # (a tag URL becomes its tag); one it cannot read is a 422. Each hashtag is one read per run ($0.003), whatever the number of posts. Sent as options.tiktok.hashtags.
threads_accountsNoUp to 10 Threads usernames to watch, example: ['zuck', '@mosseri', 'https://www.threads.com/@zuck']. Threads keyword search returns loosely matched posts, so accounts work better. With accounts, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Each account is one request per run ($0.00207). Sent as options.threads.accounts.
youtube_channelsNoUp to 10 YouTube channels to watch: an @handle, a UC... channel ID, or a channel URL, example: ['@OpenAI']. With channels, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Sent as options.youtube.channels.
reddit_subredditsNoUp to 10 subreddits to watch, example: ['LocalLLaMA', 'r/bittensor_']. With subreddits, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Sent as options.reddit.subreddits.
instagram_accountsNoUp to 10 Instagram usernames to watch, example: ['openai', '@nasa', 'https://www.instagram.com/nasa/']. The 'instagram' source has no keyword search and reads only watched accounts and hashtags, so it needs instagram_accounts or instagram_hashtags (422 without either). Each run reads up to 12 newest posts per account; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Each account is one read per run ($0.003), whatever the number of posts. Sent as options.instagram.accounts.
instagram_hashtagsNoUp to 10 Instagram hashtags to watch, in any script, example: ['skincare', '#სილამაზე', 'https://www.instagram.com/explore/tags/skincare/']. A hashtag feed lists popular posts before recent ones from any account, so it finds posts outside the watched accounts, and since a new post can reach it days late, a run keeps the hashtag posts from the last 7 days that the monitor has not seen; with accounts or hashtags, the source reads those feeds each run instead of searching by keyword, and the query and criteria still decide what is kept (min_score 0 keeps every new post). Hashtags are sent as given and the API returns them without # (a tag URL becomes its tag); one it cannot read is a 422. Each run reads up to 12 posts per hashtag; each hashtag is one read per run ($0.003), whatever the number of posts. Sent as options.instagram.hashtags.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is not read-only, not idempotent, and open-world; the description adds the real behavioral load: cost accounting per run, the hold on balance while queued/running, insufficient_credits failure that pauses the monitor, free CRUD, 25-monitor cap with 409 too_many_monitors, 402 when the balance cannot hold one run, and that webhook_secret is shown only in this response. These are non-obvious operational consequences an agent could not infer from structured fields.

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

Conciseness2/5

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

Front-loaded correctly, but the body is a single dense block of hundreds of words with nested parentheticals and repeated billing prose ('billed per read', the per-1,000-read pricing, and the empty/private TikTok double-read caveat appear more than once). Breaking this into short sections (returns, scheduling, billing, source constraints, limits) would preserve the content while making it scannable.

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 26-parameter creation tool with no output schema, the description covers the return payload (monitor_id, settings, max_run_cost_usd, next_run_at, and one-time webhook_secret), run scheduling semantics, per-source constraints, cost model, and error codes. Nothing essential to calling it correctly is missing.

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 already 100%, so the baseline is 3; the description adds cross-parameter semantics by tying sources to their required companion fields and by explaining that watched accounts replace keyword search while query/criteria still filter (min_score 0 keeps everything). It largely restates the schema's own per-parameter text, so it does not rise to a full 5, but the integration of scoring, windows, and source pairing adds real meaning.

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?

Opens with a specific verb and resource ('Create a monitor: a search that reruns on a schedule over web, X, Reddit, YouTube, Threads, TikTok, and Meta Ad Library ads') and immediately defines what a monitor is in terms an agent can act on. It also distinguishes itself from siblings by naming monitor-estimate for costing and monitor-items/monitor-run for reading results.

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?

Gives explicit routing rules: 'Use monitor-estimate for the cost of a configuration', read kept items with monitor-items or monitor-run, and for TikTok 'to follow creators or a tag, watch their accounts (tiktok_accounts) or the hashtag'. It also states when configurations fail (instagram without instagram_accounts is a 422, meta_ads needs keyword-style queries, Threads keyword search is loose so watch accounts).

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.