Skip to main content
Glama

Act on every member

act_on_collection

Use when pausing, resuming, refreshing or switching analysis for every Tracker in a Collection (by id or name) at once. Not for one Tracker: set_tracker_state, set_tracker_intelligence or track refresh=true. No focus action: set_tracker_focus. Price: Free for pause, resume, intelligence; refresh is a cycle per member: creator 6, hashtag 3, keyword 3, sound 6, advertiser 30 credits; +20 credits per new video analysed. intelligence takes intelligence true or false (on: +20 credits per new video or Ad later). Shared Trackers change in all their Collections (trackers_in_other_collections).

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": {
      "collection": "<collection>",
      "action": "<action>"
    },
    "name": "act_on_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYespause or resume every member; refresh every member now (paid); intelligence: switch analysis of new videos on or off
estimateNoQuote the price in Credits: no Run, no charge
collectionYesThe Collection, by id or name (case does not matter).
max_creditsNo
intelligenceNointelligence action: true switches analysis on, false off

Output Schema

NameRequiredDescriptionDefault
runNo
noteNo
actionNo
cachedNo
resultNoWhat a Collection refresh did.
poll_urlNo
trackersNoEvery live member, as it now is.
collectionNoA named set of Trackers of one kind.
estimate_creditsNo
changed_tracker_idsNoMembers this call changed.
per_tracker_creditsNo
trackers_with_analysisNo
trackers_in_other_collectionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / estimate / description
      Previous value: -"Return the price, in Credits, without running the operation or creating a Run"New value: +"Quote the price in Credits: no Run, no charge"
    • changedOutput schema / properties / collection / additionalProperties
      Previous value: -trueNew value: +{}
    • removedOutput schema / properties / collection / properties
      Removed value: -{}
    • changedOutput schema / properties / trackers_in_other_collections / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/properties/collection"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "items": {
      -      "$ref": "#/properties/collection"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "items": {
      -      "$ref": "#/properties/collection"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "items": {},
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "$ref": "#/properties/collection"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "items": {},
      +    "type": "array"
      +  }
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"pause or resume every member; refresh every member now (paid); intelligence: switch analysis of new videos on or off for every member"New value: +"pause or resume every member; refresh every member now (paid); intelligence: switch analysis of new videos on or off"
    • changedInput schema / properties / intelligence / description
      Previous value: -"intelligence action: true switches analysis on for every member, false switches it off"New value: +"intelligence action: true switches analysis on, false off"
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / poll_url
      Added value: +{
      +  "format": "uri",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "action": {
      +      "enum": [
      +        "pause",
      +        "resume",
      +        "intelligence"
      +      ],
      +      "type": "string"
      +    },
      +    "cached": {
      +      "type": "boolean"
      +    },
      +    "changed_tracker_ids": {
      +      "description": "Members this call changed.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "collection": {
      +      "additionalProperties": true,
      +      "description": "A named set of Trackers of one kind.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "estimate_credits": {
      +      "type": "integer"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "per_tracker_credits": {
      +      "type": "number"
      +    },
      +    "result": {
      +      "$ref": "#/properties/collection",
      +      "description": "What a Collection refresh did."
      +    },
      +    "run": {
      +      "$ref": "#/properties/collection"
      +    },
      +    "trackers": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/properties/collection"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "description": "Every live member, as it now is."
      +    },
      +    "trackers_in_other_collections": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/properties/collection"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "items": {
      +            "$ref": "#/properties/collection"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "items": {
      +            "$ref": "#/properties/collection"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "items": {},
      +          "type": "array"
      +        }
      +      ]
      +    },
      +    "trackers_with_analysis": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the credit model (free for pause/resume/intelligence, per-member cycle costs of 6/3/3/6/30 by tracker type, +20 per new video analysed) and an important side effect: shared Trackers change in all their Collections. It does not state whether the paid refresh is asynchronous or returns a Run handle, which is the one behavioral detail left implicit.

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 exclusions, then pricing — a sensible order with no filler sentences. The pricing sentence is densely packed with semicolon-separated clauses and takes a second read, which costs it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with annotations present and an output schema available, the description supplies the cost model, cross-collection side effects, and routing to siblings. The only real gap is that max_credits (the one parameter with no schema description) is never explained in prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 80%, and the description still adds real meaning: it clarifies that the intelligence action takes true/false and what each state costs ('+20 credits per new video or Ad later'). It also implies why max_credits/estimate matter by establishing that refresh is a paid, per-member-metered operation.

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 bulk verb set (pause, resume, refresh, switch intelligence) against a specific resource (every Tracker in a Collection, by id or name). The scope word 'at once' plus 'every Tracker in a Collection' makes it immediately distinguishable from the single-tracker siblings.

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?

Explicitly names the alternatives and the condition that selects them: 'Not for one Tracker: set_tracker_state, set_tracker_intelligence or track refresh=true' and 'No focus action: set_tracker_focus.' Both the when and the when-not are covered with sibling names.

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