get_topics
List all listening topics in your Sprout Social account to view and manage monitored conversations.
Instructions
List all listening topics in your Sprout Social account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:140-148 (registration)Registration of the 'get_topics' tool via server.tool(). No separate schema (empty object) and handler is inline.
server.tool( "get_topics", "List all listening topics in your Sprout Social account.", {}, async () => { const data = await sproutRequest("GET", "/metadata/customer/topics"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } ); - src/index.ts:144-147 (handler)Handler function for get_topics: calls sproutRequest with GET /metadata/customer/topics and returns the JSON data.
async () => { const data = await sproutRequest("GET", "/metadata/customer/topics"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/index.ts:143-143 (schema)Schema for get_topics is an empty object (no input parameters required).
{},