Skip to main content
Glama

Update Monitor

monitor-update
DestructiveIdempotent

Change a monitor's settings and return it. Free. Send only what changes. status 'paused' stops scheduled runs (monitor-trigger still runs it once) and 'active' resumes them, also after a pause for credits or a failing webhook. The per-source options (web_count, x_count, x_lang, x_min_likes, x_accounts, reddit_subreddits, youtube_channels, tiktok_count, tiktok_accounts, tiktok_hashtags, threads_accounts, instagram_accounts, instagram_hashtags, facebook_pages, meta_ads_count) replace the monitor's options as a whole: send every option you want to keep, including its watched accounts and hashtags (an empty list watches none). The API checks the monitor as changed: an update that leaves 'instagram' without instagram_accounts or instagram_hashtags or 'facebook' without facebook_pages (new sources with the current options, or new options with the current sources) is a 422. A new webhook_url gets a new webhook_secret, returned only in this response; remove_webhook removes the webhook. The old values are not kept.

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": {
      "monitor_id": "<monitor_id>"
    },
    "name": "monitor-update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA label for the console and webhook deliveries.
queryNoNew query (3-500 characters).
statusNo'paused' stops scheduled runs; 'active' resumes them.
x_langNoOnly X posts in this language, example: 'en'. Sent as options.x.lang.
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.
monitor_idYesmonitor_id returned by monitor-create or monitor-list, example: '6f1d0c9e-0d55-4b8e-9a3c-3c4d9b8e2a10'.
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.
remove_webhookNotrue removes the webhook (sent as webhook: null). Do not combine with webhook_url.
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?

Goes well beyond the annotations (destructiveHint=true, idempotentHint=true): it discloses that per-source options replace the monitor's options wholesale, that omitted options and watched accounts are lost ("The old values are not kept"), the exact 422 cross-field validation rule, and that a new webhook_url yields a webhook_secret visible only in this response.

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-loads the core action and cost, then the destructive replacement rule, then validation and webhook behavior in a logical order. It loses a little crispness by enumerating all sixteen option parameter names in one parenthetical when the schema already lists them.

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 28-parameter, nested-object mutation tool with no output schema, the description covers cost, partial-update semantics, destructive replacement, validation failures, pause/resume behavior, and the webhook_secret return. Combined with 100% schema coverage and rich annotations, an agent has what it needs to call it correctly.

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 baseline is 3, but the description adds meaning the schema cannot express: the replace-as-a-whole rule for the 16 per-source options, the requirement to resend kept accounts/hashtags, and the 422 condition when a source has no matching accounts/pages. It also clarifies status transitions and webhook_secret lifecycle.

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: "Change a monitor's settings and return it." The verb 'change' plus 'send only what changes' immediately distinguishes it from monitor-create, monitor-get and monitor-delete in the sibling list.

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?

Clear partial-update guidance ("Send only what changes") and explicit status semantics, including the non-obvious fact that a paused monitor can still be run once via monitor-trigger and that 'active' resumes after credit or webhook failures. It never names a sibling alternative for reading (monitor-get) or estimating (monitor-estimate), so it stops short of full routing guidance.

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.