Skip to main content
Glama

Get Top Performing Media

get_top_performing_media
Read-onlyIdempotent

Fetch the user's top-performing published post images and videos, ranked by engagement (likes, comments, views) or recency. Returns verified media URLs and performance notes to present in show_image_carousel.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_top_performing_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many media items to return
platformNoFilter to one platformall

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "all",
      -  "facebook",
      -  "instagram",
      -  "linkedin",
      -  "x",
      -  "tiktok",
      -  "youtube"
      -]New value: +[
      +  "all",
      +  "facebook",
      +  "instagram",
      +  "linkedin",
      +  "x",
      +  "tiktok",
      +  "youtube",
      +  "threads",
      +  "pinterest",
      +  "bluesky",
      +  "reddit"
      +]
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description usefully adds that results are 'verified media URLs and performance notes', but says nothing about empty-result behavior, freshness of engagement data, or whether unpublished/draft media is excluded.

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?

Two tight sentences with the resource and ranking rule front-loaded, followed by return content. Only the parenthetical metric list and the carousel reference could be trimmed, and both are short.

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?

With no output schema, the description carries the return-value burden and does so briefly (verified URLs plus performance notes). For a two-parameter read tool with full annotation coverage this is close to sufficient; the main remaining gap is the dangling ranking option that has no matching parameter.

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

Parameters2/5

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

Schema coverage is 100%, so limit and platform are fully documented in the schema and the description adds nothing about them. Worse, 'ranked by engagement (likes, comments, views) or recency' reads as a selectable ranking option, but no such parameter exists — this pushes the agent toward an argument it cannot pass.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource: 'Fetch the user's top-performing published post images and videos.' The scope ('published', 'images and videos', 'ranked by engagement or recency') separates it in kind from get_top_posts, which returns posts rather than media, though the description never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the phrase 'to present in show_image_carousel', which tells the agent the downstream consumer. There is no explicit when-to-use, when-not-to-use, or guidance pointing to get_top_posts for text-level metrics, so an agent must infer the boundary itself.

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