export const GROWTH_TOOLS = [
    {
        "name": "growth_crm_add_contact",
        "description": "Add a new lead or contact to Pidgey's built-in CRM (stored in Backpack). Captures name, email, company, source, pipeline stage, tags, and notes. Automatically timestamps the entry.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "name": {
                    "type": "STRING",
                    "description": "Full name of the contact."
                },
                "email": {
                    "type": "STRING",
                    "description": "Email address."
                },
                "company": {
                    "type": "STRING",
                    "description": "Company or organization name."
                },
                "source": {
                    "type": "STRING",
                    "description": "Where the lead came from: reddit, twitter, linkedin, cold_outreach, referral, website, inbound, youtube, other."
                },
                "stage": {
                    "type": "STRING",
                    "description": "Pipeline stage: lead, contacted, warm, hot, converted, lost. Default 'lead'."
                },
                "tags": {
                    "type": "STRING",
                    "description": "Comma-separated tags for segmentation (e.g. 'creator,tech,100k_subs')."
                },
                "notes": {
                    "type": "STRING",
                    "description": "Free-form notes about this contact."
                },
                "phone": {
                    "type": "STRING",
                    "description": "Phone number (optional)."
                },
                "url": {
                    "type": "STRING",
                    "description": "Website, social profile, or relevant URL."
                }
            },
            "required": ["name"]
        }
    },
    {
        "name": "growth_crm_search",
        "description": "Search the Pidgey CRM for contacts. Filter by name, email, company, stage, tag, or source. Returns matching contacts with all their details.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "query": {
                    "type": "STRING",
                    "description": "Free text search across name, email, company, and notes."
                },
                "stage": {
                    "type": "STRING",
                    "description": "Filter by pipeline stage: lead, contacted, warm, hot, converted, lost."
                },
                "tag": {
                    "type": "STRING",
                    "description": "Filter by a specific tag."
                },
                "source": {
                    "type": "STRING",
                    "description": "Filter by lead source."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_crm_update_contact",
        "description": "Update an existing CRM contact by email. Change their pipeline stage, add notes, update tags, or modify any field. Use this to move leads through the funnel.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "email": {
                    "type": "STRING",
                    "description": "Email of the contact to update (used as unique ID)."
                },
                "stage": {
                    "type": "STRING",
                    "description": "New pipeline stage."
                },
                "tags": {
                    "type": "STRING",
                    "description": "New comma-separated tags (replaces existing)."
                },
                "add_tags": {
                    "type": "STRING",
                    "description": "Comma-separated tags to ADD to existing tags."
                },
                "notes": {
                    "type": "STRING",
                    "description": "Append a new note (timestamped automatically)."
                },
                "name": {
                    "type": "STRING",
                    "description": "Update the contact name."
                },
                "company": {
                    "type": "STRING",
                    "description": "Update company."
                },
                "phone": {
                    "type": "STRING",
                    "description": "Update phone."
                },
                "url": {
                    "type": "STRING",
                    "description": "Update URL."
                }
            },
            "required": ["email"]
        }
    },
    {
        "name": "growth_crm_pipeline_view",
        "description": "View the full CRM pipeline as a funnel breakdown. Shows count and contacts at each stage: lead -> contacted -> warm -> hot -> converted. Also shows lost contacts separately.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "show_details": {
                    "type": "BOOLEAN",
                    "description": "If true, shows full contact details per stage. If false (default), shows summary counts only."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_crm_export",
        "description": "Export the entire CRM as a CSV file compatible with LibreOffice Calc, Excel, Google Sheets, or any spreadsheet app. Downloads directly to the user's device.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "stage_filter": {
                    "type": "STRING",
                    "description": "Optional: only export contacts in a specific stage."
                },
                "tag_filter": {
                    "type": "STRING",
                    "description": "Optional: only export contacts with a specific tag."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_mailing_list_add",
        "description": "Add an email address to a named mailing list segment. If the list doesn't exist, it's created. Contacts are deduplicated by email. Supports multiple named lists for different campaigns.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "email": {
                    "type": "STRING",
                    "description": "Email address to add."
                },
                "name": {
                    "type": "STRING",
                    "description": "Contact's name."
                },
                "list_name": {
                    "type": "STRING",
                    "description": "Name of the mailing list segment (e.g. 'newsletter', 'beta_testers', 'creators'). Default 'main'."
                },
                "tags": {
                    "type": "STRING",
                    "description": "Comma-separated tags for this subscriber."
                }
            },
            "required": ["email"]
        }
    },
    {
        "name": "growth_mailing_list_view",
        "description": "View all mailing lists, their subscriber counts, and optionally the full subscriber details for a specific list.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "list_name": {
                    "type": "STRING",
                    "description": "Show subscribers for this specific list. Omit to see all lists with counts."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_mailing_list_remove",
        "description": "Remove an email address from a mailing list (unsubscribe). The contact remains in other lists and the CRM.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "email": {
                    "type": "STRING",
                    "description": "Email address to remove."
                },
                "list_name": {
                    "type": "STRING",
                    "description": "Which list to remove from. Default 'main'."
                }
            },
            "required": ["email"]
        }
    },
    {
        "name": "growth_mailing_list_export",
        "description": "Export a mailing list as a CSV file ready for import into Mailchimp, ConvertKit, Sendinblue, or any email platform. Downloads directly to device.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "list_name": {
                    "type": "STRING",
                    "description": "Which list to export. Default 'main'."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_mailing_list_import_from_crm",
        "description": "Bulk-import contacts from the CRM into a mailing list based on filters. Great for building targeted lists from your pipeline.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "list_name": {
                    "type": "STRING",
                    "description": "Target mailing list name."
                },
                "stage_filter": {
                    "type": "STRING",
                    "description": "Only import contacts at this pipeline stage."
                },
                "tag_filter": {
                    "type": "STRING",
                    "description": "Only import contacts with this tag."
                },
                "source_filter": {
                    "type": "STRING",
                    "description": "Only import contacts from this source."
                }
            },
            "required": ["list_name"]
        }
    },
    {
        "name": "growth_auto_vet_inquiry",
        "description": "Auto-Vetting SDR Engine: AI automatically scores incoming inquiries and pre-drafts replies. Evaluates lead quality and buying intent.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "inquiry": {
                    "type": "STRING",
                    "description": "The raw text of the incoming inquiry or email."
                }
            },
            "required": ["inquiry"]
        }
    },
    {
        "name": "growth_chirp_crm_sync",
        "description": "Tracking & CRM: Native open/click tracking for every 'Chirp' and a one-click CRM sync. Generates a tracking pixel and click-tracker URL wrapper.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "url": {
                    "type": "STRING",
                    "description": "The primary call-to-action URL to wrap with tracking. Default uses pidgeyassist.com."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_seo_page_audit",
        "description": "Audit a webpage for SEO fundamentals: title tag, meta description, H1/H2 structure, Open Graph tags, canonical URL, image alt texts, and internal/external link counts. Uses the current page or a provided URL.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "url": {
                    "type": "STRING",
                    "description": "URL to audit. If omitted, audits the currently active tab."
                }
            },
            "required": []
        }
    },
    {
        "name": "growth_seo_keyword_research",
        "description": "Research keywords for a topic: find related terms, long-tail variations, 'People Also Ask' questions, and competitor keywords via web search. Returns a prioritized keyword list.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "seed_keyword": {
                    "type": "STRING",
                    "description": "The primary keyword or topic to research."
                },
                "niche": {
                    "type": "STRING",
                    "description": "Optional niche context (e.g. 'SaaS', 'ecommerce', 'local business')."
                }
            },
            "required": ["seed_keyword"]
        }
    },
    {
        "name": "growth_content_generator",
        "description": "Fetch a marketing content creative brief template for blog posts, social media, ad copy, emails, or headlines. IMPORTANT: You MUST use the returned brief template to automatically write and output the actual final content for the user. Do NOT just present the brief back to them. Write the final content yourself and save it to the backpack or chat!",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "content_type": {
                    "type": "STRING",
                    "description": "Type: blog_outline, social_caption, ad_copy, email_subject_lines, headlines_ab, landing_page_copy, press_release_outline."
                },
                "topic": {
                    "type": "STRING",
                    "description": "The subject or product to write about."
                },
                "tone": {
                    "type": "STRING",
                    "description": "Tone: professional, casual, urgent, witty, inspirational. Default 'casual'."
                },
                "platform": {
                    "type": "STRING",
                    "description": "Target platform for social/ad content: twitter, linkedin, facebook, instagram, tiktok."
                },
                "keywords": {
                    "type": "STRING",
                    "description": "SEO keywords to include in the content."
                }
            },
            "required": ["content_type", "topic"]
        }
    },
    {
        "name": "growth_utm_link_builder",
        "description": "Generate UTM-tagged tracking links for campaigns. Creates properly formatted URLs with source, medium, campaign, term, and content parameters.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "base_url": {
                    "type": "STRING",
                    "description": "The destination URL to tag."
                },
                "source": {
                    "type": "STRING",
                    "description": "Traffic source (e.g. 'twitter', 'newsletter', 'reddit')."
                },
                "medium": {
                    "type": "STRING",
                    "description": "Marketing medium (e.g. 'social', 'email', 'cpc', 'referral')."
                },
                "campaign": {
                    "type": "STRING",
                    "description": "Campaign name (e.g. 'spring_launch', 'beta_invite')."
                },
                "term": {
                    "type": "STRING",
                    "description": "Optional: paid search keyword term."
                },
                "content": {
                    "type": "STRING",
                    "description": "Optional: used for A/B testing (e.g. 'hero_cta', 'sidebar_banner')."
                }
            },
            "required": ["base_url", "source", "medium", "campaign"]
        }
    },
    {
        "name": "growth_trending_topics",
        "description": "Find what's trending right now in a specific niche across Reddit, Twitter/X, Hacker News, and Product Hunt. Use for content ideation and newsjacking opportunities.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "niche": {
                    "type": "STRING",
                    "description": "The niche or industry to scan (e.g. 'AI tools', 'SaaS', 'browser extensions')."
                },
                "platforms": {
                    "type": "STRING",
                    "description": "Comma-separated platforms to check: reddit, twitter, hackernews, producthunt. Default all."
                }
            },
            "required": ["niche"]
        }
    }
];
