{"serverInfo":{"name":"measuremysite","version":"0.2.0"},"authentication":{"required":true,"schemes":["oauth2"]},"tools":[{"name":"get_setup","description":"How to install measuremy.site in this project: the script tag for a site in the account (the one chosen at sign-in, or the given domain, which is added if it's new and the plan has room), where it goes for each framework, how to track custom events, and whether the site is verified and receiving data yet.","inputSchema":{"type":"object","properties":{"domain":{"type":"string","description":"The project's production domain, like example.com. Defaults to the site chosen at sign-in. A domain the account doesn't have yet is added if the plan has room."}}},"annotations":{"title":"Get install snippet and status","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_overview","description":"Visitors and pageviews for the range, change vs the previous equal-length period, plus top sources, pages and events.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Traffic overview","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"get_timeseries","description":"Pageviews and unique visitors over time, bucketed by hour or day.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"granularity":{"type":"string","enum":["hour","day"]},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Traffic over time","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"find_traffic_spikes","description":"Detected traffic jumps (hourly pageviews far above the same hour in prior weeks), biggest first, each with its likely causes.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Find traffic spikes","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"explain_spike","description":"Ranked causes for one spike: which referrers/UTM sources, landing pages and custom events rose above baseline (with lift, % and share of the spike), plus annotations (deploys, posts, emails) in the preceding 24h.","inputSchema":{"type":"object","properties":{"spike_id":{"type":"integer"},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}},"required":["spike_id"]},"annotations":{"title":"Explain a traffic spike","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"top_sources","description":"Traffic sources (UTM source, else referrer host, else direct) ranked by pageviews.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Top traffic sources","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"top_pages","description":"Pages ranked by pageviews.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Top pages","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"top_countries","description":"Visitor countries ranked by pageviews, with the country name (\"XX\" is unknown).","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Top countries","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"top_browsers","description":"Browsers ranked by pageviews: Chrome, Firefox, Safari, Edge, Opera, Samsung Internet, Other. Visits recorded before browser tracking began are Unknown.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Top browsers","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"top_systems","description":"Operating systems ranked by pageviews: Windows, macOS, iOS, Android, Linux, ChromeOS, Other. Visits recorded before this tracking began are Unknown.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Top operating systems","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"query_visits","description":"Answer questions about this site's visits: count pageviews (or custom events) and unique visitors that match filters, optionally grouped. Examples: iOS visitors from the US last week (os=iOS, country=US); where Firefox users come from (browser=Firefox, group_by=source); signups per country (event=signup, group_by=country); /pricing views per day (page=/pricing, group_by=day). Only counts are returned; the site stores no IP addresses or user agents.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"type":{"type":"string","enum":["pageview","event","any"],"description":"Default pageview, or event when you filter or group by event."},"country":{"type":"string","description":"ISO code (US) or name (United States)."},"browser":{"type":"string","description":"e.g. Chrome, Firefox, Safari, Edge."},"os":{"type":"string","description":"e.g. Windows, macOS, iOS, Android, Linux."},"source":{"type":"string","description":"UTM source, else referrer host, else \"(direct)\"."},"referrer":{"type":"string","description":"Referring host, e.g. news.ycombinator.com."},"page":{"type":"string","description":"Exact path like /pricing, or a prefix ending in * like /blog/*."},"event":{"type":"string","description":"Custom event name, e.g. signup."},"group_by":{"type":"string","enum":["country","browser","os","source","referrer","page","event","day","hour","none"],"description":"Break the matches down by one dimension. Default none."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Count and group visits","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"recent_visits","description":"The most recent individual visits (newest first) matching the given filters (country, browser, OS, source, page, event): time, page, source, country, browser, OS and event properties. `visitor` is a short code that changes daily, so it only shows which rows on one day came from the same browser. No IP addresses or user agents are stored.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"type":{"type":"string","enum":["pageview","event","any"],"description":"Default any."},"country":{"type":"string"},"browser":{"type":"string"},"os":{"type":"string"},"source":{"type":"string"},"referrer":{"type":"string"},"page":{"type":"string"},"event":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Recent visits","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"list_events","description":"Custom events (from measuremysite.track) ranked by count.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Custom events","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"create_funnel","description":"Save a funnel: an ordered list of 2-8 steps visitors move through, e.g. [\"/\", \"/login\", \"signup\"]. A step starting with / is a page (exact path, or a prefix ending in *, like /docs/*); anything else is a custom event name (from measuremysite.track or an element with data-measuremysite-event). Returns the funnel with its first results. Visitors are matched within a single UTC day.","inputSchema":{"type":"object","properties":{"name":{"type":"string","maxLength":60,"description":"e.g. \"Homepage to signup\"."},"steps":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":8},"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}},"required":["name","steps"]},"annotations":{"title":"Create a funnel","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"get_funnel","description":"Where visitors drop off. Shows, for each step, how many visitors reached it, the share of the first step and of the previous step, how many were lost, and the biggest drop. Pass name or id for a saved funnel, steps to try an unsaved one, or nothing to get every saved funnel.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"integer"},"steps":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":8,"description":"Unsaved funnel: pages start with /, anything else is an event name."},"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Funnel drop-off","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"delete_funnel","description":"Delete a saved funnel by name or id.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"integer"},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Delete a funnel","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"get_whats_working","description":"Evidence for marketing planning: channels ranked by conversions with growth and conversion rate, growing pages, and spike causes that recur.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"What's working","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"get_growth_actions","description":"Ranked, concrete growth actions derived from this site's data (channels to double down on, pages to promote, what caused past spikes, best time to publish), each with evidence, steps, a suggested tracked link and how to measure it.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"24h\", \"7d\" or \"30d\" (max 90d). Default \"7d\"."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Growth actions","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"create_tracked_link","description":"Create a UTM-tagged link to a page on this site for one campaign, and log it so later traffic, spikes and conversions are credited to it. Each link carries its own campaign name, so one link per post, email or ad keeps results separate.","inputSchema":{"type":"object","properties":{"url":{"type":"string","description":"Page on this site, absolute or a path like /pricing. Default /."},"source":{"type":"string","description":"Where it will be shared, e.g. reddit, newsletter, x, linkedin."},"medium":{"type":"string","description":"social, email, cpc, referral, ... Default social."},"campaign":{"type":"string","description":"Short campaign name, e.g. launch-week."},"note":{"type":"string","maxLength":300,"description":"What is being published, for later reference."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}},"required":["source","campaign"]},"annotations":{"title":"Create a tracked campaign link","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"list_mentions","description":"Public posts and comments on Hacker News, Lobsters (and Reddit when enabled) that link this site, newest first, with score, comments and an estimate of the visitors that platform sent in the 48 hours after. The visitor figure is an estimate; campaigns created as tracked links have exact numbers.","inputSchema":{"type":"object","properties":{"range":{"type":"string","description":"Lookback window such as \"30d\" or \"90d\" (max 90d). Default \"30d\"."},"platform":{"type":"string","enum":["hn","lobsters","reddit","x","linkedin","bluesky","youtube","web"]},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows. Default 10."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Posts that link the site","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"add_post_link","description":"Record the live URL of a post you or the user published (Reddit, X, LinkedIn, Bluesky, a blog...) so it appears as a dot on the dashboard's traffic chart under 'Posts linking your site', on the date it was posted.","inputSchema":{"type":"object","properties":{"url":{"type":"string","description":"Full link to the live post, starting with https://."},"title":{"type":"string","maxLength":200,"description":"Short title of the post."},"posted_at":{"type":"string","description":"When it was posted, ISO 8601 UTC (e.g. 2026-10-06T14:30:00Z). Default: now."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}},"required":["url"]},"annotations":{"title":"Record a published post","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"get_campaign_results","description":"Traffic and same-day conversions per tracked campaign link, newest first. Omit campaign for all.","inputSchema":{"type":"object","properties":{"campaign":{"type":"string"},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Campaign results","readOnlyHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"set_public_dashboard","description":"Make this site's analytics dashboard public (or private again) and get its shareable link. The public page shows traffic, spikes and what caused them; growth actions, campaigns and setup always stay private.","inputSchema":{"type":"object","properties":{"public":{"type":"boolean","description":"true to publish, false to make private again. Default true."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}}},"annotations":{"title":"Share or unshare the dashboard","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"add_annotation","description":"Record something that may move traffic (deploy, launch, post, email, ad). Future spikes within 24h after it list it as a possible cause.","inputSchema":{"type":"object","properties":{"label":{"type":"string","maxLength":200},"kind":{"type":"string","enum":["deploy","launch","post","email","ad","other"]},"ts":{"type":"string","description":"ISO timestamp; defaults to now."},"domain":{"type":"string","description":"Which of the account's sites, like example.com. Defaults to the site chosen at sign-in."}},"required":["label"]},"annotations":{"title":"Log a deploy, launch or post","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}}],"resources":[],"prompts":[{"name":"make-public","description":"Share this site's analytics publicly and get the link (traffic, spikes and their causes; growth actions stay private)."},{"name":"make-private","description":"Turn off this site's public analytics dashboard."},{"name":"plan_marketing","description":"Plan and execute marketing that builds on what already works for this site, then measure it.","arguments":[{"name":"goal","description":"Optional goal, e.g. 'more signups'","required":false}]}]}