Skip to main content
Glama
AudienseCo

Audiense Insights MCP Server

Official
by AudienseCo

get-report-info

Retrieve intelligence report details including status, segmentation, audience size, and access links from Audiense Insights to analyze marketing data.

Instructions

Retrieves detailed information about a specific intelligence report, including its status, segmentation type, audience size, segments, and access links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
report_idYesThe ID of the intelligence report.

Implementation Reference

  • MCP tool handler that invokes getReportInfo, handles errors, pending status, and formats the response as JSON text.
    async ({ report_id }) => { const data = await getReportInfo(report_id); if (!data) { return { content: [ { type: "text", text: `Failed to retrieve report info for ID: ${report_id}.`, }, ], }; } if (data.status === "pending") { return { content: [ { type: "text", text: `Report ${report_id} is still processing. Try again later.`, }, ], }; } return { content: [ { type: "text", text: JSON.stringify(data, null, 2) } ] }; }
  • Zod input schema defining the required 'report_id' parameter.
    { report_id: z.string().describe("The ID of the intelligence report."), },
  • src/index.ts:53-93 (registration)
    Registers the 'get-report-info' MCP tool with server, including name, description, schema, and handler.
    server.tool( "get-report-info", "Retrieves detailed information about a specific intelligence report, including its status, segmentation type, audience size, segments, and access links.", { report_id: z.string().describe("The ID of the intelligence report."), }, async ({ report_id }) => { const data = await getReportInfo(report_id); if (!data) { return { content: [ { type: "text", text: `Failed to retrieve report info for ID: ${report_id}.`, }, ], }; } if (data.status === "pending") { return { content: [ { type: "text", text: `Report ${report_id} is still processing. Try again later.`, }, ], }; } return { content: [ { type: "text", text: JSON.stringify(data, null, 2) } ] }; } );
  • Core helper function that performs the authenticated API request to retrieve specific report information.
    export async function getReportInfo(report_id: string): Promise<ReportInfoResponse | null> { return makeAudienseRequest<ReportInfoResponse>(`/reports/intelligence/${report_id}`); }
  • TypeScript interface defining the structure of the report info response data.
    export type ReportInfoResponse = { title: string; status: string; segmentation_type: string; full_audience?: { size?: number; audience_influencers_id?: string; }; segments?: { id: string; title: string; size: number; audience_influencers_id?: string; }[]; audience_influencers_id?: string; public: boolean; links?: { app?: string; public?: string }; errors?: string[]; };

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/AudienseCo/mcp-audiense-insights'

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