{
  "name": "trimlynk",
  "description": "Official Model Context Protocol (MCP) server for TrimLynk URL shortener and link intelligence.",
  "version": "1.1.0",
  "serverUrl": "https://trimlynk.com",
  "transport": "http",
  "tools": [
    {
      "name": "shorten_url",
      "description": "Shorten a long URL into an instant TrimLynk short link.",
      "inputSchema": {
        "type": "object",
        "required": ["longUrl"],
        "properties": {
          "longUrl": {
            "type": "string",
            "description": "The destination URL to shorten."
          },
          "customCode": {
            "type": "string",
            "description": "Optional custom alias slug."
          }
        }
      }
    },
    {
      "name": "get_url_analytics",
      "description": "Retrieve click count, country distribution, and device metrics for a shortened link.",
      "inputSchema": {
        "type": "object",
        "required": ["urlId"],
        "properties": {
          "urlId": {
            "type": "string",
            "description": "The URL identifier."
          }
        }
      }
    },
    {
      "name": "query_analytics_ai",
      "description": "Ask natural language questions about click metrics and visitor engagement.",
      "inputSchema": {
        "type": "object",
        "required": ["question"],
        "properties": {
          "question": {
            "type": "string",
            "description": "Analytical question regarding link performance."
          }
        }
      }
    }
  ]
}
