fluentcrm_get_smart_link
Retrieve specific smart link details from FluentCRM marketing automation to access and manage tracking links for campaigns and communications.
Instructions
Pobiera szczegóły konkretnego Smart Link
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| smartLinkId | Yes | ID Smart Link |
Implementation Reference
- src/fluentcrm-mcp-server.ts:343-357 (handler)Core implementation of the smart link retrieval logic in the FluentCRMClient class. Makes API GET request to /smart-links/{id} and handles 404 with informative message.async getSmartLink(smartLinkId: number) { try { const response = await this.apiClient.get(`/smart-links/${smartLinkId}`); return response.data; } catch (error: any) { if (error.response?.status === 404) { return { success: false, message: "Smart Links API endpoint not available yet in FluentCRM", suggestion: "Use FluentCRM admin panel to view Smart Link details" }; } throw error; } }
- src/fluentcrm-mcp-server.ts:1007-1008 (registration)MCP server switch case that registers and dispatches the tool call to the client.getSmartLink method.case 'fluentcrm_get_smart_link': return { content: [{ type: 'text', text: JSON.stringify(await client.getSmartLink((args as any)?.smartLinkId), null, 2) }] };
- src/fluentcrm-mcp-server.ts:833-839 (schema)Input schema definition for the tool, specifying smartLinkId as required number parameter.inputSchema: { type: 'object', properties: { smartLinkId: { type: 'number', description: 'ID Smart Link' }, }, required: ['smartLinkId'], },
- src/fluentcrm-mcp-server.ts:830-840 (registration)Full tool registration entry in the tools list for ListToolsRequestSchema, including name, description, and schema.{ name: 'fluentcrm_get_smart_link', description: 'Pobiera szczegóły konkretnego Smart Link', inputSchema: { type: 'object', properties: { smartLinkId: { type: 'number', description: 'ID Smart Link' }, }, required: ['smartLinkId'], }, },