retrieve_performance
Retrieve performance analytics from your LinkedIn dashboard to track campaign metrics and engagement data.
Instructions
Allows you to retrieve performance analytics from your LinkedIn dashboard (st.retrievePerformance action).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/retrieve-performance.ts:7-23 (handler)The RetrievePerformanceTool class is the primary handler for the 'retrieve_performance' tool. It specifies the tool name, maps to the LinkedIn API operation 'retrievePerformance', defines an empty input schema, and provides the MCP Tool definition.
export class RetrievePerformanceTool extends OperationTool<unknown, unknown> { public override readonly name = 'retrieve_performance'; public override readonly operationName = OPERATION_NAME.retrievePerformance; protected override readonly schema = z.object({}); public override getTool(): Tool { return { name: this.name, description: 'Allows you to retrieve performance analytics from your LinkedIn dashboard (st.retrievePerformance action).', inputSchema: { type: 'object', properties: {}, }, }; } } - src/utils/linked-api-tool.ts:39-57 (handler)Core execution handler in OperationTool base class, which locates the specific LinkedIn API operation by name (retrievePerformance for this tool) and executes it with progress tracking.
public override execute({ linkedapi, args, workflowTimeout, progressToken, }: { linkedapi: LinkedApi; args: TParams; workflowTimeout: number; progressToken?: string | number; }): Promise<TMappedResponse<TResult>> { const operation = linkedapi.operations.find( (operation) => operation.operationName === this.operationName, )! as Operation<TParams, TResult>; return executeWithProgress(this.progressCallback, operation, workflowTimeout, { params: args, progressToken, }); } - src/linked-api-tools.ts:54-54 (registration)Registers the retrieve_performance tool by instantiating RetrievePerformanceTool and including it in the LinkedApiTools collection, which is then exposed via the MCP server.
new RetrievePerformanceTool(progressCallback), - src/linked-api-tools.ts:21-21 (registration)Import statement for the RetrievePerformanceTool class.
import { RetrievePerformanceTool } from './tools/retrieve-performance.js'; - Zod schema definition for tool inputs (empty object, no parameters required).
protected override readonly schema = z.object({});