Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, }; } }
  • 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, }); }
  • 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),
  • 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({});

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/Linked-API/linkedapi-mcp'

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