Skip to main content
Glama

Linked API MCP

by Linked-API
react-to-post.ts1.34 kB
import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { OPERATION_NAME, TReactToPostParams } from 'linkedapi-node'; import { z } from 'zod'; import { OperationTool } from '../utils/linked-api-tool.js'; export class ReactToPostTool extends OperationTool<TReactToPostParams, unknown> { public override readonly name = 'react_to_post'; public override readonly operationName = OPERATION_NAME.reactToPost; protected override readonly schema = z.object({ postUrl: z.string(), type: z.enum(['like', 'love', 'celebrate', 'support', 'funny', 'insightful']).or(z.string()), }); public override getTool(): Tool { return { name: this.name, description: 'Allows you to react to a post using any available reaction type (st.reactToPost action).', inputSchema: { type: 'object', properties: { postUrl: { type: 'string', description: "LinkedIn URL of the post to react. (e.g., 'https://www.linkedin.com/posts/username_activity-id')", }, type: { type: 'string', description: 'Enum describing the reaction type.', enum: ['like', 'love', 'support', 'celebrate', 'insightful', 'funny'], }, }, required: ['postUrl', 'type'], }, }; } }

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