Skip to main content
Glama

Show how an account is doing

get_account_insights
Read-onlyIdempotent

How one social account is doing, as its platform reports it: followers, the last 7 days as numbers with the change on the 7 days before, and its latest posts with likes, comments, shares and views. Facebook, Instagram, Threads and TikTok (TikTok has no daily account numbers: its numbers add up the videos posted in the period). A report belongs to ONE social group (brand): pass social_group_id from list_accounts when the connection covers several. Each post carries likes, comments, shares, views, reach, saves and, on a video or reel, its watch numbers: avg_watch_time_ms (average time one play lasted), watch_time_ms (every play added up), complete_views (plays to the end, Facebook videos only) and duration_ms (the video's length), all lifetime and in milliseconds except complete_views; null where the platform does not give them (Threads, TikTok watch time). Posts come 10 a page, newest first. posts_next in the answer is null when there are no more; otherwise pass it back as posts_cursor (same platform and social group) for the next 10. A cursor of another platform is refused; a cursor can expire, so start again without it. Numbers can be up to an hour old (fetched_at). A number the platform did not send is null, not zero: say "not available", never 0. Read only.

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": {
      "platform": "<platform>"
    },
    "name": "get_account_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformYesWhich account of the social group.
posts_cursorNoThe `posts_next` of an earlier answer, for the next 10 posts. Leave it out for the first page.
social_group_idNoThe social group (brand), from list_accounts. Needed when the connection covers more than one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / posts_cursor
      Added value: +{
      +  "description": "The `posts_next` of an earlier answer, for the next 10 posts. Leave it out for the first page.",
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "facebook",
      -  "instagram",
      -  "threads"
      -]New value: +[
      +  "facebook",
      +  "instagram",
      +  "threads",
      +  "tiktok"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial behavior: numbers may be up to an hour old (`fetched_at`), platform coverage gaps (TikTok has no daily account numbers; Threads/TikTok lack watch time), pages of 10 newest-first, cursors rejected across platforms, cursors can expire, and null means unavailable rather than zero. That is exactly the operational context an agent needs beyond 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.

Conciseness4/5

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

Content is front-loaded with purpose first, then platform caveats, then post-field definitions, then pagination, then freshness and null-handling. It is dense but every sentence carries information; the closing "Read only." largely restates readOnlyHint=true and is the only real redundancy.

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 carries the full burden of explaining return values and does so: followers and 7-day comparisons, the per-post field set including watch-time metrics with units and null conditions, and the `posts_next` pagination contract. Nothing an agent needs to call this correctly or interpret the result 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 100%, so the baseline is 3, but the description genuinely adds semantics: social_group_id should come from list_accounts and is only required for multi-group connections, and posts_cursor must match the same platform and social group, may be refused, and may expire. Only the platform parameter gets no added detail beyond the schema enum.

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?

"How one social account is doing, as its platform reports it" plus an enumeration of what's returned (followers, 7-day numbers vs prior 7 days, latest posts with engagement) is a specific verb+resource statement. It is clearly distinguished from siblings like list_posts, get_post and get_brand by scoping to one account's performance snapshot rather than post lists or brand metadata.

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?

It gives concrete selection advice: pass social_group_id from list_accounts when the connection covers several groups, and pass posts_next back as posts_cursor for the next page. It also states platform-specific limits. It stops short of naming an explicit alternative (e.g. when to prefer list_posts or get_post instead), so it falls just below a 5.

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