Skip to main content
Glama

list_keyword_searches

Retrieve paginated keyword search results from social media platforms, filtered by completion status to monitor search progress and outcomes.

Instructions

List all keyword searches. Returns a paginated list filtered by status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
showNoFilter by status (default: all)
pageNoPage number (100 results per page)

Implementation Reference

  • The handler function that executes the API call for listing keyword searches.
    async (params) => {
      try {
        const queryParts: string[] = [];
        if (params.show) queryParts.push(`show=${params.show}`);
        if (params.page !== undefined) queryParts.push(`page=${params.page}`);
        const query = queryParts.length ? `?${queryParts.join("&")}` : "";
        const data = await apiGet(`/iq/keyword_search${query}`);
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      } catch (e) {
        return { content: [{ type: "text", text: String(e) }], isError: true };
      }
    }
  • Schema definition for the inputs to the list_keyword_searches tool.
    {
      show: z
        .enum(["all", "started", "finished", "pending", "failed"])
        .optional()
        .describe("Filter by status (default: all)"),
      page: z.number().int().positive().optional().describe("Page number (100 results per page)"),
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rolliinc/rolli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server