Skip to main content
Glama

fluentcrm_generate_smart_link_shortcode

Generate shortcodes for FluentCRM Smart Links to embed trackable marketing links in WordPress content for campaign performance monitoring.

Instructions

Generuje shortcode dla Smart Link

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkTextNoTekst linku (opcjonalny)
slugYesSlug Smart Link

Implementation Reference

  • Core handler function in FluentCRMClient class that generates the Smart Link shortcode. Returns either the plain shortcode {{fc_smart_link slug='...'}} or wrapped in an HTML <a> tag if linkText is provided.
    generateSmartLinkShortcode(slug: string, linkText?: string): string { if (linkText) { return `<a href="{{fc_smart_link slug='${slug}'}}">${linkText}</a>`; } return `{{fc_smart_link slug='${slug}'}}`; }
  • Input schema defining parameters: slug (required string), linkText (optional string). Part of the tool registration.
    inputSchema: { type: 'object', properties: { slug: { type: 'string', description: 'Slug Smart Link' }, linkText: { type: 'string', description: 'Tekst linku (opcjonalny)' }, }, required: ['slug'], },
  • Tool registration in the MCP server's tools list, including name, description, and input schema.
    { name: 'fluentcrm_generate_smart_link_shortcode', description: 'Generuje shortcode dla Smart Link', inputSchema: { type: 'object', properties: { slug: { type: 'string', description: 'Slug Smart Link' }, linkText: { type: 'string', description: 'Tekst linku (opcjonalny)' }, }, required: ['slug'], }, },
  • MCP request handler switch case that invokes the client.generateSmartLinkShortcode method and formats the response.
    case 'fluentcrm_generate_smart_link_shortcode': return { content: [{ type: 'text', text: JSON.stringify({ shortcode: client.generateSmartLinkShortcode((args as any)?.slug, (args as any)?.linkText) }, null, 2) }] };

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/netflyapp/fluentcrm-mcp-server'

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