Skip to main content
Glama

Get a trend search

get_trend_search
Read-only

Retrieve the status and results of a trend search started by find_trends, optionally wait for completion, sort reels, and get a ready-to-display table.

Instructions

Read a search or a next page started by find_trends: state queued or searching, succeeded with result and warnings, or failed with error.code and error.message. wait_seconds (at most 50) holds the answer until the search finishes or the wait ends; an unfinished answer carries retry_after_seconds and poll. sort reorders the reels. display_markdown is a ready table; display_hint says how to show it. untrusted_content lists the third-party text fields. credits_charged is the price once succeeded. Free.

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": {
      "search_id": "<search_id>"
    },
    "name": "get_trend_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
search_idYes
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.78.0

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond readOnlyHint/destructiveHint by naming the three terminal states, the fields each carries (result, warnings, error.code, error.message), the bounded wait (at most 50), the retry_after_seconds/poll continuation, and credits_charged on success plus 'Free'. It does not explain what happens to a search when the wait expires repeatedly or whether the search eventually expires.

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 purpose and the state model, then handles parameters, output shape, trust, and pricing in order. Sentences are telegraphic but each carries distinct information; a few ('Free.', 'display_hint says how to show it') are terse to the point of ambiguity.

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 does the job of describing the response envelope (status, result, warnings, error, display_markdown, untrusted_content, credits_charged) and the polling contract. Only minor gaps remain, such as whether repeated polls can time out the search or how next-page results are requested.

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 description coverage is 0%, so the description carries the load, and it does explain wait_seconds' cap and withholding behavior and that sort reorders the reels. It leaves sort's enum values (best, views_per_hour, x_size_norm, etc.) unexplained and says nothing about search_id's trs_ format.

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 ('Read a search or a next page') and ties it directly to the sibling that creates the search ('started by find_trends'), so an agent can tell it apart from find_trends and other get_* tools without opening a schema.

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?

Makes the workflow explicit: use it to read a search already started by find_trends, and use wait_seconds plus the returned retry_after_seconds/poll to continue an unfinished search. It stops short of stating when NOT to use it or what to do on failure, so 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.