Skip to main content
Glama

share-stats

Retrieve statistics for shared links, including view counts and engagement metrics, to track content performance.

Instructions

Get statistics about your shared links (view counts, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `share-stats` tool registration and handler implementation. It uses `client.shares.getStats()` to retrieve statistics.
    server.tool(
      "share-stats",
      "Get statistics about your shared links (view counts, etc.).",
      {},
      async () => {
        try {
          const result = await client.shares.getStats();
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return { content: [{ type: "text", text: `Error: ${message}` }], isError: true };
        }
      },
    );

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/ebenezer-isaac/llmconveyors-mcp'

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