Skip to main content
Glama

fluentcrm_generate_smart_link_shortcode

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

Instructions

Generuje shortcode dla Smart Link

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesSlug Smart Link
linkTextNoTekst linku (opcjonalny)

Implementation Reference

  • Core implementation of the tool logic: generates FluentCRM smart link shortcode either as plain shortcode or wrapped in an anchor tag with optional link text.
    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) and optional linkText string.
    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, specifying 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 server dispatch handler: switch case that calls the generateSmartLinkShortcode method and returns the result as JSON.
    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