Skip to main content
Glama

Trillboards DOOH Advertising

get_social_attention

Query social attention contagion metrics from the observation stream. Returns windows where attention propagated between viewers (social amplification factor > 1).

Social attention data is produced by the AttentionGraphBuilder running on CTV edge devices, which models viewer attention as a directed graph and detects when one viewer looking at the screen triggers nearby viewers to also look (attention contagion / social amplification).

WHEN TO USE:

  • Finding moments where social proof drove collective engagement

  • Identifying which venues or dayparts exhibit highest attention contagion

  • Understanding cascading attention patterns (cascade depth)

  • Correlating social amplification with ad effectiveness (VAS)

RETURNS:

  • data: Array of observation_stream rows with socialAttention payload

    • payload.socialAttention.socialAmplificationFactor (SAF): ratio of actual-to-expected group attention (>1 = contagion detected)

    • payload.socialAttention.cascadeDepth: max depth of attention propagation chain

    • payload.socialAttention.viralAttentionScore: composite metric combining SAF and cascade depth

    • payload.socialAttention.contagionWindowMs: time window over which cascade occurred

    • payload.socialAttention.triggerViewerIndex: which viewer initiated the cascade

  • metadata: { result_count, time_range, min_saf_filter }

  • suggested_next_queries: Follow-up queries

EXAMPLE: User: "Show me moments where attention went viral in bar venues" get_social_attention({ min_saf: 2.0, venue_type: "bar" })

User: "Find the strongest social amplification events this week" get_social_attention({ min_saf: 3.0, time_range: { start: "2026-03-09T00:00:00Z", end: "2026-03-16T00:00:00Z" } })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results to return. Default: 20, max: 200.
min_safNoMinimum social amplification factor threshold. Default: 1.5. Higher values return only stronger contagion events.
screen_idNoFilter by screen MongoDB ID. Optional.
time_rangeNoTime range filter. Defaults to last 24 hours.
venue_typeNoFilter by venue type (e.g., "bar", "restaurant_qsr", "transit"). Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum results to return. Default: 20, max: 200."
    • addedInput schema / properties / min_saf / description
      Added value: +"Minimum social amplification factor threshold. Default: 1.5. Higher values return only stronger contagion events."
    • addedInput schema / properties / screen_id / description
      Added value: +"Filter by screen MongoDB ID. Optional."
    • addedInput schema / properties / time_range / description
      Added value: +"Time range filter. Defaults to last 24 hours."
    • addedInput schema / properties / time_range / properties / end / description
      Added value: +"End time (ISO 8601)"
    • addedInput schema / properties / time_range / properties / start / description
      Added value: +"Start time (ISO 8601)"
    • addedInput schema / properties / venue_type / description
      Added value: +"Filter by venue type (e.g., \"bar\", \"restaurant_qsr\", \"transit\"). Optional."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It explains the data source (AttentionGraphBuilder on CTV edge devices), the meaning of key metrics (SAF, cascade depth), and the return payload structure. It does not explicitly mention read-only/safety, but the verb 'Query' and operation semantics imply non-destructive use. It lacks rate-limit or auth details, which would push it to a 5.

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

Conciseness5/5

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

The description is well-organized into clear sections (purpose, when to use, returns, examples). Each section adds meaningful information without fluff. The examples are concise and illustrative. It is longer than average but earns its length through density and structure.

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?

With no output schema, the description thoroughly details the return payload, including nested socialAttention metrics and metadata. It also covers the data provenance and typical use cases, making it self-contained. The provided examples cover common query patterns. This is a complete description for an agent to use the tool effectively.

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 covers all 5 parameters with descriptions (100% coverage), so baseline is 3. The description adds value through two representative examples showing how to combine min_saf, venue_type, and time_range, and clarifies that the metadata includes min_saf_filter. It avoids redundant repetition of schema fields.

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 explicitly states the tool 'Query social attention contagion metrics from the observation stream' and specifies the core criterion (SAF > 1). It distinguishes itself from sibling tools like get_attention_metrics and get_social_contagion_summary by focusing on contagion/cascade behavior rather than general attention or aggregate summaries.

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?

A dedicated 'WHEN TO USE' section lists four concrete use cases, clearly indicating appropriate contexts. However, it does not explicitly mention when not to use the tool or name alternative siblings (e.g., get_social_contagion_summary for summary stats), so exclusion guidance is missing.

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