{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Glystn MCP tools","description":"Input and output schemas for the tools served at https://app.glystn.com/api/mcp. A tool's outputSchema describes the JSON object in its result's text block.","tools":[{"name":"count_mentions","title":"Count keyword mentions","description":"Count-only probe for a keyword spec (the same must/mustNot/match as find_posts_by_keyword); no posts, cheap. Returns `totalMatches` (the exact count for the dates with a startDate; else all time, which is about the last year since coverage is thin before Nov 2025, and only \"at least\" that many when `totalIsFloor` is set: it stops counting near 200,000 a platform), the exact window count `last12Months` and `monthly` (the last 12 months, or startDate to endDate up to 24 months; `windowMonths` says which), per-platform totals and monthly counts, `byLikeFloor` (window posts at 0/100/500/1000+ likes), `language` and `byCountry`. Size and tune a spec here first: counts cover every post, so they size what a page of posts only samples. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"must":{"minItems":1,"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Up to 3 items, all required. An item is a term or an OR-group (array, max 8) of spellings, plurals or aliases of one concept. Case, punctuation, # and @ are ignored; no stemming."},"mustNot":{"description":"Up to 3 excluded terms or OR-groups.","anyOf":[{"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Excluded exact phrases; items may be terms or OR-groups (max 8). Max 3 items."},{"type":"null"}]},"match":{"description":"phrase (default): a multi-word term matches as a phrase. all_words: each word anywhere; only for loose descriptions, never for sayings or names.","anyOf":[{"default":"phrase","description":"How a multi-word term matches (single words match the same either way). \"phrase\" (default): its words together, in order — anything said as a unit: a saying, slang or ritual (\"need a coke\", \"little treat\") or a multi-word name (\"Dr Pepper\", \"Coke Zero\"). \"all_words\": each word anywhere in the post, in any order — only for a loose description whose wording varies (\"protein shake\" also catching \"shake with extra protein\"); never to size a saying or a name, because common words meet by accident (\"need a coke\" is 65 posts as a phrase and 10,942 as all words).","type":"string","enum":["phrase","all_words"]},{"type":"null"}]},"textField":{"description":"Use caption for a caption-only request or transcript for a transcript-only request. Omit to search both.","anyOf":[{"type":"string","enum":["caption","transcript"]},{"type":"null"}]},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"startDate":{"description":"First day to include, YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"description":"Last day to include, YYYY-MM-DD (the whole day counts).","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"countryCodes":{"description":"Creator countries, ISO-2 (\"us\", \"gb\"); a region is a list. Creator country, not audience.","anyOf":[{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}]},"language":{"description":"Spoken language, ISO 639-1 (\"en\", \"es\"). Leave it out of country or market splits.","anyOf":[{"type":"string","minLength":2,"maxLength":12},{"type":"null"}]},"contentType":{"description":"What the audio is: speech (talking), lyrics (singing), asr_artifact (unclear audio).","anyOf":[{"type":"string","enum":["speech","lyrics","asr_artifact"]},{"type":"null"}]},"usernames":{"description":"Only these creators (handles without @).","anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"outliersOnly":{"description":"Only outlier posts: more than 2x the creator's usual likes, with at least 100 likes.","anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["must"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","description":"The keyword spec as it matched: “a phrase” in quotes, `+` between required items, `or` inside an OR-group, `not` before an exclusion."},"searchedFields":{"type":"array","items":{"type":"string","enum":["caption","transcript"]},"description":"The text searched: caption and transcript, or the one `textField` named."},"match":{"type":"string","enum":["phrase","all_words"],"description":"How multi-word terms matched: `phrase` (words together, in order) or `all_words` (each word anywhere)."},"totalMatches":{"type":"number","description":"Posts matching the spec at any likes, both platforms, within the filters. With a startDate it is the exact count for the dates; without one it is all time (about the last year, since coverage is thin before then), never less than `last12Months`."},"totalIsFloor":{"description":"A platform stopped counting at the count cap: read `totalMatches` as \"at least\" that many.","type":"boolean","const":true},"last12Months":{"type":"number","description":"Exact count over the window (`windowMonths`), both platforms, whatever its length."},"platformBreakdown":{"type":"array","items":{"$ref":"#/$defs/MentionPlatformBreakdown"},"description":"One row per platform searched."},"windowMonths":{"type":"number","description":"Calendar months (UTC) in the window: the last 12 by default, else the months the date filter covers (the newest kept when it runs long). The current month is partial."},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"The month, YYYY-MM (UTC)."},"count":{"type":"number","description":"Posts that month."}},"required":["month","count"],"additionalProperties":false},"description":"Exact counts per month over the window, oldest first, every month listed (zeros included). Months outside a date filter are left out."},"byLikeFloor":{"type":"array","items":{"$ref":"#/$defs/MentionLikeFloorCount"},"description":"Window posts at each likes floor, lowest first: the corpus that survives a `minLikes`."},"language":{"type":"object","properties":{"predictedEnglish":{"type":"array","items":{"$ref":"#/$defs/MentionLikeFloorCount"},"description":"Window posts whose spoken language is predicted English, per likes floor."},"otherPredicted":{"type":"array","items":{"$ref":"#/$defs/MentionLikeFloorCount"},"description":"Window posts with another predicted language, per likes floor."},"unclassified":{"type":"array","items":{"$ref":"#/$defs/MentionLikeFloorCount"},"description":"Window posts with no language prediction (most Instagram images and carousels), per likes floor."}},"required":["predictedEnglish","otherPredicted","unclassified"],"additionalProperties":false,"description":"The like floors split by predicted spoken language."},"byCountry":{"anyOf":[{"type":"object","properties":{"total":{"type":"number","description":"The window total the shares are of (equals `last12Months`)."},"countries":{"type":"array","items":{"$ref":"#/$defs/MentionCountryShare"},"description":"The top creator countries, most posts first."},"other":{"type":"number","description":"Window posts from smaller countries or with no country: `countries` plus `other` add up to `total`."}},"required":["total","countries","other"],"additionalProperties":false},{"type":"null"}],"description":"Creator countries over the window. Null when a platform's index cannot group by country."}},"required":["query","searchedFields","match","totalMatches","last12Months","platformBreakdown","windowMonths","monthly","byLikeFloor","language","byCountry"],"additionalProperties":false,"$defs":{"MentionPlatformBreakdown":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"totalMatches":{"type":"number","description":"This platform's `totalMatches`: all likes, within the filters."},"totalIsFloor":{"description":"This platform stopped counting at the count cap: read its total as \"at least\".","type":"boolean","const":true},"windowTotal":{"type":"number","description":"Exact count over the window on this platform."},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"The month, YYYY-MM (UTC)."},"count":{"type":"number","description":"Posts that month."}},"required":["month","count"],"additionalProperties":false},"description":"Its monthly counts, the same months as the top-level `monthly`."}},"required":["platform","totalMatches","windowTotal","monthly"],"additionalProperties":false,"description":"One platform's share of a `count_mentions` result."},"MentionLikeFloorCount":{"type":"object","properties":{"minLikes":{"type":"number","description":"The likes floor."},"count":{"type":"number","description":"Window posts with at least that many likes (the 0 floor counts every window post, liked or not)."}},"required":["minLikes","count"],"additionalProperties":false,"description":"Posts in the window at one likes floor."},"MentionCountryShare":{"type":"object","properties":{"country":{"type":"string","description":"The creator's country (ISO-2, lowercase), not the audience's."},"count":{"type":"number","description":"Window posts by creators from there."},"share":{"type":"number","description":"That count as a 0-1 share of the window total, to 3 decimals."}},"required":["country","count","share"],"additionalProperties":false,"description":"One creator country in a window, by post count."}}}},{"name":"compare_mentions","title":"Compare mentions side by side","description":"Share of voice in one call: 2-8 keyword specs (brands, products, phrases) counted over the same window and filters. Each gets its total, `share` of the combined count, monthly counts, platform split and top creator countries. Shares are of the specs' sum, so a post naming two of them counts for both. Window: the last 12 months, or startDate to endDate (up to 24 months). Settle each spec with count_mentions first, so the comparison is drawn once. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"specs":{"minItems":2,"maxItems":8,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Name to report it under (\"Verizon\")."},"must":{"minItems":1,"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Up to 3 items, all required. An item is a term or an OR-group (array, max 8) of spellings, plurals or aliases of one concept. Case, punctuation, # and @ are ignored; no stemming."},"mustNot":{"description":"Up to 3 excluded terms or OR-groups.","anyOf":[{"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Excluded exact phrases; items may be terms or OR-groups (max 8). Max 3 items."},{"type":"null"}]},"match":{"description":"phrase (default): a multi-word term matches as a phrase. all_words: each word anywhere; only for loose descriptions, never for sayings or names.","anyOf":[{"default":"phrase","description":"How a multi-word term matches (single words match the same either way). \"phrase\" (default): its words together, in order — anything said as a unit: a saying, slang or ritual (\"need a coke\", \"little treat\") or a multi-word name (\"Dr Pepper\", \"Coke Zero\"). \"all_words\": each word anywhere in the post, in any order — only for a loose description whose wording varies (\"protein shake\" also catching \"shake with extra protein\"); never to size a saying or a name, because common words meet by accident (\"need a coke\" is 65 posts as a phrase and 10,942 as all words).","type":"string","enum":["phrase","all_words"]},{"type":"null"}]}},"required":["label","must"]},"description":"One spec per brand or phrase. Anchor ambiguous names to their category ([\"att\", \"wireless\"])."},"textField":{"description":"Use caption for a caption-only request or transcript for a transcript-only request. Omit to search both.","anyOf":[{"type":"string","enum":["caption","transcript"]},{"type":"null"}]},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"startDate":{"description":"First day to include, YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"description":"Last day to include, YYYY-MM-DD (the whole day counts).","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"countryCodes":{"description":"Creator countries, ISO-2 (\"us\", \"gb\"); a region is a list. Creator country, not audience.","anyOf":[{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}]},"language":{"description":"Spoken language, ISO 639-1 (\"en\", \"es\"). Leave it out of country or market splits.","anyOf":[{"type":"string","minLength":2,"maxLength":12},{"type":"null"}]},"contentType":{"description":"What the audio is: speech (talking), lyrics (singing), asr_artifact (unclear audio).","anyOf":[{"type":"string","enum":["speech","lyrics","asr_artifact"]},{"type":"null"}]},"usernames":{"description":"Only these creators (handles without @).","anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"outliersOnly":{"description":"Only outlier posts: more than 2x the creator's usual likes, with at least 100 likes.","anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["specs"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"window":{"type":"object","properties":{"from":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First month, YYYY-MM (UTC). Null when the window has no months."},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last month, YYYY-MM (UTC). Null when the window has no months."},"months":{"type":"number","description":"Months in the window."}},"required":["from","to","months"],"additionalProperties":false,"description":"The months every spec was counted over: the last 12 by default, else the months the date filter covers."},"platforms":{"type":"array","items":{"type":"string","enum":["instagram","tiktok"]},"description":"The platforms searched."},"searchedFields":{"type":"array","items":{"type":"string","enum":["caption","transcript"]},"description":"The text searched: caption and transcript, or the one `textField` named."},"combinedTotal":{"type":"number","description":"The specs' totals added up: what each `share` is of."},"specs":{"type":"array","items":{"$ref":"#/$defs/ShareOfVoiceSpec"},"description":"One row per spec, in the order given."}},"required":["window","platforms","searchedFields","combinedTotal","specs"],"additionalProperties":false,"$defs":{"ShareOfVoiceSpec":{"type":"object","properties":{"label":{"type":"string","description":"The name the spec was given."},"query":{"type":"string","description":"The keyword spec as it matched: “a phrase” in quotes, `+` between required items, `or` inside an OR-group, `not` before an exclusion."},"total":{"type":"number","description":"Exact count over the window for this spec, all likes."},"byPlatform":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The spec's window count on each platform searched, keyed by platform (`instagram`, `tiktok`)."},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"The month, YYYY-MM (UTC)."},"count":{"type":"number","description":"Posts that month."}},"required":["month","count"],"additionalProperties":false},"description":"Exact counts per month over the window, oldest first."},"byCountry":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/MentionCountryShare"}},{"type":"null"}],"description":"The spec's top 5 creator countries, shares of its own `total`. Null when a platform's index cannot group by country."},"share":{"type":"number","description":"`total` as a 0-1 share of `combinedTotal`, to 3 decimals. A post naming two specs counts for both."},"trendBoard":{"$ref":"#/$defs/TrendBoardFit"}},"required":["label","query","total","byPlatform","monthly","byCountry","share"],"additionalProperties":false,"description":"One spec of a `compare_mentions` result."},"MentionCountryShare":{"type":"object","properties":{"country":{"type":"string","description":"The creator's country (ISO-2, lowercase), not the audience's."},"count":{"type":"number","description":"Window posts by creators from there."},"share":{"type":"number","description":"That count as a 0-1 share of the window total, to 3 decimals."}},"required":["country","count","share"],"additionalProperties":false,"description":"One creator country in a window, by post count."},"TrendBoardFit":{"type":"object","properties":{"posts":{"type":"number","description":"Posts a default trend board on the spec would read: 100+ likes over the last 6 × 30 days, on the platforms searched."},"enough":{"type":"boolean","description":"True when that is 300 or more, enough for a board to find trends. Offer a board only then."}},"required":["posts","enough"],"additionalProperties":false,"description":"Whether a trend board on a keyword spec would find trends. Sign-ins only (Claude, ChatGPT) whose plan has trend boards, and never with `textField`; absent when the count failed."}}}},{"name":"find_posts_by_keyword","title":"Find posts by keyword","description":"Posts whose caption or transcript contains every `must` item and no `mustNot` item. Returns `totalMatches` (all matches, any likes), monthly activity for the last 6 months (months with posts), and up to `limit` posts with at least `minLikes` likes (default 1000; pass 0 for all), newest first or by `sort`; page with `offset` (a long page can end before `limit`: `nextOffset` carries on). Totals stop counting near 200,000 a platform: `totalIsFloor` then marks one as \"at least\". Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"must":{"minItems":1,"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Up to 3 items, all required. An item is a term or an OR-group (array, max 8) of spellings, plurals or aliases of one concept. Case, punctuation, # and @ are ignored; no stemming."},"mustNot":{"description":"Up to 3 excluded terms or OR-groups.","anyOf":[{"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Excluded exact phrases; items may be terms or OR-groups (max 8). Max 3 items."},{"type":"null"}]},"match":{"description":"phrase (default): a multi-word term matches as a phrase. all_words: each word anywhere; only for loose descriptions, never for sayings or names.","anyOf":[{"default":"phrase","description":"How a multi-word term matches (single words match the same either way). \"phrase\" (default): its words together, in order — anything said as a unit: a saying, slang or ritual (\"need a coke\", \"little treat\") or a multi-word name (\"Dr Pepper\", \"Coke Zero\"). \"all_words\": each word anywhere in the post, in any order — only for a loose description whose wording varies (\"protein shake\" also catching \"shake with extra protein\"); never to size a saying or a name, because common words meet by accident (\"need a coke\" is 65 posts as a phrase and 10,942 as all words).","type":"string","enum":["phrase","all_words"]},{"type":"null"}]},"textField":{"description":"Use caption for a caption-only request or transcript for a transcript-only request. Omit to search both.","anyOf":[{"type":"string","enum":["caption","transcript"]},{"type":"null"}]},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"startDate":{"description":"First day to include, YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"description":"Last day to include, YYYY-MM-DD (the whole day counts).","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"countryCodes":{"description":"Creator countries, ISO-2 (\"us\", \"gb\"); a region is a list. Creator country, not audience.","anyOf":[{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}]},"language":{"description":"Spoken language, ISO 639-1 (\"en\", \"es\"). Leave it out of country or market splits.","anyOf":[{"type":"string","minLength":2,"maxLength":12},{"type":"null"}]},"contentType":{"description":"What the audio is: speech (talking), lyrics (singing), asr_artifact (unclear audio).","anyOf":[{"type":"string","enum":["speech","lyrics","asr_artifact"]},{"type":"null"}]},"usernames":{"description":"Only these creators (handles without @).","anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"outliersOnly":{"description":"Only outlier posts: more than 2x the creator's usual likes, with at least 100 likes.","anyOf":[{"type":"boolean"},{"type":"null"}]},"minLikes":{"description":"Returned posts have at least this many likes. Default 1000; 0 returns every match.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"minFollowers":{"description":"Creator's followers at posting time, at least.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"maxFollowers":{"description":"Creator's followers at posting time, at most.","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"sort":{"description":"date (newest, default), likes, views (TikTok by views; Instagram has no view sort, so its posts are picked by likes), or outlier (likes against the creator's usual).","anyOf":[{"type":"string","enum":["date","likes","views","outlier"]},{"type":"null"}]},"limit":{"description":"Posts to return (default 50).","anyOf":[{"type":"integer","minimum":1,"maximum":2000},{"type":"null"}]},"offset":{"description":"Posts to skip, for the next page (pass the last nextOffset).","anyOf":[{"type":"integer","minimum":0,"maximum":2000},{"type":"null"}]},"detail":{"description":"compact: ~400-byte rows (date, likes, views, followers, country, 280 characters of text; a video on both platforms is one row with `alsoOn`). full: every field, `textKind`, and the whole transcript from find_posts_by_keyword and from get_creator_posts pulls of more than 25 posts (other full rows cut text at 650 characters). Default compact in Claude and ChatGPT, full for API keys.","anyOf":[{"type":"string","enum":["compact","full"]},{"type":"null"}]}},"required":["must"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"query":{"type":"string","description":"The keyword spec as it matched: “a phrase” in quotes, `+` between required items, `or` inside an OR-group, `not` before an exclusion."},"match":{"type":"string","enum":["phrase","all_words"],"description":"How multi-word terms matched: `phrase` (words together, in order) or `all_words` (each word anywhere)."},"totalMatches":{"type":"number","description":"Every post matching the spec within the filters, at any likes, both platforms."},"totalIsFloor":{"description":"A platform stopped counting at the count cap: read `totalMatches` as \"at least\" that many.","type":"boolean","const":true},"matchesAtMinLikes":{"description":"Matches with at least `minLikesApplied` likes, the pool `posts` pages through. Sign-ins only (Claude, ChatGPT).","type":"number"},"matchesAtMinLikesIsFloor":{"description":"A platform stopped counting `matchesAtMinLikes` at the count cap: read it as \"at least\". Sign-ins only.","type":"boolean","const":true},"returnedCount":{"type":"number","description":"Posts in `posts`."},"sort":{"type":"string","enum":["date","likes","views","outlier"],"description":"The order of `posts`: `date` (newest first), `likes`, `views` (TikTok by views, Instagram by likes) or `outlier` (likes against the creator's usual)."},"offset":{"type":"number","description":"Posts skipped before this page."},"hasMore":{"type":"boolean","description":"More posts follow this page: call again with `nextOffset`."},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The `offset` for the next page. Null on the last page."},"page":{"description":"Present when a page drawn as a card was cut short to fit it: says to call again with `nextOffset`. Sign-ins in clients that draw cards only.","type":"string"},"minLikesApplied":{"type":"number","description":"The likes floor `posts` were picked at: `minLikes`, else the default."},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/KeywordPost"},{"$ref":"#/$defs/CompactPost"}]},"description":"The page of posts in `sort` order, one row per post: full rows for API keys by default, compact rows for sign-ins by default, or as `detail` asks."},"monthlyActivity":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"The month, YYYY-MM (UTC)."},"count":{"type":"number","description":"Posts that month."}},"required":["month","count"],"additionalProperties":false},"description":"Counts per month over the last 6 months (all likes, within the filters), both platforms, oldest first; months with no posts are left out."},"platform":{"type":"string","const":"combined"},"platformBreakdown":{"type":"array","items":{"$ref":"#/$defs/KeywordPlatformBreakdown"},"description":"One row per platform searched."},"appliedFilters":{"type":"object","properties":{"must":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"A term, or an OR-group of terms (any one matches)."},"description":"The required items, as given."},"mustNot":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"A term, or an OR-group of terms (any one matches)."},"description":"The excluded items, as given (empty when none)."},"filters":{"type":"object","properties":{"textField":{"description":"The one text field searched.","type":"string","enum":["caption","transcript"]},"countryCodes":{"description":"Creator countries, ISO-2, lowercase.","type":"array","items":{"type":"string"}},"language":{"description":"Spoken language code.","type":"string"},"contentType":{"description":"What the audio is: `speech`, `lyrics` or `asr_artifact`.","type":"string"},"usernames":{"description":"Only these creators.","type":"array","items":{"type":"string"}},"mediaType":{"description":"One media type (from a legacy `filters` object).","type":"string"},"dateStart":{"description":"First day, as given (`startDate`).","type":"string"},"dateEnd":{"description":"Last day, as given (`endDate`).","type":"string"},"outliersOnly":{"type":"boolean"},"minFollowers":{"type":"number"},"maxFollowers":{"type":"number"},"minLikes":{"type":"number","description":"The likes floor applied to `posts`."}},"required":["minLikes"],"additionalProperties":false,"description":"The filters applied; only those set appear."}},"required":["must","mustNot","filters"],"additionalProperties":false,"description":"The spec and filters the search ran with."},"trendBoard":{"description":"Whether a trend board on the spec would find trends. Sign-ins only, on the first page (`offset` 0).","$ref":"#/$defs/TrendBoardFit"}},"required":["success","query","match","totalMatches","returnedCount","sort","offset","hasMore","nextOffset","minLikesApplied","posts","monthlyActivity","platform","platformBreakdown","appliedFilters"],"additionalProperties":false,"description":"When the search ran"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"query":{"type":"string","description":"The keyword spec as it matched: “a phrase” in quotes, `+` between required items, `or` inside an OR-group, `not` before an exclusion."},"match":{"type":"string","enum":["phrase","all_words"],"description":"How multi-word terms matched: `phrase` (words together, in order) or `all_words` (each word anywhere)."}},"required":["success","error","query","match"],"additionalProperties":false,"description":"When the search failed or timed out (`error` says to narrow the terms or add filters)"}],"$defs":{"KeywordPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"username":{"type":"string","description":"The creator's handle (empty when not stored)."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted at, an ISO date-time (UTC). Null when not stored."},"likes":{"type":"number","description":"Likes (0 when not stored)."},"comments":{"type":"number","description":"Comments (0 when not stored)."},"plays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views: every TikTok post, Instagram Reels crawled recently. Null when not stored."},"shares":{"description":"Shares, TikTok only. Absent when not stored.","type":"number"},"saves":{"description":"Saves, TikTok only, on posts crawled since saves were stored. Absent when not stored.","type":"number"},"caption":{"type":"string","description":"The caption (empty when none)."},"transcript":{"type":"string","description":"The whole transcript (empty when none). On an image or carousel it describes the visuals."},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post."},"media_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`; null when not stored."},"predictions":{"anyOf":[{"type":"object","properties":{"type":{"description":"What the audio is: `speech`, `lyrics` or `asr_artifact` (unclear audio).","anyOf":[{"type":"string"},{"type":"null"}]},"language":{"description":"Spoken language, a lowercase code (`en`).","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}},{"type":"null"}],"description":"The post's stored content classification."},"country":{"description":"The creator's country (ISO-2, lowercase), not the audience's. Absent when unknown.","type":"string"},"language":{"description":"Spoken language code (`en`). Absent when unknown.","type":"string"},"likeOutlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post (3 = three times their typical likes). Null when not computed."},"commentOutlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Comments against the creator's usual post. Null when not computed."},"dna":{"description":"Post DNA labels. Absent on unlabeled posts.","$ref":"#/$defs/PostDna"},"platform":{"type":"string","enum":["instagram","tiktok"]},"profileImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's profile picture. Null with no handle."},"followersCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored."},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."}},"required":["id","username","date","likes","comments","plays","caption","transcript","permalink","media_type","predictions","likeOutlier","commentOutlier","platform","profileImageUrl","followersCount","textKind"],"additionalProperties":false,"description":"A full `find_posts_by_keyword` row: what API keys get by default, and any caller that passes `detail: \"full\"`."},"PostDna":{"type":"object","properties":{"format":{"type":"string","description":"`trend`, `skit`, `talking`, `news`, `reaction`, `demo`, `performance`, `life`, `aesthetic`, `clip`, `quote_card` or `unclear`."},"driver":{"type":"string","description":"What makes it land: `humor`, `hype`, `relatable`, `practical`, `awe`, `thirst`, `outrage`, `emotional` or `other`."},"who":{"type":"string","description":"Who posted it: `creator`, `brand` or `media`."},"sponsored":{"type":"boolean","description":"A sponsored or promotional post."},"sentiment":{"type":"string","description":"`pos`, `neu` or `neg`."},"risk":{"type":"string","description":"Brand safety: `none`, `sensitive` or `unsafe`."},"subject":{"type":"string","description":"What the post is about, in six words or fewer."},"entities":{"type":"array","items":{"type":"string"},"description":"Brands, products, places and people the post names."}},"required":["format","driver","who","sponsored","sentiment","risk","subject","entities"],"additionalProperties":false,"title":"Post DNA","description":"Post DNA labels, on labeled posts only (top posts since mid-May 2026): absent means unlabeled."},"CompactPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post."},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok"]},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's handle."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted on, YYYY-MM-DD (UTC)."},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments":{"anyOf":[{"type":"number"},{"type":"null"}]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's country (ISO code), not the audience's."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Spoken language code."},"outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post: 3 means three times their typical likes."},"sponsored":{"description":"Paid post, on DNA-labeled posts only.","type":"boolean"},"alsoOn":{"description":"The same video on the creator's other platform, folded into this row.","type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["platform","url","likes","views"],"additionalProperties":false},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."},"text":{"type":"string","description":"The transcript, else the caption, cut to 280 characters."}},"required":["id","url","platform","username","date","likes","views","comments","followers","country","language","outlier","textKind","text"],"additionalProperties":false,"title":"Post","description":"A compact post row (about 400 bytes): what Claude and ChatGPT sign-ins get by default, and any caller that passes `detail: \"compact\"`."},"KeywordPlatformBreakdown":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"totalMatches":{"type":"number","description":"This platform's matches at any likes, within the filters."},"totalIsFloor":{"description":"This platform stopped counting at the count cap: read its total as \"at least\".","type":"boolean","const":true},"returnedCount":{"type":"number","description":"This platform's posts on the page returned."},"minLikesApplied":{"type":"number","description":"The likes floor its posts were picked at."},"monthlyActivity":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"The month, YYYY-MM (UTC)."},"count":{"type":"number","description":"Posts that month."}},"required":["month","count"],"additionalProperties":false},"description":"Its counts per month over the last 6 months (all likes), oldest first; months with no posts are left out."}},"required":["platform","totalMatches","returnedCount","minLikesApplied","monthlyActivity"],"additionalProperties":false,"description":"One platform's share of an `find_posts_by_keyword` result."},"TrendBoardFit":{"type":"object","properties":{"posts":{"type":"number","description":"Posts a default trend board on the spec would read: 100+ likes over the last 6 × 30 days, on the platforms searched."},"enough":{"type":"boolean","description":"True when that is 300 or more, enough for a board to find trends. Offer a board only then."}},"required":["posts","enough"],"additionalProperties":false,"description":"Whether a trend board on a keyword spec would find trends. Sign-ins only (Claude, ChatGPT) whose plan has trend boards, and never with `textField`; absent when the count failed."}}}},{"name":"find_posts_by_meaning","title":"Find posts by meaning","description":"Posts ranked by closeness in meaning to `query` across Instagram and TikTok transcripts and captions: discovery and broad themes. Vague queries drift, and there is no total count; for exact names, phrases or volumes use find_posts_by_keyword and count_mentions. Returns `posts` and `appliedFilters`. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"description":"What the posts are about, as a specific description (\"moms comparing school lunch ideas\")."},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"limit":{"description":"Posts to return (default 30), split across platforms for both.","anyOf":[{"type":"number","minimum":1},{"type":"null"}]},"startDate":{"description":"First day to include, YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"description":"Last day to include, YYYY-MM-DD (the whole day counts).","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"countryCodes":{"description":"Creator countries, ISO-2 (\"us\", \"gb\"); a region is a list. Creator country, not audience.","anyOf":[{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}]},"language":{"description":"Spoken language, ISO 639-1 (\"en\", \"es\"). Leave it out of country or market splits.","anyOf":[{"type":"string","minLength":2,"maxLength":12},{"type":"null"}]},"contentType":{"description":"What the audio is: speech (talking), lyrics (singing), asr_artifact (unclear audio).","anyOf":[{"type":"string","enum":["speech","lyrics","asr_artifact"]},{"type":"null"}]},"minLikes":{"description":"At least this many likes.","anyOf":[{"type":"number"},{"type":"null"}]},"minViews":{"description":"At least this many views (TikTok only; Instagram is not filtered).","anyOf":[{"type":"number"},{"type":"null"}]},"minFollowers":{"description":"Creator's followers at posting time, at least.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"maxFollowers":{"description":"Creator's followers at posting time, at most.","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"outliersOnly":{"description":"Only outlier posts: more than 2x the creator's usual likes, with at least 100 likes.","anyOf":[{"type":"boolean"},{"type":"null"}]},"detail":{"description":"compact: ~400-byte rows (date, likes, views, followers, country, 280 characters of text; a video on both platforms is one row with `alsoOn`). full: every field, `textKind`, and the whole transcript from find_posts_by_keyword and from get_creator_posts pulls of more than 25 posts (other full rows cut text at 650 characters). Default compact in Claude and ChatGPT, full for API keys.","anyOf":[{"type":"string","enum":["compact","full"]},{"type":"null"}]}},"required":["query"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"resultCount":{"type":"number","description":"Posts in `posts`."},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok"]},{"type":"string","const":"both"}],"description":"The platform choice searched."},"appliedFilters":{"type":"object","properties":{"startDate":{"description":"First day, as given.","type":"string"},"endDate":{"description":"Last day, as given.","type":"string"},"minLikes":{"type":"number"},"minPlayCount":{"description":"Minimum views (`minViews`), TikTok only.","type":"number"},"minFollowers":{"type":"number"},"maxFollowers":{"type":"number"},"language":{"description":"Spoken language code.","type":"string"},"contentType":{"description":"What the audio is: `speech`, `lyrics` or `asr_artifact`.","type":"string"},"countryCodes":{"description":"Creator countries, ISO-2, lowercase.","type":"array","items":{"type":"string"}},"countryCode":{"description":"One creator country, from the legacy `countryCode` argument when `countryCodes` is not given.","type":"string"},"highPerforming":{"description":"Outlier posts only (`outliersOnly`).","type":"boolean"}},"additionalProperties":false,"description":"The filters applied; only those set appear."},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/SemanticPost"},{"$ref":"#/$defs/SemanticPostLight"},{"$ref":"#/$defs/CompactPost"}]},"description":"Posts closest in meaning first, one row per post: full rows for API keys by default, compact rows for sign-ins by default, or as `detail` asks."}},"required":["success","resultCount","platform","appliedFilters","posts"],"additionalProperties":false,"description":"When the search ran"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"resultCount":{"type":"number","const":0},"posts":{"type":"array","items":{"not":{}},"description":"Always empty."}},"required":["success","error","resultCount","posts"],"additionalProperties":false,"description":"When the search failed"}],"$defs":{"SemanticPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"username":{"type":"string","description":"The creator's handle."},"platform":{"type":"string","enum":["instagram","tiktok"]},"date":{"type":"string","description":"Posted at, an ISO date-time (UTC)."},"likes":{"type":"number"},"comments":{"type":"number"},"plays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views: every TikTok post, Instagram Reels crawled recently. Null when not stored or 0."},"shares":{"description":"Shares, TikTok only. Absent when not stored.","type":"number"},"saves":{"description":"Saves, TikTok only, on posts crawled since saves were stored. Absent when not stored.","type":"number"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caption, cut to 650 characters. Null when none."},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The transcript, cut to 650 characters. Null when none. On an image or carousel it describes the visuals."},"permalink":{"type":"string","description":"Link to the post."},"mediaType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`; null when not stored."},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the audio is: `speech`, `lyrics` or `asr_artifact` (unclear audio). Null when not classified."},"likeOutlier":{"description":"Likes against the creator's usual post (3 = three times their typical likes). Absent when not computed.","type":"number"},"followersCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored. Null when not stored."},"country":{"description":"The creator's country (ISO-2, lowercase), not the audience's. Absent when unknown.","type":"string"},"language":{"description":"Spoken language code (`en`). Absent when unknown.","type":"string"},"dna":{"description":"Post DNA labels. Absent on unlabeled posts.","$ref":"#/$defs/PostDna"},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."},"relevanceScore":{"type":"number","description":"Closeness in meaning to `query` (higher is closer)."}},"required":["id","username","platform","date","likes","comments","plays","caption","transcript","permalink","mediaType","contentType","followersCount","textKind","relevanceScore"],"additionalProperties":false,"description":"A full `find_posts_by_meaning` row: what API keys get by default, and any caller that passes `detail: \"full\"`."},"PostDna":{"type":"object","properties":{"format":{"type":"string","description":"`trend`, `skit`, `talking`, `news`, `reaction`, `demo`, `performance`, `life`, `aesthetic`, `clip`, `quote_card` or `unclear`."},"driver":{"type":"string","description":"What makes it land: `humor`, `hype`, `relatable`, `practical`, `awe`, `thirst`, `outrage`, `emotional` or `other`."},"who":{"type":"string","description":"Who posted it: `creator`, `brand` or `media`."},"sponsored":{"type":"boolean","description":"A sponsored or promotional post."},"sentiment":{"type":"string","description":"`pos`, `neu` or `neg`."},"risk":{"type":"string","description":"Brand safety: `none`, `sensitive` or `unsafe`."},"subject":{"type":"string","description":"What the post is about, in six words or fewer."},"entities":{"type":"array","items":{"type":"string"},"description":"Brands, products, places and people the post names."}},"required":["format","driver","who","sponsored","sentiment","risk","subject","entities"],"additionalProperties":false,"title":"Post DNA","description":"Post DNA labels, on labeled posts only (top posts since mid-May 2026): absent means unlabeled."},"SemanticPostLight":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"username":{"type":"string","description":"The creator's handle."},"platform":{"type":"string","enum":["instagram","tiktok"]},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The transcript, cut to 150 characters. Null when none."},"permalink":{"type":"string","description":"Link to the post."},"country":{"description":"The creator's country (ISO-2, lowercase), not the audience's. Absent when unknown.","type":"string"},"language":{"description":"Spoken language code (`en`). Absent when unknown.","type":"string"}},"required":["id","username","platform","transcript","permalink"],"additionalProperties":false,"description":"A legacy light `find_posts_by_meaning` row: API keys that pass `light: true` without a `detail`."},"CompactPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post."},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok"]},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's handle."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted on, YYYY-MM-DD (UTC)."},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments":{"anyOf":[{"type":"number"},{"type":"null"}]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's country (ISO code), not the audience's."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Spoken language code."},"outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post: 3 means three times their typical likes."},"sponsored":{"description":"Paid post, on DNA-labeled posts only.","type":"boolean"},"alsoOn":{"description":"The same video on the creator's other platform, folded into this row.","type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["platform","url","likes","views"],"additionalProperties":false},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."},"text":{"type":"string","description":"The transcript, else the caption, cut to 280 characters."}},"required":["id","url","platform","username","date","likes","views","comments","followers","country","language","outlier","textKind","text"],"additionalProperties":false,"title":"Post","description":"A compact post row (about 400 bytes): what Claude and ChatGPT sign-ins get by default, and any caller that passes `detail: \"compact\"`."}}}},{"name":"get_posts_by_url","title":"Get posts by link","description":"Posts by URL or id (Instagram, TikTok, YouTube), up to 25 a call: caption, transcript, engagement, and comments when stored. An Instagram or TikTok post not yet indexed is fetched live and saved, and its creator is queued for indexing. YouTube videos are read live and not saved: title, channel, description, transcript (English captions), views, likes, length, the top 20 comments and `sponsoredDisclosed` (YouTube's paid-placement flag). Image and carousel \"transcripts\" describe the visuals; only predictions.type \"speech\" on a video is quotable as something said. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"urls":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1},"description":"Array of Instagram, TikTok, or YouTube post URLs, shortcodes, or video IDs. Max 25."}},"required":["urls"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean","const":true},"toolCallId":{"description":"This call's request id.","type":"string"},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/StoredPost"},{"$ref":"#/$defs/FetchedInstagramPost"},{"$ref":"#/$defs/FetchedTikTokPost"},{"$ref":"#/$defs/YouTubeVideo"}]},"description":"One row per post found, every row in full: YouTube videos first, then indexed Instagram and TikTok posts in the order given, then the ones read live."},"metadata":{"type":"object","properties":{"total":{"type":"number","description":"Posts in `posts`."},"failed":{"type":"array","items":{"$ref":"#/$defs/GetPostsFailedInput"},"description":"The URLs and ids that returned no post, each with why."}},"required":["total","failed"],"additionalProperties":false,"description":"How many came back, and which did not."}},"required":["success","posts","metadata"],"additionalProperties":false,"$defs":{"StoredPost":{"type":"object","properties":{"_id":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"object","properties":{"low":{"type":"number","description":"The low 32 bits."},"high":{"type":"number","description":"The high 32 bits."},"unsigned":{"type":"boolean"}},"required":["low","high","unsigned"],"additionalProperties":false,"description":"A 64-bit id stored as a number too large for JSON, given as its two 32-bit halves."}],"description":"The post's stored id: a string or a number, or the `{ low, high, unsigned }` halves of a 64-bit number too large for JSON."},"username":{"type":"string","description":"The creator's handle."},"permalink":{"type":"string","description":"Link to the post."},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caption. Null when none."},"transcript":{"description":"The whole transcript. Absent until the crawler reads the post. On an image or carousel it describes the visuals.","type":"string"},"media_type":{"type":"string","description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`."},"predictions":{"anyOf":[{"type":"object","properties":{"type":{"description":"What the audio is: `speech`, `lyrics` or `asr_artifact` (unclear audio).","anyOf":[{"type":"string"},{"type":"null"}]},"language":{"description":"Spoken language, a lowercase code (`en`).","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}},{"type":"null"}],"description":"The post's stored content classification."},"like_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"play_count":{"description":"Views: every TikTok post, Instagram Reels crawled recently. Absent or null when not stored.","anyOf":[{"type":"number"},{"type":"null"}]},"share_count":{"description":"Shares, TikTok only.","anyOf":[{"type":"number"},{"type":"null"}]},"repost_count":{"description":"Reposts, TikTok only.","anyOf":[{"type":"number"},{"type":"null"}]},"save_count":{"description":"Saves, TikTok only, on posts crawled since saves were stored.","type":"number"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted at, an ISO date-time (UTC). Null when not known."},"followers_count":{"description":"The creator's followers when the post was stored.","anyOf":[{"type":"number"},{"type":"null"}]},"comments":{"description":"Stored comments, when Glystn has read them. Absent on most posts.","anyOf":[{"type":"array","items":{"$ref":"#/$defs/StoredComment"}},{"type":"null"}]},"dna":{"description":"Post DNA labels. Absent on unlabeled posts.","$ref":"#/$defs/PostDna"},"platform":{"type":"string","enum":["instagram","tiktok"]},"creatorUsual":{"description":"The creator's median likes and views over their latest indexed posts: judge the post against these, not against followers.","$ref":"#/$defs/CreatorUsual"}},"required":["_id","username","permalink","caption","media_type","like_count","comments_count","date","platform"],"additionalProperties":false,"description":"An Instagram or TikTok post Glystn has indexed, with the stored fields as stored. A post first saved by `get_posts_by_url` keeps only what the live read gave (no transcript, predictions or DNA) until the crawler reads it."},"StoredComment":{"type":"object","properties":{"text":{"type":"string"},"username":{"type":"string","description":"The commenter's handle or name."},"likes":{"type":"number","description":"Likes on the comment (often 0 when not known)."}},"required":["text","username","likes"],"additionalProperties":false,"description":"One comment on a post."},"PostDna":{"type":"object","properties":{"format":{"type":"string","description":"`trend`, `skit`, `talking`, `news`, `reaction`, `demo`, `performance`, `life`, `aesthetic`, `clip`, `quote_card` or `unclear`."},"driver":{"type":"string","description":"What makes it land: `humor`, `hype`, `relatable`, `practical`, `awe`, `thirst`, `outrage`, `emotional` or `other`."},"who":{"type":"string","description":"Who posted it: `creator`, `brand` or `media`."},"sponsored":{"type":"boolean","description":"A sponsored or promotional post."},"sentiment":{"type":"string","description":"`pos`, `neu` or `neg`."},"risk":{"type":"string","description":"Brand safety: `none`, `sensitive` or `unsafe`."},"subject":{"type":"string","description":"What the post is about, in six words or fewer."},"entities":{"type":"array","items":{"type":"string"},"description":"Brands, products, places and people the post names."}},"required":["format","driver","who","sponsored","sentiment","risk","subject","entities"],"additionalProperties":false,"title":"Post DNA","description":"Post DNA labels, on labeled posts only (top posts since mid-May 2026): absent means unlabeled."},"CreatorUsual":{"type":"object","properties":{"basedOnPosts":{"type":"number","description":"The creator's latest indexed posts the medians are of."},"medianLikes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median likes, skipping hidden like counts. Null when none is known."},"medianViews":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views. Null when none of the posts has views."}},"required":["basedOnPosts","medianLikes","medianViews"],"additionalProperties":false,"description":"What the post's creator usually gets, over their latest indexed posts on the platform: judge the post against this, not against followers. Absent when Glystn has no posts of theirs."},"FetchedInstagramPost":{"type":"object","properties":{"_id":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"The post's id, as Instagram gives it."},"username":{"type":"string","description":"The creator's handle."},"permalink":{"type":"string","description":"Link to the post."},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caption. Null when none."},"media_type":{"type":"string","enum":["VIDEO","CAROUSEL_ALBUM","IMAGE"]},"like_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted at, an ISO date-time (UTC). Null when not known."},"followers_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers now."},"comments":{"description":"The comments the post page showed. Absent when none.","type":"array","items":{"$ref":"#/$defs/StoredComment"}},"platform":{"type":"string","const":"instagram"},"creatorUsual":{"description":"The creator's median likes and views over their latest indexed posts: judge the post against these, not against followers.","$ref":"#/$defs/CreatorUsual"}},"required":["_id","username","permalink","caption","media_type","like_count","comments_count","date","followers_count","platform"],"additionalProperties":false,"description":"An Instagram post Glystn had not indexed, read live and saved; its creator is queued for indexing. No transcript yet."},"FetchedTikTokPost":{"type":"object","properties":{"_id":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"The video's id, as TikTok gives it."},"username":{"type":"string","description":"The creator's handle."},"permalink":{"type":"string","description":"Link to the post."},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caption. Null when none."},"media_type":{"type":"string","const":"VIDEO"},"like_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"play_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views."},"share_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"repost_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted at, an ISO date-time (UTC). Null when not known."},"followers_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers now."},"platform":{"type":"string","const":"tiktok"},"creatorUsual":{"description":"The creator's median likes and views over their latest indexed posts: judge the post against these, not against followers.","$ref":"#/$defs/CreatorUsual"}},"required":["_id","username","permalink","caption","media_type","like_count","comments_count","play_count","share_count","repost_count","date","followers_count","platform"],"additionalProperties":false,"description":"A TikTok post Glystn had not indexed, read live and saved; its creator is queued for indexing. No transcript or comments yet."},"YouTubeVideo":{"type":"object","properties":{"_id":{"type":"string","description":"The video's id."},"platform":{"type":"string","const":"youtube"},"title":{"type":"string"},"username":{"type":"string","description":"The channel's name."},"permalink":{"type":"string","description":"Link to the video."},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The video's description. Null when empty."},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The English captions as text. Null when there are none."},"media_type":{"type":"string","const":"VIDEO"},"like_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes. Null when hidden."},"comments_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Comments. Null when not given."},"view_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views. Null when not given."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Published at, an ISO date-time (UTC). Null when not known."},"thumbnailUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The largest thumbnail."},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Length in seconds. Null when not known."},"comments":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/StoredComment"}},{"type":"null"}],"description":"Top comments by relevance, up to 20. Null when there are none or comments are off."},"channel":{"type":"object","properties":{"id":{"type":"string","description":"The channel's id."},"title":{"type":"string","description":"The channel's name."}},"required":["id","title"],"additionalProperties":false,"description":"The channel that posted it."},"sponsoredDisclosed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"YouTube's paid product placement flag. Null when YouTube doesn't say."}},"required":["_id","platform","title","username","permalink","caption","transcript","media_type","like_count","comments_count","view_count","date","thumbnailUrl","duration_seconds","comments","channel","sponsoredDisclosed"],"additionalProperties":false,"description":"A YouTube video, read live and not saved."},"GetPostsFailedInput":{"type":"object","properties":{"input":{"type":"string","description":"The URL or id as given (trimmed)."},"reason":{"type":"string","description":"Why it could not be read."}},"required":["input","reason"],"additionalProperties":false,"description":"A URL or id that came back with no post."}}}},{"name":"find_similar_posts_by_url","title":"Find posts like one post","description":"Posts closest in meaning to one post (by the post's stored embedding), on Instagram, TikTok or both. The post must be indexed: call get_posts_by_url first for one that is not. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"postLink":{"type":"string","description":"Instagram or TikTok post URL."},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"limit":{"description":"Posts to return (default 20), split across platforms for both.","anyOf":[{"type":"number","minimum":1,"maximum":100},{"type":"null"}]},"startDate":{"description":"First day to include, YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"detail":{"description":"compact (default in Claude and ChatGPT): rows with date, likes and 280 characters of text. full: every field. light (default for API keys): handle and 150 characters.","anyOf":[{"type":"string","enum":["compact","full","light"]},{"type":"null"}]}},"required":["postLink"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"resultCount":{"type":"number","description":"Posts in `posts`."},"sourcePost":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its creator's handle. Null when not stored."},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its transcript, else its caption, cut to 120 characters. Null when it has neither."}},"required":["platform","username","snippet"],"additionalProperties":false,"description":"The post the results are like."},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/SimilarPost"},{"$ref":"#/$defs/SimilarPostLight"},{"$ref":"#/$defs/CompactPost"}]},"description":"Posts closest in meaning, the source post left out: with both platforms, Instagram first, then TikTok. Compact rows for sign-ins by default, light rows for API keys by default, or as `detail` asks."}},"required":["success","resultCount","sourcePost","posts"],"additionalProperties":false,"description":"When the post was found"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"resultCount":{"type":"number","const":0},"posts":{"type":"array","items":{"not":{}},"description":"Always empty."}},"required":["success","error","resultCount","posts"],"additionalProperties":false,"description":"When the post is not indexed, has no embedding, or the search failed"}],"$defs":{"SimilarPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"username":{"type":"string","description":"The creator's handle."},"platform":{"type":"string","enum":["instagram","tiktok"]},"date":{"type":"string","description":"Posted at, an ISO date-time (UTC)."},"likes":{"type":"number"},"comments":{"type":"number"},"plays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views: every TikTok post, Instagram Reels crawled recently. Null when not stored or 0."},"shares":{"description":"Shares, TikTok only. Absent when not stored.","type":"number"},"saves":{"description":"Saves, TikTok only, on posts crawled since saves were stored. Absent when not stored.","type":"number"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caption, cut to 650 characters. Null when none."},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The transcript, cut to 650 characters. Null when none. On an image or carousel it describes the visuals."},"permalink":{"type":"string","description":"Link to the post."},"mediaType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`; null when not stored."},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the audio is: `speech`, `lyrics` or `asr_artifact` (unclear audio). Null when not classified."},"likeOutlier":{"description":"Likes against the creator's usual post (3 = three times their typical likes). Absent when not computed.","type":"number"},"followersCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored. Null when not stored."},"country":{"description":"The creator's country (ISO-2, lowercase), not the audience's. Absent when unknown.","type":"string"},"language":{"description":"Spoken language code (`en`). Absent when unknown.","type":"string"},"dna":{"description":"Post DNA labels. Absent on unlabeled posts.","$ref":"#/$defs/PostDna"},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."}},"required":["id","username","platform","date","likes","comments","plays","caption","transcript","permalink","mediaType","contentType","followersCount","textKind"],"additionalProperties":false,"description":"A full `find_similar_posts_by_url` row: what any caller that passes `detail: \"full\"` gets."},"PostDna":{"type":"object","properties":{"format":{"type":"string","description":"`trend`, `skit`, `talking`, `news`, `reaction`, `demo`, `performance`, `life`, `aesthetic`, `clip`, `quote_card` or `unclear`."},"driver":{"type":"string","description":"What makes it land: `humor`, `hype`, `relatable`, `practical`, `awe`, `thirst`, `outrage`, `emotional` or `other`."},"who":{"type":"string","description":"Who posted it: `creator`, `brand` or `media`."},"sponsored":{"type":"boolean","description":"A sponsored or promotional post."},"sentiment":{"type":"string","description":"`pos`, `neu` or `neg`."},"risk":{"type":"string","description":"Brand safety: `none`, `sensitive` or `unsafe`."},"subject":{"type":"string","description":"What the post is about, in six words or fewer."},"entities":{"type":"array","items":{"type":"string"},"description":"Brands, products, places and people the post names."}},"required":["format","driver","who","sponsored","sentiment","risk","subject","entities"],"additionalProperties":false,"title":"Post DNA","description":"Post DNA labels, on labeled posts only (top posts since mid-May 2026): absent means unlabeled."},"SimilarPostLight":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"username":{"type":"string","description":"The creator's handle."},"platform":{"type":"string","enum":["instagram","tiktok"]},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The transcript, cut to 150 characters. Null when none."},"permalink":{"type":"string","description":"Link to the post."},"country":{"description":"The creator's country (ISO-2, lowercase), not the audience's. Absent when unknown.","type":"string"},"language":{"description":"Spoken language code (`en`). Absent when unknown.","type":"string"}},"required":["id","username","platform","transcript","permalink"],"additionalProperties":false,"description":"A light `find_similar_posts_by_url` row: what API keys get by default, and any caller that passes `detail: \"light\"`."},"CompactPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post."},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok"]},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's handle."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted on, YYYY-MM-DD (UTC)."},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments":{"anyOf":[{"type":"number"},{"type":"null"}]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's country (ISO code), not the audience's."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Spoken language code."},"outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post: 3 means three times their typical likes."},"sponsored":{"description":"Paid post, on DNA-labeled posts only.","type":"boolean"},"alsoOn":{"description":"The same video on the creator's other platform, folded into this row.","type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["platform","url","likes","views"],"additionalProperties":false},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."},"text":{"type":"string","description":"The transcript, else the caption, cut to 280 characters."}},"required":["id","url","platform","username","date","likes","views","comments","followers","country","language","outlier","textKind","text"],"additionalProperties":false,"title":"Post","description":"A compact post row (about 400 bytes): what Claude and ChatGPT sign-ins get by default, and any caller that passes `detail: \"compact\"`."}}}},{"name":"find_creators_by_content","title":"Find creators by what they post","description":"Creators who talk about something in their videos, ranked by how many on-topic posts they have (not by size). Give one of: `topic` (one subject; also says how many creators cover it), `topics` (2-4 subjects a creator must ALL cover, e.g. a team and coffee), or `likePosts` (1-5 post URLs: creators making similar content). Filter by followers, country and platform (and startDate with `topic`). Each creator: handle, platforms, on-topic posts, a snippet with its `postUrl`, followers, country, bio and `recent` (median views and likes and view rate over their latest 30 posts), so a shortlist needs no get_creator_stats call. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"topic":{"description":"One subject, by meaning (\"budget travel with kids\").","anyOf":[{"type":"string","minLength":3},{"type":"null"}]},"topics":{"anyOf":[{"minItems":2,"maxItems":4,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40,"description":"Short name (\"Knicks\")."},"about":{"description":"What their posts are about, by meaning (\"New York Knicks fandom\").","anyOf":[{"type":"string","minLength":3},{"type":"null"}]},"keywords":{"description":"Or exact words they say: names, brands, hashtags (any of them).","anyOf":[{"maxItems":20,"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]}},"required":["label"],"description":"One topic: `about` (by meaning) or `keywords` (exact words), not both."}},{"type":"null"}]},"likePosts":{"description":"Post URLs whose creators you want more of.","anyOf":[{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"minFollowers":{"description":"Creator's followers at posting time, at least.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"maxFollowers":{"description":"Creator's followers at posting time, at most.","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"countryCodes":{"description":"One creator country, ISO-2 (\"us\").","anyOf":[{"maxItems":1,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}]},"startDate":{"description":"With `topic`: only count posts from this day on (recent activity), YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"minOnTopicPosts":{"description":"Require this many on-topic posts (2+ for consistent creators). Default 1.","anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"limit":{"description":"Creators to return (default 50).","anyOf":[{"type":"integer","minimum":1,"maximum":200},{"type":"null"}]}},"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"mode":{"type":"string","const":"topic"},"topic":{"type":"string","description":"The topic searched."},"poolSize":{"type":"object","properties":{"creators":{"type":"number","description":"Every creator with a post on the topic in the pull (after `startDate` and the country pre-filter, before the follower, profile-country and `minOnTopicPosts` cuts)."},"withTwoOrMorePosts":{"type":"number","description":"Of those, creators with two or more on-topic posts."}},"required":["creators","withTwoOrMorePosts"],"additionalProperties":false,"description":"How many creators cover the topic in all."},"count":{"type":"number","description":"Creators in `creators`."},"creators":{"type":"array","items":{"$ref":"#/$defs/TopicCreator"},"description":"The top of the pool after the filters."},"note":{"type":"string","description":"How `poolSize` and `creators` differ."}},"required":["success","mode","topic","poolSize","count","creators","note"],"additionalProperties":false,"description":"When `mode` is `topic`"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"mode":{"type":"string","const":"topics"},"topics":{"type":"array","items":{"type":"string"},"description":"The topic labels, in the order given."},"count":{"type":"number","description":"Creators in `creators`."},"creators":{"type":"array","items":{"$ref":"#/$defs/MultiTopicCreator"}},"filteredOut":{"description":"Creators found that the follower or country filter dropped; absent when it dropped none.","type":"number"},"note":{"description":"Says how many the filters dropped, when they dropped any.","type":"string"}},"required":["success","mode","topics","count","creators"],"additionalProperties":false,"description":"When `mode` is `topics`"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"mode":{"type":"string","const":"likePosts"},"seeds":{"type":"number","description":"The `likePosts` posts found in the index and used."},"count":{"type":"number","description":"Creators in `creators`."},"creators":{"type":"array","items":{"$ref":"#/$defs/LookalikeCreator"}},"filteredOut":{"description":"Creators found that the follower or country filter dropped; absent when it dropped none.","type":"number"},"note":{"description":"Says how many the filters dropped, when they dropped any.","type":"string"}},"required":["success","mode","seeds","count","creators"],"additionalProperties":false,"description":"When `mode` is `likePosts`"}],"$defs":{"TopicCreator":{"type":"object","properties":{"username":{"type":"string"},"platforms":{"type":"array","items":{"type":"string","enum":["instagram","tiktok"]},"description":"The platforms their on-topic posts are on."},"onTopicPosts":{"type":"number","description":"Their posts on the topic (close enough in meaning), across those platforms."},"fit":{"type":"number","description":"Their best post's similarity to the topic, 0-1 to three decimals."},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Current profile followers (the Instagram profile when they post there, else TikTok), else the most a post of theirs recorded; null when unknown."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's profile country, lowercase ISO-2 (`us`); null when unknown."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile bio, cut short (ending in an ellipsis when cut); null when there is none."},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The start of their best-matching post's transcript; null when it has none."},"postUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post `snippet` is from; null when not stored."},"recent":{"anyOf":[{"$ref":"#/$defs/CreatorRecentStats"},{"type":"null"}],"description":"Their latest posts' numbers; null when none are indexed on that platform or the read failed."}},"required":["username","platforms","onTopicPosts","fit","followers","country","bio","snippet","postUrl","recent"],"additionalProperties":false,"description":"A creator who posts about the topic, ranked by on-topic posts, then by fit."},"CreatorRecentStats":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"],"description":"The platform these numbers are from: the one their followers were read on."},"basedOnPosts":{"type":"number","description":"Their latest indexed posts the numbers are over."},"medianViews":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views, rounded, over those with a view count; null when none has one."},"medianLikes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median likes, rounded, over those that show a real like count (hidden likes, which Instagram reports as 3, left out); null when every one hides them."},"viewRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views divided by followers, to three decimals; null without views or followers."}},"required":["platform","basedOnPosts","medianViews","medianLikes","viewRate"],"additionalProperties":false,"description":"How a creator's latest indexed posts on one platform do, so a shortlist needs no get_creator_stats call."},"MultiTopicCreator":{"type":"object","properties":{"username":{"type":"string"},"postsPerTopic":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Their posts on each topic, keyed by topic label."},"snippets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The start of one of their posts on each topic, keyed by topic label; empty when that post has no transcript."},"postUrls":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":"Link to the post each snippet is from, keyed by topic label; null when not stored."},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Current profile followers (the Instagram profile when they have one, else TikTok); null when unknown or zero."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's profile country, lowercase ISO-2 (`us`); null when unknown."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile bio, cut short (ending in an ellipsis when cut); null when there is none."},"recent":{"anyOf":[{"$ref":"#/$defs/CreatorRecentStats"},{"type":"null"}],"description":"Their latest posts' numbers; null when none are indexed on that platform or the read failed."}},"required":["username","postsPerTopic","snippets","postUrls","followers","country","bio","recent"],"additionalProperties":false,"description":"A creator with posts on every topic asked for, ranked by their weakest topic, then by their total."},"LookalikeCreator":{"type":"object","properties":{"username":{"type":"string"},"platform":{"type":"string","enum":["instagram","tiktok"]},"similarPosts":{"type":"number","description":"Their posts among the seed posts' nearest neighbours, by meaning."},"fit":{"type":"number","description":"Their best post's similarity to a seed post, 0-1 to three decimals."},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Current profile followers; null when unknown or zero."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's profile country, lowercase ISO-2 (`us`); null when unknown."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile bio, cut short (ending in an ellipsis when cut); null when there is none."},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The start of their best-matching post's transcript; null when it has none."},"postUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post `snippet` is from; null when not stored."},"recent":{"anyOf":[{"$ref":"#/$defs/CreatorRecentStats"},{"type":"null"}],"description":"Their latest posts' numbers; null when none are indexed on that platform or the read failed."}},"required":["username","platform","similarPosts","fit","followers","country","bio","snippet","postUrl","recent"],"additionalProperties":false,"description":"A creator (not one of the seed posts' own) whose posts are like the seed posts, ranked by similar posts, then by fit."}}}},{"name":"find_creators_by_bio","title":"Find creators by bio","description":"Creators whose bio or handle contains ANY word of ANY `must` term (a soft match: profiles matching more words rank higher), with follower and country filters, one platform per call (default instagram). Bios only: for creators who talk about a topic in their videos, use find_creators_by_content. Returns profiles with followers, bio, country, category and other accounts; page with `cursor`. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"must":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Primary keywords for the biography or username. Each item is a string or an array of synonyms (OR-group, e.g. [\"Bay Area\", \"Central Valley\"]). All items are treated as soft matches—1-2 strong terms usually work best."},"mustNot":{"anyOf":[{"default":[],"description":"Optional exclusions for biography text. Each item is a string or an array of synonyms (OR-group).","type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]}},{"type":"null"}],"description":"Optional exclusions for biography text. Each item is a string or an array of synonyms (OR-group)."},"minFollowers":{"anyOf":[{"description":"Optional minimum follower count filter.","type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Optional minimum follower count filter."},"maxFollowers":{"anyOf":[{"description":"Optional maximum follower count filter.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Optional maximum follower count filter."},"countryCodes":{"anyOf":[{"description":"Creator countries, ISO-2 (\"gb\"); a region is a list. Profiles with no country on file are left out.","maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}],"description":"Creator countries, ISO-2 (\"gb\"); a region is a list. Profiles with no country on file are left out."},"platform":{"anyOf":[{"default":"instagram","description":"Target platform for discovery results.","type":"string","enum":["instagram","tiktok"]},{"type":"null"}],"description":"Target platform for discovery results."},"limit":{"anyOf":[{"default":30,"description":"Maximum number of creators to return per call (default 30, max 100).","type":"integer","minimum":1,"maximum":100},{"type":"null"}],"description":"Maximum number of creators to return per call (default 30, max 100)."},"cursor":{"anyOf":[{"description":"Pagination cursor. Supply the previous response’s `nextCursor` to fetch more results.","type":"string"},{"type":"null"}],"description":"Pagination cursor. Supply the previous response’s `nextCursor` to fetch more results."}},"required":["must"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean","const":true},"toolCallId":{"description":"This call's request id.","type":"string"},"platform":{"type":"string","enum":["instagram","tiktok"],"description":"The platform searched."},"search":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string"},"description":"The profile fields searched: the bio and the handle."},"anyOf":{"type":"array","items":{"type":"string"},"description":"The `must` terms searched, OR-groups flattened."},"excluded":{"type":"array","items":{"type":"string"},"description":"The `mustNot` terms, OR-groups flattened."},"matching":{"type":"string","description":"How matching works, in words."},"followerRange":{"type":"object","properties":{"min":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"`minFollowers`, or null."},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"`maxFollowers`, or null."}},"required":["min","max"],"additionalProperties":false,"description":"The follower bounds applied."}},"required":["fields","anyOf","excluded","matching","followerRange"],"additionalProperties":false,"description":"What was searched, to judge a thin result by."},"totalBioMatches":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Profiles matching the terms before the follower and country filters; null when the count failed."},"filters":{"type":"object","properties":{"minFollowers":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxFollowers":{"anyOf":[{"type":"number"},{"type":"null"}]},"countryCodes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The countries asked for, lowercase; null for any."},"limit":{"type":"number","description":"Profiles a page."}},"required":["minFollowers","maxFollowers","countryCodes","limit"],"additionalProperties":false,"description":"The filters applied."},"pageSize":{"type":"number","description":"Profiles a page (`limit`)."},"totalConsidered":{"type":"number","description":"Profiles returned so far: earlier pages plus this one."},"hasMore":{"type":"boolean","description":"More profiles after this page."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` for the next page; null on the last."},"creators":{"type":"array","items":{"$ref":"#/$defs/CreatorBioMatch"}}},"required":["success","platform","search","totalBioMatches","filters","pageSize","totalConsidered","hasMore","nextCursor","creators"],"additionalProperties":false,"$defs":{"CreatorBioMatch":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The profile's Glystn id."},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile display name (older Instagram profiles only)."},"biography":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The whole bio."},"matchedTerms":{"type":"array","items":{"type":"string"},"description":"The words the search matched in this bio or handle, lowercase."},"followersCount":{"type":"number","description":"Current profile followers (0 when not stored)."},"mediaCount":{"type":"number","description":"Posts their profile says they have (0 when not stored)."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile country, ISO-2 as stored; null when unknown."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Instagram's profile category (\"Digital creator\"), older profiles only."},"profilePictureUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The website link on the profile."},"lastCrawledAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When Glystn last crawled them, ISO date-time; null when never, so their posts aren't indexed yet (get_creator_posts adds them)."},"relevanceScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Search relevance: higher matches more of the terms."},"platform":{"type":"string","enum":["instagram","tiktok"]},"additionalPlatforms":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."}},"required":["id","username","fullName","biography","matchedTerms","followersCount","mediaCount","country","category","profilePictureUrl","website","lastCrawledAt","relevanceScore","platform","additionalPlatforms"],"additionalProperties":false,"description":"A profile whose bio or handle matches, ranked by relevance, then by followers."},"LinkedCreatorAccount":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"username":{"type":"string","description":"Their handle there."}},"required":["platform","username"],"additionalProperties":false,"description":"Another account of the same creator, from Glystn's linked-profile data (profiles that link to each other). Never the platform asked about."}}}},{"name":"find_creator_by_name","title":"Find a creator by name or handle","description":"A person's name or a partial handle to their Instagram and TikTok accounts, best match first (exact handle, then profile name, then handle prefix), with followers, country, bio and linked accounts. Different people share names, so read the bios; TikTok has no display names. Not for finding creators by topic (find_creators_by_content). Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":2,"description":"A name (\"Grace Andrews\") or a full or partial handle (\"grace.andr\")."},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]}},"required":["query"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean","const":true},"query":{"type":"string","description":"The name or handle asked for."},"candidates":{"type":"array","items":{"$ref":"#/$defs/CreatorLookupCandidate"},"description":"Matching accounts, strongest match first, then most followers; a few per platform."},"note":{"description":"Guidance when nothing matched, when only one platform matched, or when both did (two accounts are one person only when `otherPlatforms` links them or a bio names the other).","type":"string"}},"required":["success","query","candidates"],"additionalProperties":false,"$defs":{"CreatorLookupCandidate":{"type":"object","properties":{"username":{"type":"string"},"platform":{"type":"string","enum":["instagram","tiktok"]},"profileUrl":{"type":"string","description":"Link to the profile."},"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile display name; null when none (always on TikTok, which has none)."},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Current profile followers; null when not stored."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile country, ISO-2 as stored; null when unknown."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Instagram's profile category, older profiles only."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"match":{"type":"string","description":"Why it matched, strongest first: `handle` (the handle exactly), `name` (the profile name has every word, or the handle is the name run together), `handle prefix`, or `similar`."},"otherPlatforms":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."}},"required":["username","platform","profileUrl","fullName","followers","country","category","bio","match","otherPlatforms"],"additionalProperties":false,"description":"An account matching the name or handle. Different people share names: read the bio."},"LinkedCreatorAccount":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"username":{"type":"string","description":"Their handle there."}},"required":["platform","username"],"additionalProperties":false,"description":"Another account of the same creator, from Glystn's linked-profile data (profiles that link to each other). Never the platform asked about."}}}},{"name":"get_creator_stats","title":"Compare creator stats (up to 20)","description":"Up to 20 creators in one call: followers, bio, places in the bio, other accounts, indexed and total posts, `firstIndexedPost` (how far back Glystn has them), posting rate, and over their latest 200 posts: median likes and views, view rate (median views / followers) and the share with sponsorship disclosures (#ad, paid partnership, discount codes). Reads the index only; a creator not indexed comes back `indexed: false` (get_creator_posts adds them). Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"creators":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"username":{"type":"string","minLength":1,"description":"Handle without the @ (never guessed from a name: use find_creator_by_name)."},"platform":{"type":"string","enum":["instagram","tiktok"]}},"required":["username","platform"]}}},"required":["creators"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean","const":true},"count":{"type":"number","description":"Creators in `creators`."},"creators":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/CreatorProfileIndexed"},{"$ref":"#/$defs/CreatorProfileNotIndexed"},{"$ref":"#/$defs/CreatorProfileFailed"}]},"description":"One row per creator asked for, in the order given."}},"required":["success","count","creators"],"additionalProperties":false,"$defs":{"CreatorProfileIndexed":{"type":"object","properties":{"username":{"type":"string","description":"The handle asked for, without a leading @."},"platform":{"type":"string","enum":["instagram","tiktok"]},"indexed":{"type":"boolean","const":true},"name":{"type":"string","description":"Profile display name, else the username (always on TikTok, which stores none)."},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Current profile followers, else the count on their newest indexed post; null when unknown."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"bioLocations":{"type":"array","items":{"type":"string"},"description":"Places the bio states (place names and flag emoji), in order; get_creator_location reads their posts for more."},"otherAccounts":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."},"indexedPosts":{"type":"number","description":"Their posts in Glystn's index on this platform."},"postsOnPlatform":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Posts their profile says they have; null when unknown."},"firstIndexedPost":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their oldest indexed post, YYYY-MM-DD (UTC): how far back Glystn has them."},"lastPost":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their newest indexed post, YYYY-MM-DD (UTC)."},"postsPerMonth":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Indexed posts a month between their oldest and newest, one decimal; null with fewer than two."},"recent":{"description":"Over their latest indexed posts.","$ref":"#/$defs/CreatorPostStats"}},"required":["username","platform","indexed","name","followers","bio","bioLocations","otherAccounts","indexedPosts","postsOnPlatform","firstIndexedPost","lastPost","postsPerMonth","recent"],"additionalProperties":false,"description":"A creator with posts in the index."},"LinkedCreatorAccount":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"username":{"type":"string","description":"Their handle there."}},"required":["platform","username"],"additionalProperties":false,"description":"Another account of the same creator, from Glystn's linked-profile data (profiles that link to each other). Never the platform asked about."},"CreatorPostStats":{"type":"object","properties":{"basedOnPosts":{"type":"number","description":"Posts the numbers are over, a post stored twice counted once."},"medianLikes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median likes, rounded, over posts that show a real like count (hidden likes, which Instagram reports as 3, left out); null when every post hides them."},"medianViews":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views, rounded, over posts with a view count; null when none has one."},"postsWithViews":{"type":"number","description":"Posts with a view count."},"viewRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views divided by followers, to three decimals (0.25 means a quarter of their followers); null without views or followers."},"sponsoredShare":{"type":"number","description":"Share of the posts with a sponsorship disclosure in the caption or transcript (#ad, paid partnership, gifted, discount codes, affiliate links and the like) or the platform's paid-partnership label, 0-1 to three decimals. Disclosed deals only."},"sponsoredMarkers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The disclosure markers that fired, keyed by marker (`#ad`, `discount code`, `paid partnership label`...), each with its post count, most common first."}},"required":["basedOnPosts","medianLikes","medianViews","postsWithViews","viewRate","sponsoredShare","sponsoredMarkers"],"additionalProperties":false,"description":"How a set of one creator's posts do: median likes and views, views against followers and the share with sponsorship disclosures."},"CreatorProfileNotIndexed":{"type":"object","properties":{"username":{"type":"string","description":"The handle asked for, without a leading @."},"platform":{"type":"string","enum":["instagram","tiktok"]},"indexed":{"type":"boolean","const":false},"note":{"type":"string","description":"Why there are no posts: the account issue the crawler recorded (private, not found, restricted), else that get_creator_posts adds them."},"otherAccounts":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."}},"required":["username","platform","indexed","note","otherAccounts"],"additionalProperties":false,"description":"A creator with no posts in the index."},"CreatorProfileFailed":{"type":"object","properties":{"username":{"type":"string","description":"The handle asked for, without a leading @."},"platform":{"type":"string","enum":["instagram","tiktok"]},"error":{"type":"string","description":"What went wrong reading this creator."}},"required":["username","platform","error"],"additionalProperties":false,"description":"A creator whose profile could not be read; the rest of the call still succeeds."}}}},{"name":"get_creator_posts","title":"Get one creator's posts","description":"One creator's indexed posts on one platform: 25 per call by default, up to 1,000 (page with `cursor`), newest first or by `sort`, optionally searched with `query` (one word: exact text; several: by meaning). Also returns `metadata` (followers, bio, indexed post count, like and comment stats, posting rate), `summary` (median likes and views, view rate, sponsored share of the returned posts) and `additionalPlatforms` (their other accounts). A long page can end before `limit`: while `hasMore`, call again with `nextCursor` as `cursor` (`page` says how many of how many you have). `metadata.dateRange.oldest` is their oldest indexed post: how far back Glystn's history of them goes. A creator Glystn hasn't indexed yet is added on the spot (`crawlQueued`): the first posts land in about 90 seconds (`retryAfterSeconds`), so call again then. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"username":{"type":"string","minLength":1,"description":"Creator username without the leading @."},"platform":{"type":"string","enum":["instagram","tiktok"],"description":"Choose which platform to pull posts from."},"sort":{"anyOf":[{"default":"recent","description":"Optional sort order. Defaults to recent chronology. Other options sort descending by engagement/outlier metrics.","type":"string","enum":["recent","like_count","comments_count","like_outlier","comment_outlier"]},{"type":"null"}],"description":"Optional sort order. Defaults to recent chronology. Other options sort descending by engagement/outlier metrics."},"mediaType":{"anyOf":[{"description":"Optional filter to only return VIDEO posts.","type":"string","enum":["VIDEO"]},{"type":"null"}],"description":"Optional filter to only return VIDEO posts."},"query":{"anyOf":[{"description":"Optional search within this creator. One word uses exact text search; multiple words use semantic vector search.","type":"string","minLength":1},{"type":"null"}],"description":"Optional search within this creator. One word uses exact text search; multiple words use semantic vector search."},"cursor":{"anyOf":[{"description":"Pagination cursor. Supply the `nextCursor` from a previous response to fetch the next page.","type":"string"},{"type":"null"}],"description":"Pagination cursor. Supply the `nextCursor` from a previous response to fetch the next page."},"limit":{"anyOf":[{"description":"Posts per call (default 25). Use a high limit (e.g. 1000) to pull the creator's full indexed history in one call for catalog-wide analysis.","type":"integer","minimum":1,"maximum":1000},{"type":"null"}],"description":"Posts per call (default 25). Use a high limit (e.g. 1000) to pull the creator's full indexed history in one call for catalog-wide analysis."},"detail":{"description":"compact: ~400-byte rows (date, likes, views, followers, country, 280 characters of text; a video on both platforms is one row with `alsoOn`). full: every field, `textKind`, and the whole transcript from find_posts_by_keyword and from get_creator_posts pulls of more than 25 posts (other full rows cut text at 650 characters). Default compact in Claude and ChatGPT, full for API keys.","anyOf":[{"type":"string","enum":["compact","full"]},{"type":"null"}]}},"required":["username","platform"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/CreatorPostRow"},{"$ref":"#/$defs/CompactPost"}]},"description":"Their posts. Compact rows (sign-ins by default, or `detail: \"compact\"`) or full rows (API keys by default, or `detail: \"full\"`), one row per post; compact rows fold a video posted to both platforms into one. Compact rows here have null `followers`, `country` and `language`: read `metadata`."},"hasMore":{"type":"boolean","description":"More posts after this page."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` for the next page; null on the last."},"summary":{"description":"Over the posts on this page; absent when none came back.","$ref":"#/$defs/CreatorPostStats"},"page":{"description":"When more posts follow: how many are on this page (of how many) and to keep paging before concluding.","type":"string"},"totalConsidered":{"type":"number","description":"Their indexed posts on this platform (of `mediaType` when given)."},"metadata":{"type":"object","properties":{"indexedPosts":{"type":"number","description":"Their posts in Glystn's index on this platform (of `mediaType` when given)."},"platformTotalPosts":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Posts their profile says they have; null when unknown."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile bio; null when none."},"fullName":{"type":"string","description":"Profile display name, else the username (always on TikTok, which stores none): the only grounded source for their name."},"followersCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Current profile followers, else the count on their newest indexed post; null when unknown."},"dateRange":{"type":"object","properties":{"oldest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their oldest indexed post, ISO date-time: how far back Glystn's history of them goes."},"newest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their newest indexed post, ISO date-time."}},"required":["oldest","newest"],"additionalProperties":false,"description":"The span of their indexed posts."},"likeStats":{"anyOf":[{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"mean":{"type":"number","description":"Rounded."},"median":{"type":"number","description":"Rounded."},"p90":{"type":"number","description":"The 90th percentile."}},"required":["min","max","mean","median","p90"],"additionalProperties":false},{"type":"null"}],"description":"Likes over their indexed posts that show a real like count (hidden likes, which Instagram reports as 3, left out); null when every post hides them."},"commentStats":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"mean":{"type":"number","description":"Rounded."},"median":{"type":"number","description":"Rounded."}},"required":["min","max","mean","median"],"additionalProperties":false,"description":"Comments over their indexed posts."},"mediaTypeBreakdown":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Indexed posts by media type, keyed by type (`VIDEO`, `IMAGE`, `CAROUSEL_ALBUM`)."},"avgPostsPerMonth":{"description":"Indexed posts a month between their oldest and newest, one decimal; absent with fewer than two.","type":"number"}},"required":["indexedPosts","platformTotalPosts","bio","fullName","followersCount","dateRange","likeStats","commentStats","mediaTypeBreakdown"],"additionalProperties":false,"description":"The creator's profile and their whole indexed history's numbers (not just this page); absent when nothing is indexed."},"accountIssue":{"description":"Nothing is indexed and the crawler recorded why the account cannot be pulled: `private`, `not_found` or `restricted`. Say that instead of \"not indexed yet\".","type":"string","enum":["private","not_found","restricted"]},"accountIssueNote":{"description":"With `accountIssue`: what it means and what to do.","type":"string"},"postLookupError":{"description":"Nothing is indexed and the last profile lookup failed (with no account issue recorded).","type":"string"},"crawlQueued":{"description":"Glystn hadn't indexed this creator, and a first crawl of their recent posts was just queued (or one already is).","type":"boolean","const":true},"crawlNote":{"description":"With `crawlQueued`: that the empty result is not a coverage signal, and when to call again.","type":"string"},"retryAfterSeconds":{"description":"With `crawlQueued`: seconds until the first posts usually land; call again then.","type":"number"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `query` asked for, else null. A query on a creator with nothing indexed reads (and crawls) them like no query."},"username":{"type":"string","description":"The handle asked for, as given."},"platform":{"type":"string","enum":["instagram","tiktok"]},"sort":{"type":"string","enum":["recent","like_count","comments_count","like_outlier","comment_outlier"],"description":"The sort asked for (`recent` by default; a `query` ignores it)."},"mediaType":{"anyOf":[{"type":"string","enum":["VIDEO"]},{"type":"null"}],"description":"The media type asked for; null for all."},"additionalPlatforms":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."}},"required":["success","posts","hasMore","nextCursor","totalConsidered","query","username","platform","sort","mediaType","additionalPlatforms"],"additionalProperties":false,"description":"When posts are read from the index (no `query`, or a `query` on a creator Glystn has nothing indexed for)"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/CreatorPostSearchRow"},{"$ref":"#/$defs/CompactPost"}]},"description":"The posts the search found, best first. Compact rows (sign-ins by default, or `detail: \"compact\"`) or full rows (API keys by default, or `detail: \"full\"`), one row per post; compact rows fold a video posted to both platforms into one."},"hasMore":{"type":"boolean","description":"More posts after this page."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `cursor` for the next page; null on the last."},"summary":{"description":"Over the posts on this page; absent when none came back.","$ref":"#/$defs/CreatorPostStats"},"page":{"description":"When more posts follow: how many are on this page (of how many) and to keep paging before concluding.","type":"string"},"totalConsidered":{"type":"number","description":"Posts the search found (it reads a capped number)."},"searchType":{"type":"string","enum":["text","vector"],"description":"How `query` searched: `text` (one word, exact text) or `vector` (several words, by meaning)."},"query":{"type":"string","description":"The `query` searched."},"username":{"type":"string","description":"The handle asked for, as given."},"platform":{"type":"string","enum":["instagram","tiktok"]},"sort":{"type":"string","enum":["recent","like_count","comments_count","like_outlier","comment_outlier"],"description":"The sort asked for (`recent` by default; a `query` ignores it)."},"mediaType":{"anyOf":[{"type":"string","enum":["VIDEO"]},{"type":"null"}],"description":"The media type asked for; null for all."},"additionalPlatforms":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."}},"required":["success","posts","hasMore","nextCursor","totalConsidered","searchType","query","username","platform","sort","mediaType","additionalPlatforms"],"additionalProperties":false,"description":"When `query` searched the creator's posts (`searchType` set)"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"posts":{"type":"array","items":{"not":{}},"description":"Always empty."},"hasMore":{"type":"boolean","const":false},"nextCursor":{"type":"null"},"totalConsidered":{"type":"number","description":"Always 0."},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `query` asked for, else null."},"username":{"type":"string","description":"The handle asked for, as given."},"platform":{"type":"string","enum":["instagram","tiktok"]},"sort":{"type":"string","enum":["recent","like_count","comments_count","like_outlier","comment_outlier"],"description":"The sort asked for (`recent` by default; a `query` ignores it)."},"mediaType":{"anyOf":[{"type":"string","enum":["VIDEO"]},{"type":"null"}],"description":"The media type asked for; null for all."},"additionalPlatforms":{"type":"array","items":{"$ref":"#/$defs/LinkedCreatorAccount"},"description":"Their accounts on other platforms, where linked-profile data maps them; empty when none are known."}},"required":["success","error","posts","hasMore","nextCursor","totalConsidered","query","username","platform","sort","mediaType","additionalPlatforms"],"additionalProperties":false,"description":"When the posts could not be read"}],"$defs":{"CreatorPostRow":{"type":"object","properties":{"_id":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"The post's id."},"username":{"type":"string"},"caption":{"description":"The caption, cut short (ending in `...`) unless `limit` is over the default page size; null or absent when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"transcript":{"description":"The transcript, cut short (ending in `...`) unless `limit` is over the default page size; null or absent when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"date":{"description":"Posted at, ISO date-time.","type":"string"},"like_count":{"description":"Likes (Instagram reports hidden likes as 3).","type":"number"},"comments_count":{"type":"number"},"like_outlier":{"description":"Likes against the creator's average: 2 means twice.","type":"number"},"comment_outlier":{"description":"Comments against the creator's average.","type":"number"},"media_type":{"description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`.","type":"string"},"permalink":{"description":"Link to the post.","type":"string"},"predictions":{"description":"The post's content classification: `type` only here.","anyOf":[{"type":"object","properties":{"type":{"description":"What the audio is: `speech`, `lyrics` or `asr_artifact` (unclear audio).","anyOf":[{"type":"string"},{"type":"null"}]},"language":{"description":"Spoken language, a lowercase code (`en`).","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}},{"type":"null"}]},"is_paid_partnership":{"description":"The platform's paid-partnership label, where stored.","type":"boolean"},"play_count":{"description":"Views, where stored.","type":"number"},"share_count":{"description":"Shares (TikTok).","type":"number"},"save_count":{"description":"Saves (TikTok).","type":"number"},"comments":{"description":"Comments stored with the post (Instagram), as `{ text, username, likes }` rows (an older object shape on a few posts); absent, null or empty on most posts.","anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"username":{"type":"string"},"likes":{"type":"number"}},"additionalProperties":{}}},{"type":"object","properties":{},"additionalProperties":{}}]},{"type":"null"}]},"reason":{"description":"A stored field passed through as is, where present."},"terms":{"description":"A stored field passed through as is, where present."},"dna":{"$ref":"#/$defs/PostDna"},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."}},"required":["_id","username"],"additionalProperties":false,"description":"A full row of one creator's post read from the index (API keys by default, or `detail: \"full\"`): the stored fields below, each absent when not stored. `textKind` is added when the row stores a media type or content classification."},"PostDna":{"type":"object","properties":{"format":{"type":"string","description":"`trend`, `skit`, `talking`, `news`, `reaction`, `demo`, `performance`, `life`, `aesthetic`, `clip`, `quote_card` or `unclear`."},"driver":{"type":"string","description":"What makes it land: `humor`, `hype`, `relatable`, `practical`, `awe`, `thirst`, `outrage`, `emotional` or `other`."},"who":{"type":"string","description":"Who posted it: `creator`, `brand` or `media`."},"sponsored":{"type":"boolean","description":"A sponsored or promotional post."},"sentiment":{"type":"string","description":"`pos`, `neu` or `neg`."},"risk":{"type":"string","description":"Brand safety: `none`, `sensitive` or `unsafe`."},"subject":{"type":"string","description":"What the post is about, in six words or fewer."},"entities":{"type":"array","items":{"type":"string"},"description":"Brands, products, places and people the post names."}},"required":["format","driver","who","sponsored","sentiment","risk","subject","entities"],"additionalProperties":false,"title":"Post DNA","description":"Post DNA labels, on labeled posts only (top posts since mid-May 2026): absent means unlabeled."},"CompactPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post."},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok"]},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's handle."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted on, YYYY-MM-DD (UTC)."},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments":{"anyOf":[{"type":"number"},{"type":"null"}]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's country (ISO code), not the audience's."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Spoken language code."},"outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post: 3 means three times their typical likes."},"sponsored":{"description":"Paid post, on DNA-labeled posts only.","type":"boolean"},"alsoOn":{"description":"The same video on the creator's other platform, folded into this row.","type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["platform","url","likes","views"],"additionalProperties":false},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."},"text":{"type":"string","description":"The transcript, else the caption, cut to 280 characters."}},"required":["id","url","platform","username","date","likes","views","comments","followers","country","language","outlier","textKind","text"],"additionalProperties":false,"title":"Post","description":"A compact post row (about 400 bytes): what Claude and ChatGPT sign-ins get by default, and any caller that passes `detail: \"compact\"`."},"CreatorPostStats":{"type":"object","properties":{"basedOnPosts":{"type":"number","description":"Posts the numbers are over, a post stored twice counted once."},"medianLikes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median likes, rounded, over posts that show a real like count (hidden likes, which Instagram reports as 3, left out); null when every post hides them."},"medianViews":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views, rounded, over posts with a view count; null when none has one."},"postsWithViews":{"type":"number","description":"Posts with a view count."},"viewRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Median views divided by followers, to three decimals (0.25 means a quarter of their followers); null without views or followers."},"sponsoredShare":{"type":"number","description":"Share of the posts with a sponsorship disclosure in the caption or transcript (#ad, paid partnership, gifted, discount codes, affiliate links and the like) or the platform's paid-partnership label, 0-1 to three decimals. Disclosed deals only."},"sponsoredMarkers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The disclosure markers that fired, keyed by marker (`#ad`, `discount code`, `paid partnership label`...), each with its post count, most common first."}},"required":["basedOnPosts","medianLikes","medianViews","postsWithViews","viewRate","sponsoredShare","sponsoredMarkers"],"additionalProperties":false,"description":"How a set of one creator's posts do: median likes and views, views against followers and the share with sponsorship disclosures."},"LinkedCreatorAccount":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"username":{"type":"string","description":"Their handle there."}},"required":["platform","username"],"additionalProperties":false,"description":"Another account of the same creator, from Glystn's linked-profile data (profiles that link to each other). Never the platform asked about."},"CreatorPostSearchRow":{"type":"object","properties":{"_id":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"The post's id."},"username":{"type":"string"},"permalink":{"description":"Link to the post.","type":"string"},"caption":{"description":"The caption, cut short (ending in `...`) unless `limit` is over the default page size; null or absent when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"transcript":{"description":"The transcript, cut short (ending in `...`) unless `limit` is over the default page size; null or absent when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"date":{"description":"Posted at, ISO date-time.","type":"string"},"like_count":{"type":"number"},"comments_count":{"type":"number"},"play_count":{"description":"Views, where stored.","type":"number"},"like_outlier":{"type":"number"},"media_type":{"type":"string"},"followers_count":{"description":"The creator's followers when the post was stored.","type":"number"},"country_code":{"description":"The creator's country, ISO-2.","type":"string"},"predictions":{"anyOf":[{"type":"object","properties":{"type":{"description":"What the audio is: `speech`, `lyrics` or `asr_artifact` (unclear audio).","anyOf":[{"type":"string"},{"type":"null"}]},"language":{"description":"Spoken language, a lowercase code (`en`).","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}},{"type":"null"}],"description":"The post's stored content classification."},"dna":{"$ref":"#/$defs/PostDna"},"platform":{"type":"string","enum":["instagram","tiktok"]},"score":{"description":"Semantic searches only (`searchType` `vector`): similarity to the query.","type":"number"},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."}},"required":["_id","platform"],"additionalProperties":{},"description":"A full row of a post `query` found: the stored post document as is, plus any other stored field (vector embedding and processing fields left out), with `platform`, the semantic `score` and `textKind` added and its text cut as on index rows."}}}},{"name":"get_creator_location","title":"Get one creator's location","description":"Where a creator is based, from their bio and posts' text: `bioLocations` (places stated in the bio, the strongest signal), `mentions` (places named across posts, with post counts) and `postRegions` (TikTok posting regions). Words that are also place names can mislead, above all in non-English bios, so treat `mentions` as hints. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"username":{"type":"string","minLength":1,"description":"Creator username without the leading @."},"platform":{"anyOf":[{"description":"Optional; omit to auto-detect both Instagram and TikTok. When set, only check that platform.","type":"string","enum":["instagram","tiktok"]},{"type":"null"}],"description":"Optional; omit to auto-detect both Instagram and TikTok. When set, only check that platform."},"refresh":{"anyOf":[{"description":"Recompute and ignore cached location. Default: false (use cache if fresh).","type":"boolean"},{"type":"null"}],"description":"Recompute and ignore cached location. Default: false (use cache if fresh)."}},"required":["username"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"bioLocations":{"type":"array","items":{"type":"string"},"description":"Places the bio states (place names and flag-emoji countries), in order, without repeats: the strongest signal. Empty when none."},"mentions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The places named most across their posts, keyed by place, each with its post count, most first. Words that are also place names mislead: treat these as hints."},"postRegions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"TikTok posting regions, keyed by country name, each with its post count, most first; empty for Instagram."},"computedAt":{"type":"string","description":"When this was worked out, ISO date-time; a recent one is reused unless `refresh`."}},"required":["success","bioLocations","mentions","postRegions","computedAt"],"additionalProperties":false,"description":"When the location was read"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"bioLocations":{"type":"array","items":{"type":"string"},"description":"Places the bio states (place names and flag-emoji countries), in order, without repeats: the strongest signal. Empty when none."},"mentions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The places named most across their posts, keyed by place, each with its post count, most first. Words that are also place names mislead: treat these as hints."},"postRegions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"TikTok posting regions, keyed by country name, each with its post count, most first; empty for Instagram."},"computedAt":{"type":"string","description":"When this was worked out, ISO date-time; a recent one is reused unless `refresh`."}},"required":["success","error","bioLocations","mentions","postRegions","computedAt"],"additionalProperties":false,"description":"When the location could not be read (every signal empty)"}]}},{"name":"create_creator_list","title":"Save a creator list","description":"Free (costs no credits): save creators as a list in the user's Glystn account (the same lists as the app's Campaigns), to vet them with vet_creator_list or open them in Glystn. Pass each creator with its platform when you know it (the creator tools return it). Brand accounts named in excludeBrands are dropped; the result flags likely brand pages and possible duplicates of one person, and says how many creators can be vetted now. Saving the same name and creators again returns the list already saved (`alreadySaved`), not a second one. To shortlist from a brief, find creators first (find_creators_by_content, find_creators_by_bio).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The list name, in plain words (\"Protein creators, UK\")."},"creators":{"minItems":1,"maxItems":200,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"object","properties":{"username":{"type":"string","minLength":1,"maxLength":80},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok","youtube"]},{"type":"null"}]}},"required":["username"]}]},"description":"Up to 200 creators: {username, platform} (instagram, tiktok or youtube), or \"@handle\"."},"excludeBrands":{"description":"Brand, competitor and league names whose own accounts must never be on the list (their official handles are dropped now and on every later add).","anyOf":[{"maxItems":40,"type":"array","items":{"type":"string","minLength":2,"maxLength":60}},{"type":"null"}]}},"required":["name","creators"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean","const":true},"listId":{"type":"string","description":"The list's id."},"name":{"type":"string","description":"The list's name."},"url":{"type":"string","description":"The list in Glystn (Campaigns), with every score and quote."},"alreadySaved":{"description":"The same name, creators and excluded brands were already saved by this person, so no second list was made: this is that list as it stands now.","type":"boolean","const":true},"creatorCount":{"type":"number","description":"Creators on the list."},"readyToVet":{"type":"number","description":"Creators with Instagram or TikTok posts in Glystn, who can be vetted now."},"notIndexedYet":{"description":"Creators not in Glystn's index yet: vetting reads their posts first (a few minutes).","$ref":"#/$defs/CreatorListHandles"},"noInstagramOrTiktok":{"description":"Creators with no Instagram or TikTok account, who cannot be vetted.","$ref":"#/$defs/CreatorListHandles"},"excludedAsBrandAccounts":{"description":"Handles dropped as the official accounts of `excludeBrands`. Only from the call that made the list, never with `alreadySaved`.","type":"array","items":{"type":"string"}},"possibleDuplicates":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"description":"Pairs of handles that are probably one person (the same letters, or one edit apart)."},"likelyBrandAccounts":{"type":"array","items":{"type":"string"},"description":"Handles whose bio reads like a brand's own account."},"unreadableEntries":{"description":"Entries in `creators` that were not a creator handle, and were skipped.","type":"number"},"note":{"type":"string","description":"Where the list was saved, and what to check and call next."}},"required":["success","listId","name","url","creatorCount","readyToVet","possibleDuplicates","likelyBrandAccounts","note"],"additionalProperties":false,"$defs":{"CreatorListHandles":{"type":"object","properties":{"count":{"type":"number","description":"Creators in the group."},"handles":{"type":"array","items":{"type":"string"},"description":"Their handles: only the first ones when the group is large (`count` is its full size)."}},"required":["count","handles"],"additionalProperties":false,"description":"A group of creators on a list: how many, and their handles."}}}},{"name":"vet_creator_list","title":"Vet a saved creator list","description":"Score every creator on a saved list against the brief: Glystn's vetting reads each creator's own posts for every criterion (the app's vetting pipeline; results stay on the list in Glystn). Runs in the background, about a minute for 10 creators: it returns at once, then get_creator_list({listId, wait: true}) waits for the ranked shortlist, unless the result's note says the chat's card follows the run. A score is how clearly the posts show the criterion (70+ = a post clearly shows it). Creators Glystn has not indexed are read first, automatically. Cost: 1 credit per creator with new work (a list's size on its first run), charged when it starts; stored results for unchanged criteria are reused free, and changing a criterion's wording or the context re-scores everyone. If the account can't cover it, nothing starts or is charged and the result gives the shortfall. One run per list at a time.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"listId":{"type":"string","minLength":1,"description":"The list, from create_creator_list or get_creator_list."},"criteria":{"description":"The rubric, 2-3 is best (each one is a search and a judgment per creator). Replaces the list's criteria; omit it to re-run the saved ones (to score creators added or indexed since). Frequency, audience size and quality words don't work: they aren't things a post shows.","anyOf":[{"maxItems":10,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":120},{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":120,"description":"ONE thing a post would show, phrased like a creator says it on camera (\"I cook high-protein meals for my family\"). Never negated."},"role":{"description":"must: cut unless a post clearly shows it. must_not: cut if a post clearly shows it (write the thing itself: \"I promote energy drinks\"). nice (default): ranks only.","anyOf":[{"type":"string","enum":["must","must_not","nice"]},{"type":"null"}]}},"required":["text"]}]}},{"type":"null"}]},"location":{"description":"Where creators must be based (\"United Kingdom\", \"Los Angeles\"). Omit to keep the list's; \"\" removes it.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"locationStrict":{"description":"With location: true also cuts creators whose base cannot be verified (for in-market offers).","anyOf":[{"type":"boolean"},{"type":"null"}]},"context":{"description":"The brief the judge reads with every criterion (who the brand is, carve-outs like \"CPAs are fine\"); it never cuts anyone by itself. Omit to keep the list's.","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["listId"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"listId":{"type":"string","description":"The list's id."},"name":{"type":"string","description":"The list's name."},"url":{"type":"string","description":"The list in Glystn (Campaigns), with every score and quote."},"status":{"type":"string","enum":["not_vetted","indexing","running","ready_to_score","done","failed"],"description":"Where vetting stands: `not_vetted` (no criteria or location yet), `indexing` (creators' posts being read for the first time, nothing scored yet), `running` (a run is scoring), `ready_to_score` (creators can be scored with the saved criteria and none have been), `done`, or `failed` (the last run failed or was cancelled)."},"creatorCount":{"type":"number","description":"Creators on the list, not counting ones rejected in the app."},"criteria":{"type":"array","items":{"$ref":"#/$defs/CreatorListCriterion"},"description":"The list's saved criteria, in order."},"location":{"description":"The list's location requirement, when it has one.","type":"object","properties":{"requirement":{"type":"string","description":"Where creators must be based, as written."},"strict":{"type":"boolean","description":"Creators whose base cannot be verified are cut too."}},"required":["requirement","strict"],"additionalProperties":false},"progress":{"description":"Only while `status` is `running`.","type":"object","properties":{"scored":{"type":"number","description":"Creators scored since this run started."},"total":{"type":"number","description":"Those plus the creators the run still has to score."}},"required":["scored","total"],"additionalProperties":false},"scoredCount":{"type":"number","description":"Creators with a score (while running: scored in this run)."},"qualifiedCount":{"type":"number","description":"Scored creators not cut (while running: in this run)."},"disqualifiedCount":{"type":"number","description":"Scored creators cut by a must-have, a must-not or the location (while running: in this run)."},"shortlist":{"type":"array","items":{"$ref":"#/$defs/CreatorListShortlistRow"},"description":"Qualified creators, best score first, up to get_creator_list's `limit` (while running: this run's so far)."},"notScored":{"$ref":"#/$defs/CreatorListNotScored"},"unfinishedChecks":{"description":"Only when `status` is `done`: creators with a check the scorer couldn't finish. A re-run retries them free.","type":"number"},"creditsCharged":{"type":"number","description":"The run's price in credits, per creator with new work (an unlimited account's balance is not touched). 0 when another run was already going, when the scores were only recomputed, or when nothing on the list was indexed yet and its crawls started."},"alreadyRunning":{"description":"Another run is still vetting this list: these criteria were not applied and nothing was charged.","type":"boolean","const":true},"reweighed":{"description":"Nothing new to judge, so the scores were recomputed from stored results, free.","type":"boolean","const":true},"note":{"type":"string","description":"What happened, and what to tell the user and call next."}},"required":["success","listId","name","url","status","creatorCount","criteria","scoredCount","qualifiedCount","disqualifiedCount","shortlist","notScored","creditsCharged","note"],"additionalProperties":false,"description":"When the run is taken: started, already running, recomputed, or waiting on first crawls"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"notScored":{"$ref":"#/$defs/CreatorListNotScored"}},"required":["success","error","notScored"],"additionalProperties":false,"description":"When none of the creators can be scored"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What the call costs, what the account has, that nothing ran or was charged, and where to get more credits, ending on the link. To pass on as it is."},"code":{"type":"string","const":"out_of_credits"},"creditsNeeded":{"type":"number","description":"Credits the call needed."},"creditsLeft":{"type":"number","description":"Credits the account has, never below 0."},"plansUrl":{"description":"ChatGPT only, in place of `upgrade`: the page that describes Glystn's plans.","type":"string"},"upgrade":{"description":"Every app except ChatGPT: the upgrade to unlimited credits.","$ref":"#/$defs/UnlimitedUpgradeOffer"}},"required":["success","error","code","creditsNeeded","creditsLeft"],"additionalProperties":false,"description":"When the account can't cover the run"}],"$defs":{"CreatorListCriterion":{"type":"object","properties":{"text":{"type":"string","description":"What a post would show."},"role":{"type":"string","enum":["must","must_not","nice"],"description":"`must`: cut unless a post clearly shows it. `must_not`: cut if a post clearly shows it. `nice`: ranks only."}},"required":["text","role"],"additionalProperties":false,"description":"One of a list's vetting criteria."},"CreatorListShortlistRow":{"type":"object","properties":{"username":{"type":"string"},"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Followers as stored on the list; null when unknown."},"score":{"type":"number","description":"Overall fit, 0-100, rounded to a whole number."},"fit":{"type":"string","description":"The vetting summary of the fit, cut to 220 characters; empty when there is none."},"scores":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"null"}]},"description":"A score per criterion, in the order of `criteria`: 0-100, how clearly the creator's posts show it (70+ means a post clearly shows it). Null where that criterion is unscored or its check failed. A `must_not` score measures the disqualifier, not fit."},"evidence":{"anyOf":[{"$ref":"#/$defs/CreatorListEvidence"},{"type":"null"}],"description":"The strongest fit quote across their criteria (never a must-not); null when none has one."}},"required":["username","platform","followers","score","fit","scores","evidence"],"additionalProperties":false,"description":"A qualified creator on a vetted list."},"CreatorListEvidence":{"type":"object","properties":{"quote":{"type":"string","description":"The words from the post, cut to 240 characters."},"url":{"type":"string","description":"Link to the post."}},"required":["quote","url"],"additionalProperties":false,"description":"A post vetting cited for a criterion: its words and its link."},"CreatorListNotScored":{"type":"object","properties":{"indexing":{"description":"Creators whose posts Glystn is reading for the first time.","$ref":"#/$defs/CreatorListHandles"},"couldNotIndex":{"description":"Creators whose posts couldn't be fetched: the crawl failed, or was still queued when the import stopped waiting.","$ref":"#/$defs/CreatorListHandles"},"notIndexedYet":{"description":"Creators not in Glystn's index, with no crawl going: vet_creator_list starts one (free).","$ref":"#/$defs/CreatorListHandles"},"noInstagramOrTiktok":{"description":"Creators with no Instagram or TikTok account, who cannot be vetted.","$ref":"#/$defs/CreatorListHandles"},"readyToScore":{"description":"Creators that can be scored with the saved criteria (added or indexed since the last run): vet_creator_list scores them. Never while `status` is `running`.","$ref":"#/$defs/CreatorListHandles"}},"additionalProperties":false,"description":"The list's creators without a score, grouped by why. An empty group is left out."},"CreatorListHandles":{"type":"object","properties":{"count":{"type":"number","description":"Creators in the group."},"handles":{"type":"array","items":{"type":"string"},"description":"Their handles: only the first ones when the group is large (`count` is its full size)."}},"required":["count","handles"],"additionalProperties":false,"description":"A group of creators on a list: how many, and their handles."},"UnlimitedUpgradeOffer":{"type":"object","properties":{"plan":{"type":"string","const":"Unlimited","description":"The plan the link upgrades to, by name."},"freeTrialDays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Days of free trial the plan starts with; null when the account already has a plan or has had its free trial."},"url":{"type":"string","description":"The upgrade link: it signs the person in and opens checkout for the plan. An account that already has a plan or a team seat lands on the plans page instead."}},"required":["plan","freeTrialDays","url"],"additionalProperties":false,"description":"The upgrade to unlimited credits, with no price (the page shows it). Every app gets it except ChatGPT, which gets `plansUrl` instead."}}}},{"name":"get_creator_list","title":"Get a creator list and its vetting results","description":"Free (costs no credits): the user's Glystn creator lists. No listId: their lists, newest first (name, size, how many are scored). With listId: its vetting status (not_vetted, indexing, running, ready_to_score, done, failed), progress while it runs, and the ranked shortlist: each creator with an overall score, the fit in a line, a score per criterion and the post that shows it best. wait: true waits up to 45 seconds for a run to finish.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"listId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"wait":{"description":"While the list is running or indexing, wait up to 45 seconds for it to finish before answering.","anyOf":[{"type":"boolean"},{"type":"null"}]},"limit":{"description":"Shortlist creators (default 10) or lists (default 20) to return.","anyOf":[{"type":"integer","minimum":1,"maximum":50},{"type":"null"}]},"includeDisqualified":{"description":"Also list who was cut and why (the post, for a must-not).","anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"listId":{"type":"string","description":"The list's id."},"name":{"type":"string","description":"The list's name."},"url":{"type":"string","description":"The list in Glystn (Campaigns), with every score and quote."},"status":{"type":"string","enum":["not_vetted","indexing","running","ready_to_score","done","failed"],"description":"Where vetting stands: `not_vetted` (no criteria or location yet), `indexing` (creators' posts being read for the first time, nothing scored yet), `running` (a run is scoring), `ready_to_score` (creators can be scored with the saved criteria and none have been), `done`, or `failed` (the last run failed or was cancelled)."},"creatorCount":{"type":"number","description":"Creators on the list, not counting ones rejected in the app."},"criteria":{"type":"array","items":{"$ref":"#/$defs/CreatorListCriterion"},"description":"The list's saved criteria, in order."},"location":{"description":"The list's location requirement, when it has one.","type":"object","properties":{"requirement":{"type":"string","description":"Where creators must be based, as written."},"strict":{"type":"boolean","description":"Creators whose base cannot be verified are cut too."}},"required":["requirement","strict"],"additionalProperties":false},"progress":{"description":"Only while `status` is `running`.","type":"object","properties":{"scored":{"type":"number","description":"Creators scored since this run started."},"total":{"type":"number","description":"Those plus the creators the run still has to score."}},"required":["scored","total"],"additionalProperties":false},"scoredCount":{"type":"number","description":"Creators with a score (while running: scored in this run)."},"qualifiedCount":{"type":"number","description":"Scored creators not cut (while running: in this run)."},"disqualifiedCount":{"type":"number","description":"Scored creators cut by a must-have, a must-not or the location (while running: in this run)."},"shortlist":{"type":"array","items":{"$ref":"#/$defs/CreatorListShortlistRow"},"description":"Qualified creators, best score first, up to get_creator_list's `limit` (while running: this run's so far)."},"notScored":{"$ref":"#/$defs/CreatorListNotScored"},"unfinishedChecks":{"description":"Only when `status` is `done`: creators with a check the scorer couldn't finish. A re-run retries them free.","type":"number"},"disqualified":{"description":"With `includeDisqualified: true`, except while running: who was cut and why, up to 50.","type":"array","items":{"$ref":"#/$defs/CreatorListCutRow"}},"note":{"type":"string","description":"What to tell the user and call next, by status."}},"required":["success","listId","name","url","status","creatorCount","criteria","scoredCount","qualifiedCount","disqualifiedCount","shortlist","notScored","note"],"additionalProperties":false,"description":"When `listId` is given"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"count":{"type":"number","description":"Lists returned."},"lists":{"type":"array","items":{"$ref":"#/$defs/CreatorListSummaryRow"},"description":"The account's creator lists, last changed first, up to `limit` (saved feeds left out)."},"note":{"type":"string","description":"How to read one list."}},"required":["success","count","lists","note"],"additionalProperties":false,"description":"When no `listId` is given"}],"$defs":{"CreatorListCriterion":{"type":"object","properties":{"text":{"type":"string","description":"What a post would show."},"role":{"type":"string","enum":["must","must_not","nice"],"description":"`must`: cut unless a post clearly shows it. `must_not`: cut if a post clearly shows it. `nice`: ranks only."}},"required":["text","role"],"additionalProperties":false,"description":"One of a list's vetting criteria."},"CreatorListShortlistRow":{"type":"object","properties":{"username":{"type":"string"},"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Followers as stored on the list; null when unknown."},"score":{"type":"number","description":"Overall fit, 0-100, rounded to a whole number."},"fit":{"type":"string","description":"The vetting summary of the fit, cut to 220 characters; empty when there is none."},"scores":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"null"}]},"description":"A score per criterion, in the order of `criteria`: 0-100, how clearly the creator's posts show it (70+ means a post clearly shows it). Null where that criterion is unscored or its check failed. A `must_not` score measures the disqualifier, not fit."},"evidence":{"anyOf":[{"$ref":"#/$defs/CreatorListEvidence"},{"type":"null"}],"description":"The strongest fit quote across their criteria (never a must-not); null when none has one."}},"required":["username","platform","followers","score","fit","scores","evidence"],"additionalProperties":false,"description":"A qualified creator on a vetted list."},"CreatorListEvidence":{"type":"object","properties":{"quote":{"type":"string","description":"The words from the post, cut to 240 characters."},"url":{"type":"string","description":"Link to the post."}},"required":["quote","url"],"additionalProperties":false,"description":"A post vetting cited for a criterion: its words and its link."},"CreatorListNotScored":{"type":"object","properties":{"indexing":{"description":"Creators whose posts Glystn is reading for the first time.","$ref":"#/$defs/CreatorListHandles"},"couldNotIndex":{"description":"Creators whose posts couldn't be fetched: the crawl failed, or was still queued when the import stopped waiting.","$ref":"#/$defs/CreatorListHandles"},"notIndexedYet":{"description":"Creators not in Glystn's index, with no crawl going: vet_creator_list starts one (free).","$ref":"#/$defs/CreatorListHandles"},"noInstagramOrTiktok":{"description":"Creators with no Instagram or TikTok account, who cannot be vetted.","$ref":"#/$defs/CreatorListHandles"},"readyToScore":{"description":"Creators that can be scored with the saved criteria (added or indexed since the last run): vet_creator_list scores them. Never while `status` is `running`.","$ref":"#/$defs/CreatorListHandles"}},"additionalProperties":false,"description":"The list's creators without a score, grouped by why. An empty group is left out."},"CreatorListHandles":{"type":"object","properties":{"count":{"type":"number","description":"Creators in the group."},"handles":{"type":"array","items":{"type":"string"},"description":"Their handles: only the first ones when the group is large (`count` is its full size)."}},"required":["count","handles"],"additionalProperties":false,"description":"A group of creators on a list: how many, and their handles."},"CreatorListCutRow":{"type":"object","properties":{"username":{"type":"string"},"platform":{"type":"string","enum":["instagram","tiktok","youtube"]},"reason":{"type":"string","description":"Why they were cut: `Location not met`, `Must not: <criterion>`, `Missing must-have: <criterion>`, else the vetting summary (cut to 120 characters) or `Disqualified`."},"evidence":{"description":"For a must-not only: the post that shows it, null when none was cited.","anyOf":[{"$ref":"#/$defs/CreatorListEvidence"},{"type":"null"}]}},"required":["username","platform","reason"],"additionalProperties":false,"description":"A creator vetting cut from a list, and why."},"CreatorListSummaryRow":{"type":"object","properties":{"listId":{"type":"string","description":"The list's id."},"name":{"type":"string","description":"The list's name."},"creatorCount":{"type":"number","description":"Creators on the list, not counting ones rejected in the app."},"scoredCount":{"type":"number","description":"Of those, creators with a score."},"criteria":{"type":"array","items":{"type":"string"},"description":"The texts of the list's saved criteria."},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last changed, ISO date-time; null when unknown."},"url":{"type":"string","description":"The list in Glystn (Campaigns), with every score and quote."}},"required":["listId","name","creatorCount","scoredCount","criteria","updatedAt","url"],"additionalProperties":false,"description":"One of the account's creator lists."}}}},{"name":"compare_brands","title":"Compare brands head to head","description":"Head to head for 1-5 brands or named people, products or titles, over Glystn's labeled top posts (20k+ likes, since mid-May 2026): formats, drivers, sentiment, risk, sponsored share, platform split, weekly cadence, engagement, top creators and names mentioned alongside. Works for well-known brands (hundreds to thousands of labeled posts); niche names come back thin or `unresolved`, so use count_mentions and find_posts_by_keyword for those. Default window: the last 12 weeks. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"entities":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","minLength":1},"description":"1-5 names (\"Nike\", \"Red Bull\")."},"startDate":{"description":"First day to include, YYYY-MM-DD.","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"description":"Last day to include, YYYY-MM-DD (the whole day counts).","anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"countryCodes":{"description":"Creator countries, ISO-2 (\"us\", \"gb\"); a region is a list. Creator country, not audience.","anyOf":[{"maxItems":25,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},{"type":"null"}]},"sponsoredOnly":{"description":"Only posts labeled sponsored or promotional.","anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["entities"],"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"window":{"type":"object","properties":{"since":{"type":"string","description":"First day read, YYYY-MM-DD (UTC)."},"until":{"type":"string","description":"The day after `endDate` (YYYY-MM-DD, exclusive), or `now` without one."}},"required":["since","until"],"additionalProperties":false,"description":"The dates read."},"market":{"description":"The market read, when `countryCodes` was given.","type":"object","properties":{"countryCodes":{"type":"array","items":{"type":"string"},"description":"Lowercase ISO-2 codes of the creator countries read."}},"required":["countryCodes"],"additionalProperties":false},"unresolved":{"description":"Names that matched nothing; absent when every name resolved.","type":"array","items":{"$ref":"#/$defs/BrandUnresolvedName"}},"aggregates":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/BrandAggregate"},"description":"Each resolved name's profile, keyed by its canonical (lowercase) name."},"coverageNote":{"type":"string","description":"Which posts the figures cover (the labeled top posts) and how to word shares: keep it with any claim."}},"required":["success","window","aggregates","coverageNote"],"additionalProperties":false,"description":"When at least one name resolved"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"unresolved":{"type":"array","items":{"$ref":"#/$defs/BrandUnresolvedName"},"description":"Every name given, none of which matched."}},"required":["success","error","unresolved"],"additionalProperties":false,"description":"When none of the names resolved"}],"$defs":{"BrandUnresolvedName":{"type":"object","properties":{"name":{"type":"string","description":"The name as given."},"nearMatches":{"type":"array","items":{"$ref":"#/$defs/BrandEntityMatch"},"description":"Registry entities like it, most mentioned first: retry with one."}},"required":["name","nearMatches"],"additionalProperties":false,"description":"A name that matched no labeled posts, with registry names like it."},"BrandEntityMatch":{"type":"object","properties":{"canonical":{"type":"string","description":"The registry's name for the entity, lowercase."},"aliases":{"type":"array","items":{"type":"string"},"description":"Other spellings merged into it."},"parent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The entity it belongs to (a brand for a product); null when none."},"kind":{"type":"string","description":"`person`, `org`, `brand`, `team`, `ip`, `place`, `event`, `other` or `unknown`."},"mentions":{"type":"number","description":"Labeled posts naming it, counted when the registry was last built."}},"required":["canonical","aliases","parent","kind","mentions"],"additionalProperties":false,"description":"A registry entity whose name or an alias contains the name given."},"BrandAggregate":{"type":"object","properties":{"posts":{"type":"number","description":"Labeled posts read for this name."},"firstDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Oldest post read, YYYY-MM-DD (UTC); null when none had a date."},"lastDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Newest post read, YYYY-MM-DD (UTC); null when none had a date."},"formatMixPct":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by DNA format, keyed by format (`talking`, `skit`, `demo` and so on; unlabeled counts as `unclear`). Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"formatMixPctPaid":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The format mix among sponsored posts only (empty when none are sponsored). Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"formatMixPctOrganic":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"The format mix among posts not labeled sponsored. Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"driverMixPct":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by what makes them land, keyed by driver (`humor`, `hype`, `relatable` and so on). Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"sentimentMixPct":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by sentiment, keyed `pos`, `neu` or `neg`. Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"riskMixPct":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by brand safety, keyed `none`, `sensitive` or `unsafe`. Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"sponsoredPct":{"type":"number","description":"Percent of the posts labeled sponsored (0-100, one decimal)."},"whoMixPct":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by who posted them, keyed `creator`, `brand` or `media`. Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"platformMixPct":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by platform, keyed by platform. Values are percent of the posts (0-100, one decimal), biggest first; only the biggest labels are kept."},"totalLikes":{"type":"number","description":"Likes across every post read."},"medianLikes":{"type":"number","description":"Median likes over posts with visible likes (hidden Instagram likes, stored as 3, are left out), rounded; 0 when there are none."},"hit100kPct":{"type":"number","description":"Percent of posts with visible likes that reached 100k likes (0-100, one decimal)."},"weeklyPosts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts a week, keyed by the week's Monday (YYYY-MM-DD, UTC), oldest first."},"topCreators":{"type":"array","items":{"$ref":"#/$defs/BrandTopCreator"},"description":"The creators whose posts about the name got the most likes."},"topCoEntities":{"type":"array","items":{"$ref":"#/$defs/BrandCoEntity"},"description":"Names mentioned alongside it (the name itself left out)."},"topSubjectTerms":{"type":"array","items":{"$ref":"#/$defs/BrandSubjectTerm"},"description":"Recurring themes across the posts' subjects, beyond the format categories."},"formatExamples":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}},"description":"For the biggest formats, keyed by format: subject lines of its most-liked posts, near-duplicates and unsafe posts left out."},"formatThemes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"$ref":"#/$defs/BrandSubjectTerm"}},"description":"Recurring subject terms within each format that has a few posts with subjects, keyed by format."},"subjectSample":{"type":"array","items":{"$ref":"#/$defs/BrandSubjectSample"},"description":"Real subject lines across all formats, most-liked first, near-duplicates collapsed."},"scanTruncatedToNewest":{"type":"boolean","description":"True when a platform had more labeled posts than one read takes: the figures describe its newest posts only."},"registeredEntity":{"type":"boolean","description":"Whether the name resolved through Glystn's entity registry; false when it matched as a raw DNA label."}},"required":["posts","firstDate","lastDate","formatMixPct","formatMixPctPaid","formatMixPctOrganic","driverMixPct","sentimentMixPct","riskMixPct","sponsoredPct","whoMixPct","platformMixPct","totalLikes","medianLikes","hit100kPct","weeklyPosts","topCreators","topCoEntities","topSubjectTerms","formatExamples","formatThemes","subjectSample","scanTruncatedToNewest","registeredEntity"],"additionalProperties":false,"description":"One name's profile over its DNA-labeled top posts: what kinds of posts, who posts them, how they do."},"BrandTopCreator":{"type":"object","properties":{"username":{"type":"string"},"posts":{"type":"number","description":"Their posts among those read."},"likes":{"type":"number","description":"Likes on those posts."}},"required":["username","posts","likes"],"additionalProperties":false,"description":"A creator who carries the name, most likes first."},"BrandCoEntity":{"type":"object","properties":{"entity":{"type":"string","description":"Another name labeled on the same posts."},"posts":{"type":"number","description":"Posts that name both."}},"required":["entity","posts"],"additionalProperties":false,"description":"A name mentioned alongside this one, most shared posts first."},"BrandSubjectTerm":{"type":"object","properties":{"term":{"type":"string","description":"A word or two-word phrase."},"posts":{"type":"number","description":"Posts whose subject uses it."}},"required":["term","posts"],"additionalProperties":false,"description":"A recurring term in the posts' DNA subject lines (two-word phrases first, then single words)."},"BrandSubjectSample":{"type":"object","properties":{"s":{"type":"string","description":"The post's DNA subject line."},"f":{"type":"string","description":"The post's DNA format."},"sp":{"type":"boolean","description":"Labeled sponsored."},"l":{"type":"number","description":"Likes."}},"required":["s","f","sp","l"],"additionalProperties":false,"description":"One post as a subject line with its format, sponsorship and likes."}}}},{"name":"get_weekly_trends","title":"Get Glystn's weekly trends","description":"Glystn's weekly trend board: the trends of a completed week (the latest by default), ranked by virality, each with an id, labels, post count and engagement. Not live search. Pass a trend id to get_trend_board (`trendId`) for the posts behind it. Cost: 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weeksAgo":{"description":"0 = the latest completed week (default), 1 = the week before.","anyOf":[{"type":"integer","minimum":0,"maximum":52},{"type":"null"}]},"category":{"anyOf":[{"type":"string","enum":["food","beauty","fashion","fitness","health","gaming","comedy","music_events","celebrity_pop_culture","viral_memes","parenting","relationships","pets","daily_life","celebrations_milestones","personal_growth","technology","finance","education","news","politics","automotive","sports","travel","crafts","home","shopping","religion","adult","audio"]},{"type":"null"}]},"trendType":{"description":"timely (default without a category), evergreen, or all.","anyOf":[{"type":"string","enum":["timely","evergreen","all"]},{"type":"null"}]},"sort":{"description":"viral (default), posts, or outlier (p90 likes against creators' usual).","anyOf":[{"type":"string","enum":["viral","posts","outlier"]},{"type":"null"}]},"limit":{"anyOf":[{"type":"integer","minimum":1,"maximum":25},{"type":"null"}]}},"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"source":{"type":"string","const":"glystn_weekly_trends"},"is_live":{"type":"boolean","const":false,"description":"Always false: a completed week, not live search."},"run":{"type":"object","properties":{"id":{"type":"string","description":"The week's run id."},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run's name (\"Week of YYYY-MM-DD\"); null when it has none."},"created_at":{"type":"string","description":"When the run was made, ISO date-time."},"date_start":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The week's first day, YYYY-MM-DD; null when not recorded."},"date_end":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The day after the week's last day (YYYY-MM-DD, exclusive); null when not recorded."},"executive_summary":{"anyOf":[{"type":"object","properties":{"content":{"description":"The week's written summary, Markdown.","type":"string"},"generated_at":{"description":"When it was written, ISO date-time.","type":"string"},"error":{"description":"Why no summary was written, in place of `content`.","type":"string"}},"additionalProperties":false},{"type":"null"}],"description":"The week's written summary; null when it has none."},"offset":{"type":"number","description":"The `weeksAgo` of this week."}},"required":["id","query","created_at","date_start","date_end","executive_summary","offset"],"additionalProperties":false,"description":"The week read."},"filters":{"type":"object","properties":{"category":{"anyOf":[{"type":"string","enum":["food","beauty","fashion","fitness","health","gaming","comedy","music_events","celebrity_pop_culture","viral_memes","parenting","relationships","pets","daily_life","celebrations_milestones","personal_growth","technology","finance","education","news","politics","automotive","sports","travel","crafts","home","shopping","religion","adult","audio"]},{"type":"null"}],"description":"The category read; null for all."},"trend_type":{"type":"string","enum":["timely","evergreen","all"],"description":"The trend types read."},"sort_by":{"type":"string","enum":["viral_score","post_count","p90_like_outlier"],"description":"The order of `trends`: `viral_score`, `post_count` or `p90_like_outlier`."},"limit":{"type":"number","description":"Trends asked for, at most."},"offset":{"type":"number","description":"The `weeksAgo` read."}},"required":["category","trend_type","sort_by","limit","offset"],"additionalProperties":false,"description":"The filters as applied."},"trends":{"type":"array","items":{"$ref":"#/$defs/WeeklyTrend"},"description":"The week's trends, ranked by `filters.sort_by`."},"count":{"type":"number","description":"Trends returned."},"available_weeks":{"type":"array","items":{"$ref":"#/$defs/WeeklyTrendWeek"},"description":"The weeks around this one, newest first."},"latest_available_offset":{"type":"number","description":"The largest `weeksAgo` that reads a week."},"guidance":{"type":"string","description":"What to call next."}},"required":["success","source","is_live","run","filters","trends","count","available_weeks","latest_available_offset","guidance"],"additionalProperties":false,"description":"When a week was read"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"trends":{"type":"array","items":{"not":{}},"description":"Always empty."},"available_weeks":{"description":"The weeks found (none); absent when the read itself failed.","type":"array","items":{"$ref":"#/$defs/WeeklyTrendWeek"}}},"required":["success","error","trends"],"additionalProperties":false,"description":"When no weekly board could be read"}],"$defs":{"WeeklyTrend":{"type":"object","properties":{"id":{"type":"string","description":"The trend's id: pass it to get_trend_board as `trendId`."},"run_id":{"type":"string","description":"The weekly run it belongs to."},"topic_label":{"type":"string","description":"The trend's title (`Unlabeled` when it has none)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of the `category` values; null when unlabeled."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the trend is and why it is trending; null when none."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The posts' usual format, in words; null when unlabeled."},"speaker_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who speaks in the posts, in words; null when unlabeled."},"cohesion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How alike its posts are: `tight`, `moderate` or `loose`; null when unlabeled."},"trend_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`timely` or `evergreen`; null when unlabeled."},"post_count":{"type":"number","description":"Posts in the trend."},"viral_score":{"type":"number","description":"Outlier posts times the p90 like outlier (0 when either is missing): the default sort."},"viral_post_count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its posts that are outliers for their creator; null when not computed."},"p90_like_outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The 90th percentile of its posts' like outliers (likes against the creator's usual); null when not computed."},"avg_likes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Average likes on its posts; null when not computed."},"avg_like_outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its posts' average like outlier; null when not computed."},"examples":{"type":"array","items":{"type":"string"},"description":"Links to a few of its sample posts, Instagram first."}},"required":["id","run_id","topic_label","category","notes","format","speaker_type","cohesion","trend_type","post_count","viral_score","viral_post_count","p90_like_outlier","avg_likes","avg_like_outlier","examples"],"additionalProperties":false,"description":"One trend on the weekly board."},"WeeklyTrendWeek":{"type":"object","properties":{"offset":{"type":"number","description":"The `weeksAgo` that reads this week."},"id":{"type":"string","description":"The week's run id."},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run's name (\"Week of YYYY-MM-DD\"); null when it has none."},"created_at":{"type":"string","description":"When the run was made, ISO date-time."},"date_start":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The week's first day, YYYY-MM-DD; null when not recorded."},"date_end":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The day after the week's last day (YYYY-MM-DD, exclusive); null when not recorded."}},"required":["offset","id","query","created_at","date_start","date_end"],"additionalProperties":false,"description":"A completed week on the weekly board."}}}},{"name":"start_trend_board","title":"Start a trend board","description":"Build a trend board: Glystn clusters the posts matching a keyword spec (or a theme) into ranked trends with an executive summary. Takes about 1-5 minutes; returns `boardId` to read with get_trend_board. Costs 10 credits, refunded if the build does not start. A spec too small to cluster is refused with its counts (widen `months`, lower `minLikes` or `minClusterSize`). Size the spec with count_mentions first. The board then refreshes weekly with new posts (1 credit each) until nobody has opened it for 4 weeks.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"must":{"minItems":1,"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Up to 3 items, all required. An item is a term or an OR-group (array, max 8) of spellings, plurals or aliases of one concept. Case, punctuation, # and @ are ignored; no stemming."},"mustNot":{"description":"Up to 3 excluded terms or OR-groups.","anyOf":[{"maxItems":3,"type":"array","items":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","minLength":1}}]},"description":"Excluded exact phrases; items may be terms or OR-groups (max 8). Max 3 items."},{"type":"null"}]},"match":{"description":"phrase (default): a multi-word term matches as a phrase. all_words: each word anywhere; only for loose descriptions, never for sayings or names.","anyOf":[{"default":"phrase","description":"How a multi-word term matches (single words match the same either way). \"phrase\" (default): its words together, in order — anything said as a unit: a saying, slang or ritual (\"need a coke\", \"little treat\") or a multi-word name (\"Dr Pepper\", \"Coke Zero\"). \"all_words\": each word anywhere in the post, in any order — only for a loose description whose wording varies (\"protein shake\" also catching \"shake with extra protein\"); never to size a saying or a name, because common words meet by accident (\"need a coke\" is 65 posts as a phrase and 10,942 as all words).","type":"string","enum":["phrase","all_words"]},{"type":"null"}]},"theme":{"description":"Instead of (or to focus) a spec: a theme by meaning.","anyOf":[{"type":"string","minLength":3},{"type":"null"}]},"title":{"description":"Board name in plain words (\"Summer mocktails\").","anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"months":{"description":"Window in months (default 6).","anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"minLikes":{"description":"Posts need this many likes (default 100).","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"minClusterSize":{"description":"Posts per trend, at least (default 50).","anyOf":[{"type":"integer","minimum":15,"maximum":100},{"type":"null"}]},"platform":{"description":"instagram, tiktok, or both (default).","anyOf":[{"type":"string","enum":["instagram","tiktok","both"]},{"type":"null"}]},"englishOnly":{"description":"Default: English-only when that alone can cluster, else English plus unclassified posts.","anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"boardId":{"type":"string","description":"Read it with get_trend_board."},"status":{"type":"string","const":"building"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `title`, else the `theme`; null for an untitled keyword board."},"boardUrl":{"type":"string","description":"The board in the Glystn app."},"corpus":{"anyOf":[{"$ref":"#/$defs/TrendBoardCorpus"},{"type":"null"}],"description":"The spec's size in the window; null for a theme-only board."},"checkBackAfterSeconds":{"type":"number","description":"Seconds to wait before reading the board."},"note":{"type":"string","description":"What to do while it builds. For sign-ins whose chat draws cards it also says the card follows the build."}},"required":["success","boardId","status","topic","boardUrl","corpus","checkBackAfterSeconds","note"],"additionalProperties":false,"description":"When the build started"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","const":"corpus_too_small"},"corpus":{"$ref":"#/$defs/TrendBoardCorpus"},"note":{"type":"string","description":"The counts in words and what to change (`months`, `minLikes`, `minClusterSize`)."}},"required":["success","error","corpus","note"],"additionalProperties":false,"description":"When the spec has too few posts for a board (nothing charged)"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"corpus":{"description":"The spec's size in the window; absent for a theme-only board.","$ref":"#/$defs/TrendBoardCorpus"},"boardUrl":{"type":"null"}},"required":["success","boardUrl"],"additionalProperties":false,"description":"When the build service answered without a board id (refunded)"}],"$defs":{"TrendBoardCorpus":{"type":"object","properties":{"postsInWindowAtFloor":{"type":"number","description":"Posts matching the spec inside the board's window (`months`) at its `minLikes`."},"needed":{"type":"number","description":"Posts a board needs to find trends: three trends of `minClusterSize`, never under a fixed minimum."},"byLikeFloor":{"type":"array","items":{"$ref":"#/$defs/TrendBoardLikeFloor"},"description":"The window's matching posts at each like floor."},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"The month, YYYY-MM (UTC)."},"count":{"type":"number","description":"Posts that month."}},"required":["month","count"],"additionalProperties":false},"description":"The window's matching posts by month, at any likes."},"language":{"type":"object","properties":{"mode":{"type":"string","enum":["strict","lenient"],"description":"`strict`: only posts predicted English; `lenient`: English plus posts with no language prediction."},"predictedEnglishAtFloor":{"type":"number","description":"Posts at the floor predicted English."},"otherLanguagesAtFloor":{"type":"number","description":"Posts at the floor predicted another language."},"unclassifiedAtFloor":{"type":"number","description":"Posts at the floor with no language prediction (mostly Instagram images and carousels)."}},"required":["mode","predictedEnglishAtFloor","otherLanguagesAtFloor","unclassifiedAtFloor"],"additionalProperties":false,"description":"The language gate the board uses, and the counts behind it."}},"required":["postsInWindowAtFloor","needed","byLikeFloor","monthly","language"],"additionalProperties":false,"description":"The keyword spec's posts inside the board's window, sized before the build."},"TrendBoardLikeFloor":{"type":"object","properties":{"minLikes":{"type":"number","description":"The like floor."},"count":{"type":"number","description":"Posts in the window with at least that many likes."}},"required":["minLikes","count"],"additionalProperties":false,"description":"The spec's posts inside the board's window at one like floor."}}}},{"name":"get_trend_board","title":"Read trend boards","description":"Your trend boards. No ids: your recent boards (id, topic, status). `boardId`: its status and, once built, its summary and ranked trends (each with a `trendId`); a refreshed board adds `updatedAt`, `whatChanged` and each trend's `change` (new, rising, fading, steady, quiet). `trendId`: the posts behind one trend, from your boards or the weekly board (get_weekly_trends); page with `offset`. Listing and reading your boards is free; the posts behind a trend cost 1 credit a call, refunded when it fails.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"boardId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"trendId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"limit":{"description":"Boards, trends or posts to return (default 20; trends 25).","anyOf":[{"type":"integer","minimum":1,"maximum":100},{"type":"null"}]},"offset":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"detail":{"description":"compact: ~400-byte rows (date, likes, views, followers, country, 280 characters of text; a video on both platforms is one row with `alsoOn`). full: every field, `textKind`, and the whole transcript from find_posts_by_keyword and from get_creator_posts pulls of more than 25 posts (other full rows cut text at 650 characters). Default compact in Claude and ChatGPT, full for API keys.","anyOf":[{"type":"string","enum":["compact","full"]},{"type":"null"}]}},"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"success":{"type":"boolean","const":true},"count":{"type":"number","description":"Boards returned."},"boards":{"type":"array","items":{"$ref":"#/$defs/TrendBoardListing"}}},"required":["success","count","boards"],"additionalProperties":false,"description":"When no `boardId` or `trendId` is given: your recent boards"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"boardId":{"type":"string"},"status":{"type":"string","description":"The build's status, usually `running`."},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The board's name, else its keywords or theme; null when it has none."},"boardUrl":{"type":"string","description":"The board in the Glystn app."},"checkBackAfterSeconds":{"type":"number","description":"Seconds to wait before reading it again."},"note":{"type":"string","description":"What to do while it builds. For sign-ins whose chat draws cards it also says the card follows the build."}},"required":["success","boardId","status","topic","boardUrl","checkBackAfterSeconds","note"],"additionalProperties":false,"description":"When the board is still building"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"boardId":{"type":"string"},"status":{"type":"string","const":"failed"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The board's name, else its keywords or theme; null when it has none."},"boardUrl":{"type":"string","description":"The board in the Glystn app."},"error":{"type":"string","description":"A plain line saying it failed and to start it again."}},"required":["success","boardId","status","topic","boardUrl","error"],"additionalProperties":false,"description":"When the board failed to build"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"boardId":{"type":"string"},"status":{"type":"string","const":"completed"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The board's name, else its keywords or theme; null when it has none."},"boardUrl":{"type":"string","description":"The board in the Glystn app."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The board's executive summary, Markdown; null when none was written."},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the board last refreshed, ISO date-time; null before its first refresh."},"weeklyRefresh":{"type":"boolean","description":"Whether the board refreshes weekly with new posts."},"historyNotice":{"description":"Present when the latest change report was withdrawn (it counted the original board's posts as new): `whatChanged` and each trend's `change` are left out until the next one.","type":"string"},"whatChanged":{"description":"What the latest refresh that said what changed wrote, one line per trend it names. Absent until one does.","type":"array","items":{"type":"string"}},"whatChangedAt":{"description":"When that refresh ran, ISO date-time; with `whatChanged` only.","type":"string"},"postsClustered":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Posts the board read in its latest build or refresh; null when not recorded."},"trends":{"type":"array","items":{"$ref":"#/$defs/BoardTrend"},"description":"Its trends, most posts first."}},"required":["success","boardId","status","topic","boardUrl","summary","updatedAt","weeklyRefresh","postsClustered","trends"],"additionalProperties":false,"description":"When the board is built"},{"type":"object","properties":{"success":{"type":"boolean","const":true},"topic_label":{"type":"string","description":"The trend's title (`Unknown` when it has none)."},"category":{"description":"Its category; null when unlabeled, absent when the trend has no posts to read.","anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"description":"What the trend is; null when none, absent when the trend has no posts to read.","anyOf":[{"type":"string"},{"type":"null"}]},"posts":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/TrendBoardPost"},{"$ref":"#/$defs/CompactPost"}]},"description":"The trend's own sample posts in order (posts nearest its center when it has none), one row per post: compact rows by default for sign-ins, full rows for API keys."},"count":{"type":"number","description":"Rows returned."},"pagination":{"type":"object","properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `offset` this page started at, as text; null on the first page."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`nextOffset` as text; null on the last page."},"hasMore":{"type":"boolean","description":"Whether there are more posts."},"limit":{"type":"number","description":"Posts asked for."}},"required":["cursor","nextCursor","hasMore","limit"],"additionalProperties":false,"description":"Paging, as the shared trend engine reports it."},"hasMore":{"type":"boolean","description":"Whether there are more posts."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`nextOffset` as text; null on the last page."},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Pass back as `offset` for the next page; null on the last page."},"board":{"$ref":"#/$defs/TrendPostsBoard"},"trend":{"$ref":"#/$defs/TrendPostsTrend"}},"required":["success","topic_label","posts","count","pagination","hasMore","nextCursor","nextOffset","board","trend"],"additionalProperties":false,"description":"When `trendId` is given: the posts behind that trend"},{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"string","description":"What went wrong, in words to pass on."},"posts":{"type":"array","items":{"not":{}},"description":"Always empty."},"count":{"type":"number","description":"Always 0."},"nextOffset":{"type":"null"},"board":{"$ref":"#/$defs/TrendPostsBoard"},"trend":{"$ref":"#/$defs/TrendPostsTrend"}},"required":["success","error","posts","count","nextOffset","board","trend"],"additionalProperties":false,"description":"When `trendId` is given and the trend's posts could not be read"}],"$defs":{"TrendBoardListing":{"type":"object","properties":{"boardId":{"type":"string"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The board's name, else its keywords or theme; null when it has none."},"status":{"type":"string","description":"`running`, `completed` or `failed`; `unknown` when not recorded."},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When it was started, ISO date-time; null when not recorded."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The start of its executive summary; null when it has none."},"boardUrl":{"type":"string","description":"The board in the Glystn app."}},"required":["boardId","topic","status","createdAt","summary","boardUrl"],"additionalProperties":false,"description":"One of your trend boards, newest first."},"BoardTrend":{"type":"object","properties":{"trendId":{"type":"string","description":"Pass it back as `trendId` for the posts behind it."},"label":{"type":"string","description":"The trend's title (`Unlabeled` when it has none)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its category; null when unlabeled."},"posts":{"type":"number","description":"Posts in the trend."},"trendType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`timely` or `evergreen`; null when unlabeled."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The posts' usual format, in words; null when unlabeled."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the trend is, cut short; null when none."},"change":{"description":"How it moved at the latest refresh that said what changed: `new`, `rising`, `fading`, `steady` or `quiet`. Absent before one, and while `historyNotice` is set.","type":"string"},"was":{"description":"The title it had before its latest rename; absent when never renamed.","type":"string"},"avgLikes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Average likes on its posts; null when not computed."},"avgLikeOutlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its posts' average like outlier (likes against the creator's usual); null when not computed."},"examples":{"type":"array","items":{"type":"string"},"description":"Links to a few of its sample posts, Instagram first."}},"required":["trendId","label","category","posts","trendType","format","notes","avgLikes","avgLikeOutlier","examples"],"additionalProperties":false,"description":"One trend on a built board, most posts first."},"TrendBoardPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"username":{"type":"string","description":"The creator's handle (empty when not stored)."},"platform":{"type":"string","enum":["instagram","tiktok"]},"permalink":{"description":"Link to the post, when stored.","type":"string"},"likes":{"type":"number"},"comments":{"type":"number"},"plays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views; null when not stored."},"followers":{"type":"number","description":"The creator's followers when the post was stored (0 when not stored)."},"like_outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post: 3 means three times their typical likes."},"mediaType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`; null when not stored."},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The audio's stored class: `speech`, `lyrics` or `asr_artifact` (unclear audio); null when not classified."},"date":{"description":"Posted at, ISO date-time.","type":"string"},"transcript":{"description":"The transcript, cut to 500 characters; absent when none.","type":"string"},"caption":{"description":"The caption, cut to 250 characters; absent when none.","type":"string"},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."}},"required":["id","username","platform","likes","comments","plays","followers","like_outlier","mediaType","contentType","textKind"],"additionalProperties":false,"description":"A full post row behind a trend: what API keys get by default, and any caller that passes `detail: \"full\"`."},"CompactPost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link to the post."},"platform":{"anyOf":[{"type":"string","enum":["instagram","tiktok"]},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's handle."},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Posted on, YYYY-MM-DD (UTC)."},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]},"comments":{"anyOf":[{"type":"number"},{"type":"null"}]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The creator's country (ISO code), not the audience's."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Spoken language code."},"outlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post: 3 means three times their typical likes."},"sponsored":{"description":"Paid post, on DNA-labeled posts only.","type":"boolean"},"alsoOn":{"description":"The same video on the creator's other platform, folded into this row.","type":"object","properties":{"platform":{"type":"string","enum":["instagram","tiktok"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"likes":{"anyOf":[{"type":"number"},{"type":"null"}]},"views":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["platform","url","likes","views"],"additionalProperties":false},"textKind":{"type":"string","enum":["speech","lyrics","unclear_audio","image_description","caption"],"description":"What the post's text is: words spoken in a video (`speech`, the only kind to quote as said), sung `lyrics`, `unclear_audio`, an `image_description` of an image or carousel, or the `caption` when there is no transcript."},"text":{"type":"string","description":"The transcript, else the caption, cut to 280 characters."}},"required":["id","url","platform","username","date","likes","views","comments","followers","country","language","outlier","textKind","text"],"additionalProperties":false,"title":"Post","description":"A compact post row (about 400 bytes): what Claude and ChatGPT sign-ins get by default, and any caller that passes `detail: \"compact\"`."},"TrendPostsBoard":{"type":"object","properties":{"boardId":{"type":"string"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The board's name, else its keywords or theme; null on the weekly board."},"weekly":{"type":"boolean","description":"Whether it is Glystn's weekly board."},"weekStart":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The weekly board's first day, YYYY-MM-DD; null on your own boards."},"weekEnd":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The day after the weekly board's last day (YYYY-MM-DD, exclusive); null on your own boards."},"boardUrl":{"type":"string","description":"The board in the Glystn app."}},"required":["boardId","topic","weekly","weekStart","weekEnd","boardUrl"],"additionalProperties":false,"description":"The board the trend sits on."},"TrendPostsTrend":{"type":"object","properties":{"trendId":{"type":"string"},"label":{"type":"string","description":"The trend's title (`Unlabeled` when it has none)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its category; null when unlabeled."},"posts":{"type":"number","description":"Posts in the whole trend, not just this page."},"trendType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`timely` or `evergreen`; null when unlabeled."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The posts' usual format, in words; null when unlabeled."},"avgLikes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Average likes on its posts; null when not computed."},"avgLikeOutlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its posts' average like outlier; null when not computed."},"trendUrl":{"type":"string","description":"The trend's page in the Glystn app."}},"required":["trendId","label","category","posts","trendType","format","avgLikes","avgLikeOutlier","trendUrl"],"additionalProperties":false,"description":"The trend these posts are behind."}}}},{"name":"get_credit_balance","title":"Get credit balance","description":"Free (costs no credits): the Glystn account's credit balance, its plan, and what calls cost. Call it when the user asks about credits or their plan. No need to check before a run: a call the account can't cover runs nothing, charges nothing and gives the shortfall. `unlimited: true` means the account has unlimited credits.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean","const":true},"email":{"type":"string","description":"The Glystn account the call ran as."},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The plan's name; `Free` when the account has no plan; null when the account is unlimited without a subscription (an enterprise or team account)."},"unlimited":{"type":"boolean","description":"The account has unlimited credits: a paid-up plan with unlimited usage, or unlimited access Glystn set on the account. An ended trial turns it off."},"credits":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Credits left, never below 0; null when `unlimited` is true."},"trial":{"description":"Only during a trial Glystn set up on the account (not a free trial started at checkout): unlimited access ends with it.","type":"object","properties":{"daysLeft":{"type":"number","description":"Whole days left, rounded up."},"endsAt":{"type":"string","description":"The day it ends, YYYY-MM-DD (UTC)."}},"required":["daysLeft","endsAt"],"additionalProperties":false},"costs":{"type":"object","properties":{"perCall":{"type":"number","description":"Credits a call costs, for every tool without a price of its own."},"start_trend_board":{"description":"Credits a new trend board costs. Only when the caller's plan has start_trend_board.","type":"number"},"vetPerCreator":{"description":"Credits vetting costs per creator with new work. Only when the caller's plan has vet_creator_list.","type":"number"},"free":{"type":"array","items":{"type":"string"},"description":"What costs nothing among the caller's plan's tools: tool names, a few with words on which calls are free."}},"required":["perCall","free"],"additionalProperties":false,"description":"What calls cost, for the tools on the caller's MCP plan."},"plansUrl":{"description":"ChatGPT only, when `unlimited` is false, in place of `upgrade`: the page that describes Glystn's plans.","type":"string"},"upgrade":{"description":"When `unlimited` is false, in every app except ChatGPT: the upgrade to unlimited credits.","$ref":"#/$defs/UnlimitedUpgradeOffer"},"manageUrl":{"description":"On a plan with unlimited usage: the plans page, where the subscription is managed.","type":"string"}},"required":["success","email","plan","unlimited","credits","costs"],"additionalProperties":false,"$defs":{"UnlimitedUpgradeOffer":{"type":"object","properties":{"plan":{"type":"string","const":"Unlimited","description":"The plan the link upgrades to, by name."},"freeTrialDays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Days of free trial the plan starts with; null when the account already has a plan or has had its free trial."},"url":{"type":"string","description":"The upgrade link: it signs the person in and opens checkout for the plan. An account that already has a plan or a team seat lands on the plans page instead."}},"required":["plan","freeTrialDays","url"],"additionalProperties":false,"description":"The upgrade to unlimited credits, with no price (the page shows it). Every app gets it except ChatGPT, which gets `plansUrl` instead."}}}},{"name":"list_hives","title":"Your hives","description":"Your hives: subjects Glystn follows on TikTok and Instagram, every post filed by topic and read for what it says. Returns each hive's id, name, apps, start day, topics by group, whether its dashboard and crossovers are open to you, and its link. The other hive tools take a hive's id or name.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"hives":{"type":"array","items":{"$ref":"#/$defs/HiveSummary"},"description":"Your hives: your organization's and those shared with you, most recently updated first."}},"required":["hives"],"additionalProperties":false,"description":"When you see at least one hive"},{"type":"object","properties":{"hives":{"type":"array","items":{"$ref":"#/$defs/HiveSummary"},"description":"Empty."},"note":{"type":"string","description":"That you have no hive yet and how to ask for one, with a link to the Hives page."}},"required":["hives","note"],"additionalProperties":false,"description":"When you see no hive"}],"$defs":{"HiveSummary":{"type":"object","properties":{"hiveId":{"type":"string","description":"The hive's id: what the other hive tools take, as does its name."},"name":{"type":"string","description":"The hive's name."},"apps":{"type":"array","items":{"type":"string","enum":["instagram","tiktok"]},"description":"The apps it follows."},"market":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its market, an ISO country code (where TikTok is searched); null when it has none."},"postsSince":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The day its posts start, YYYY-MM-DD: no post dated before it joins. Null when it has no start day."},"topics":{"type":"array","items":{"$ref":"#/$defs/HiveTopicGroup"},"description":"Its topics, by group."},"dashboard":{"type":"boolean","description":"Its dashboard is open to you (Enterprise, Glystn, or a hive shared with you): get_hive_dashboard and get_hive_posts read it."},"crossovers":{"type":"boolean","description":"It tracks crossovers and its dashboard is open to you: get_hive_crossovers reads it."},"url":{"type":"string","description":"The hive in Glystn."}},"required":["hiveId","name","apps","market","postsSince","topics","dashboard","crossovers","url"],"additionalProperties":false,"description":"One of your hives."},"HiveTopicGroup":{"type":"object","properties":{"group":{"type":"string","description":"The group's name (a brand, a title)."},"topics":{"type":"array","items":{"$ref":"#/$defs/HiveTopicRef"},"description":"Its topics, in order."}},"required":["group","topics"],"additionalProperties":false,"description":"A group of a hive's topics."},"HiveTopicRef":{"type":"object","properties":{"topicId":{"type":"string","description":"The topic's id: what `where.topics` takes, as does its name."},"topic":{"type":"string","description":"The topic's name."}},"required":["topicId","topic"],"additionalProperties":false,"description":"A topic the hive files its posts under."}}}},{"name":"get_hive_dashboard","title":"Get a hive's numbers","description":"A hive's dashboard numbers for any days, by day or by week (weeks run Monday to Sunday, UTC): posts about it (`posts.aboutIt`), views (summed over the `postsWithViews` posts that show a view count), creators, a timeline, each topic (posts, feeling, why people like or dislike it), breakdowns (feeling, intent, format, driver, who, paid, risk), the hive's own questions, and the names mentioned most. `where` narrows every number to any combination of labels, the same filter get_hive_posts takes. The newest days are still filling in: posts are still being found and read, and views keep growing.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hive":{"type":"string","minLength":1,"description":"The hive: its id or its name, as list_hives gives them."},"from":{"description":"First day, YYYY-MM-DD (UTC). Default: the hive's start (postsSince), else 90 days before `to`.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Last day, included, YYYY-MM-DD (UTC). Default: today.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"by":{"description":"Timeline by day or by week. Default: by day up to 92 days, by week beyond (by day only up to 92 days).","type":"string","enum":["day","week"]},"where":{"description":"Any combination of the hive's labels, by the keys get_hive_dashboard returns: one label's values are any of, labels together all of.","type":"object","properties":{"topics":{"description":"Topic ids or names.","maxItems":50,"type":"array","items":{"type":"string"}},"feeling":{"description":"positive, negative, mixed, neutral; with topics, toward them.","maxItems":50,"type":"array","items":{"type":"string"}},"intent":{"description":"tried, plans, recommends, warns.","maxItems":50,"type":"array","items":{"type":"string"}},"kind":{"description":"Format keys (breakdowns.kind).","maxItems":50,"type":"array","items":{"type":"string"}},"driver":{"description":"Driver keys (breakdowns.driver).","maxItems":50,"type":"array","items":{"type":"string"}},"who":{"description":"creator, brand, media.","maxItems":50,"type":"array","items":{"type":"string"}},"paid":{"description":"true paid, false organic.","type":"boolean"},"risk":{"description":"none, sensitive, unsafe.","maxItems":50,"type":"array","items":{"type":"string"}},"mainly":{"description":"true mainly about it, false in passing.","type":"boolean"},"answers":{"description":"Question key → answer keys (none; yes or no).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"maxItems":50,"type":"array","items":{"type":"string"}}},"likedFor":{"description":"Like-reason keys (topics[].likes), organic posts; with topics, about them.","maxItems":50,"type":"array","items":{"type":"string"}},"dislikedFor":{"description":"Dislike-reason keys, the same way.","maxItems":50,"type":"array","items":{"type":"string"}},"mentions":{"description":"Names it mentions.","maxItems":50,"type":"array","items":{"type":"string"}},"creators":{"description":"Creator handles.","maxItems":50,"type":"array","items":{"type":"string"}},"apps":{"description":"Only these apps.","maxItems":2,"type":"array","items":{"type":"string","enum":["tiktok","instagram"]}},"minViews":{"description":"Only posts with at least this many views.","type":"integer","minimum":0,"maximum":9007199254740991},"not":{"description":"The same labels: leaves out what each one matches.","type":"object","properties":{"topics":{"maxItems":50,"type":"array","items":{"type":"string"}},"feeling":{"maxItems":50,"type":"array","items":{"type":"string"}},"intent":{"maxItems":50,"type":"array","items":{"type":"string"}},"kind":{"maxItems":50,"type":"array","items":{"type":"string"}},"driver":{"maxItems":50,"type":"array","items":{"type":"string"}},"who":{"maxItems":50,"type":"array","items":{"type":"string"}},"paid":{"type":"boolean"},"risk":{"maxItems":50,"type":"array","items":{"type":"string"}},"mainly":{"type":"boolean"},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"maxItems":50,"type":"array","items":{"type":"string"}}},"likedFor":{"maxItems":50,"type":"array","items":{"type":"string"}},"dislikedFor":{"maxItems":50,"type":"array","items":{"type":"string"}},"mentions":{"maxItems":50,"type":"array","items":{"type":"string"}},"creators":{"maxItems":50,"type":"array","items":{"type":"string"}}}}}}},"required":["hive"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hive":{"$ref":"#/$defs/HiveRef"},"window":{"type":"object","properties":{"from":{"type":"string","description":"First day, YYYY-MM-DD (UTC): the one asked for, moved up to the furthest day the dashboard reaches back to (about two years) when it asks for more."},"to":{"type":"string","description":"Last day, included, YYYY-MM-DD (UTC)."},"by":{"type":"string","enum":["day","week"],"description":"Whether the timeline runs by day or by week (Monday to Sunday, UTC)."}},"required":["from","to","by"],"additionalProperties":false,"description":"The days counted."},"filter":{"description":"The `where`, in the hive's own words (`negative · organic · naming acme`). Absent when no `where` narrows the result.","type":"string"},"posts":{"type":"object","properties":{"inHive":{"description":"The hive's posts dated in the window, read or not. Absent when a `where` narrows the result (posts not read yet have no labels).","type":"number"},"read":{"description":"Of them, the posts the labeler has read. Absent when a `where` narrows the result.","type":"number"},"aboutIt":{"type":"number","description":"Posts about what the hive follows (the counted posts), the `where`'s only when there is one: what every other number counts."},"mainlyAboutIt":{"type":"number","description":"Of them, posts mainly about it; the rest mention it in passing."}},"required":["aboutIt","mainlyAboutIt"],"additionalProperties":false,"description":"How many posts."},"views":{"type":"number","description":"Views of the counted posts, summed over the `postsWithViews` posts that show a view count."},"postsWithViews":{"type":"number","description":"Counted posts that show a view count."},"creators":{"type":"number","description":"Accounts with a counted post: the same handle on two apps counts twice."},"timeline":{"type":"array","items":{"$ref":"#/$defs/HiveTimelineBar"},"description":"The window by day or week, oldest first."},"topics":{"type":"array","items":{"$ref":"#/$defs/HiveDashboardTopic"},"description":"The topics counted posts talk about, most posts first."},"breakdowns":{"type":"object","properties":{"feeling":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by feeling: `positive`, `negative`, `mixed`, `neutral`."},"intent":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by what the creator says they did or urge: `tried`, `plans`, `recommends`, `warns`. A post can have several or none."},"kind":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by format (Post DNA format keys)."},"driver":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by what makes them land (Post DNA driver keys)."},"who":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by who posted: `creator`, `brand`, `media`."},"paid":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts that are `paid` or `organic`."},"risk":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Posts by brand safety: `none`, `sensitive`, `unsafe`."}},"required":["feeling","intent","kind","driver","who","paid","risk"],"additionalProperties":false,"description":"Counted posts by each label, key to posts, most first."},"questions":{"type":"array","items":{"$ref":"#/$defs/HiveDashboardQuestion"},"description":"The hive's own questions, in its order."},"mentions":{"type":"array","items":{"$ref":"#/$defs/HiveMention"},"description":"The names counted posts mention most, most first."},"url":{"type":"string","description":"The hive's Dashboard tab in Glystn."}},"required":["hive","window","posts","views","postsWithViews","creators","timeline","topics","breakdowns","questions","mentions","url"],"additionalProperties":false,"$defs":{"HiveRef":{"type":"object","properties":{"hiveId":{"type":"string","description":"The hive's id."},"name":{"type":"string","description":"The hive's name."}},"required":["hiveId","name"],"additionalProperties":false,"description":"The hive a result is about."},"HiveTimelineBar":{"type":"object","properties":{"start":{"type":"string","description":"Its first day, YYYY-MM-DD (UTC): a Monday when the timeline runs by week."},"posts":{"type":"number","description":"Counted posts dated in it."},"views":{"type":"number","description":"Their views, summed."},"feeling":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Its posts by feeling (`positive`, `negative`, `mixed`, `neutral`), most first."},"answers":{"description":"The hive's own questions as its posts answered them: question key to posts by answer key. Absent when none was answered.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}}}},"required":["start","posts","views","feeling"],"additionalProperties":false,"description":"A day or a week of the timeline. Every day or week of the window has one, empty ones too."},"HiveDashboardTopic":{"type":"object","properties":{"topicId":{"type":"string","description":"The topic's id."},"topic":{"type":"string","description":"The topic's name."},"group":{"type":"string","description":"Its group's name."},"posts":{"type":"number","description":"Counted posts that talk about it."},"organic":{"type":"number","description":"Of them, the posts that aren't paid: the reasons count only these."},"views":{"type":"number","description":"Their views, summed."},"feeling":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Its posts by how the creator feels about this topic (`positive`, `negative`, `mixed`, `neutral`), most first."},"likes":{"type":"array","items":{"$ref":"#/$defs/HiveLabeledCount"},"description":"Why people like it, on its organic posts: up to 8 reasons, most first. The keys are what `where.likedFor` takes."},"dislikes":{"type":"array","items":{"$ref":"#/$defs/HiveLabeledCount"},"description":"Why people dislike it or hold back, the same way. The keys are what `where.dislikedFor` takes."}},"required":["topicId","topic","group","posts","organic","views","feeling","likes","dislikes"],"additionalProperties":false,"description":"A topic of the hive and how its counted posts talk about it."},"HiveLabeledCount":{"type":"object","properties":{"key":{"type":"string","description":"The key, as `where` takes it."},"label":{"type":"string","description":"The key in words: its label in the hive, else the key itself in words."},"posts":{"type":"number","description":"Posts it counts."}},"required":["key","label","posts"],"additionalProperties":false,"description":"A label of the hive with the posts it counts."},"HiveDashboardQuestion":{"type":"object","properties":{"key":{"type":"string","description":"The question's key, as `where.answers` takes it."},"question":{"type":"string","description":"The question, in words."},"asked":{"type":"number","description":"Counted posts it was asked of."},"answers":{"type":"array","items":{"$ref":"#/$defs/HiveLabeledCount"},"description":"Posts by answer, most first: its options, `none` when no option fit, or `yes` and `no` for a yes-or-no question. A question that takes several options counts a post under each."}},"required":["key","question","asked","answers"],"additionalProperties":false,"description":"One of the hive's own questions and how its counted posts answered it."},"HiveMention":{"type":"object","properties":{"name":{"type":"string","description":"A brand, product, title or person, lowercase: what `where.mentions` takes."},"posts":{"type":"number","description":"Counted posts that name it."}},"required":["name","posts"],"additionalProperties":false,"description":"A name counted posts mention."}}}},{"name":"get_hive_posts","title":"Get a hive's posts","description":"The posts behind any get_hive_dashboard number, most viewed or newest first: each post with its link and stats, likeOutlier (likes over the creator's usual), what it says (said), its feeling and why the creator likes or dislikes it, caption and transcript excerpts, and topComments: up to 10 of its comments, most liked first, when Glystn has some stored (many posts have none stored). Narrow by days and `where`; `total` matches get_hive_dashboard for the same days and `where`. Page with offset.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hive":{"type":"string","minLength":1,"description":"The hive: its id or its name, as list_hives gives them."},"from":{"description":"First day, YYYY-MM-DD (UTC). Default: the hive's start (postsSince), else 90 days before `to`.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Last day, included, YYYY-MM-DD (UTC). Default: today.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"where":{"description":"Any combination of the hive's labels, by the keys get_hive_dashboard returns: one label's values are any of, labels together all of.","type":"object","properties":{"topics":{"description":"Topic ids or names.","maxItems":50,"type":"array","items":{"type":"string"}},"feeling":{"description":"positive, negative, mixed, neutral; with topics, toward them.","maxItems":50,"type":"array","items":{"type":"string"}},"intent":{"description":"tried, plans, recommends, warns.","maxItems":50,"type":"array","items":{"type":"string"}},"kind":{"description":"Format keys (breakdowns.kind).","maxItems":50,"type":"array","items":{"type":"string"}},"driver":{"description":"Driver keys (breakdowns.driver).","maxItems":50,"type":"array","items":{"type":"string"}},"who":{"description":"creator, brand, media.","maxItems":50,"type":"array","items":{"type":"string"}},"paid":{"description":"true paid, false organic.","type":"boolean"},"risk":{"description":"none, sensitive, unsafe.","maxItems":50,"type":"array","items":{"type":"string"}},"mainly":{"description":"true mainly about it, false in passing.","type":"boolean"},"answers":{"description":"Question key → answer keys (none; yes or no).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"maxItems":50,"type":"array","items":{"type":"string"}}},"likedFor":{"description":"Like-reason keys (topics[].likes), organic posts; with topics, about them.","maxItems":50,"type":"array","items":{"type":"string"}},"dislikedFor":{"description":"Dislike-reason keys, the same way.","maxItems":50,"type":"array","items":{"type":"string"}},"mentions":{"description":"Names it mentions.","maxItems":50,"type":"array","items":{"type":"string"}},"creators":{"description":"Creator handles.","maxItems":50,"type":"array","items":{"type":"string"}},"apps":{"description":"Only these apps.","maxItems":2,"type":"array","items":{"type":"string","enum":["tiktok","instagram"]}},"minViews":{"description":"Only posts with at least this many views.","type":"integer","minimum":0,"maximum":9007199254740991},"not":{"description":"The same labels: leaves out what each one matches.","type":"object","properties":{"topics":{"maxItems":50,"type":"array","items":{"type":"string"}},"feeling":{"maxItems":50,"type":"array","items":{"type":"string"}},"intent":{"maxItems":50,"type":"array","items":{"type":"string"}},"kind":{"maxItems":50,"type":"array","items":{"type":"string"}},"driver":{"maxItems":50,"type":"array","items":{"type":"string"}},"who":{"maxItems":50,"type":"array","items":{"type":"string"}},"paid":{"type":"boolean"},"risk":{"maxItems":50,"type":"array","items":{"type":"string"}},"mainly":{"type":"boolean"},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"maxItems":50,"type":"array","items":{"type":"string"}}},"likedFor":{"maxItems":50,"type":"array","items":{"type":"string"}},"dislikedFor":{"maxItems":50,"type":"array","items":{"type":"string"}},"mentions":{"maxItems":50,"type":"array","items":{"type":"string"}},"creators":{"maxItems":50,"type":"array","items":{"type":"string"}}}}}},"sort":{"description":"Most viewed (default) or newest first.","type":"string","enum":["views","newest"]},"limit":{"description":"Posts to return, 1-25. Default 10.","type":"integer","minimum":1,"maximum":25},"offset":{"description":"Skip this many: the previous call’s nextOffset.","type":"integer","minimum":0,"maximum":10000}},"required":["hive"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hive":{"$ref":"#/$defs/HiveRef"},"window":{"type":"object","properties":{"from":{"type":"string","description":"First day, YYYY-MM-DD (UTC): the one asked for, moved up to the furthest day the dashboard reaches back to (about two years) when it asks for more."},"to":{"type":"string","description":"Last day, included, YYYY-MM-DD (UTC)."}},"required":["from","to"],"additionalProperties":false,"description":"The days read."},"filter":{"description":"The `where`, in the hive's own words (`negative · organic · naming acme`). Absent when no `where` narrows the result.","type":"string"},"sort":{"type":"string","enum":["views","newest"],"description":"How `posts` are ordered: most viewed or newest first."},"total":{"type":"number","description":"Posts that match: get_hive_dashboard's `posts.aboutIt` for the same days and `where`."},"views":{"type":"number","description":"Views of every matching post, summed."},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The `offset` for the next page; null on the last page."},"posts":{"type":"array","items":{"$ref":"#/$defs/HivePost"},"description":"This page of the matching posts."}},"required":["hive","window","sort","total","views","nextOffset","posts"],"additionalProperties":false,"$defs":{"HiveRef":{"type":"object","properties":{"hiveId":{"type":"string","description":"The hive's id."},"name":{"type":"string","description":"The hive's name."}},"required":["hiveId","name"],"additionalProperties":false,"description":"The hive a result is about."},"HivePost":{"type":"object","properties":{"id":{"type":"string","description":"The post's Glystn id."},"platform":{"type":"string","enum":["instagram","tiktok"]},"username":{"type":"string","description":"The creator's handle."},"permalink":{"type":"string","description":"Link to the post."},"date":{"type":"string","description":"Posted at, ISO date-time (UTC)."},"media_type":{"type":"string","description":"`VIDEO`, `IMAGE` or `CAROUSEL_ALBUM`, as stored."},"plays":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views; null when the post has no view count."},"likes":{"type":"number","description":"Likes; Instagram stores a hidden like count as 3."},"comments":{"type":"number","description":"Comments, as the platform counts them."},"followersCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The creator's followers when the post was stored; null when not known."},"likeOutlier":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post, to one decimal: 3 means three times their typical likes. Null when not known."},"said":{"type":"string","description":"What the post says or shows, in one sentence, as the hive read it; empty when it has no reading."},"feeling":{"type":"string","enum":["positive","negative","mixed","neutral"],"description":"How the creator feels about what the hive follows; `neutral` when the post has no reading."},"why":{"type":"object","properties":{"likes":{"type":"array","items":{"type":"string"},"description":"Why the creator likes it, in the hive's words, over every topic the post talks about."},"dislikes":{"type":"array","items":{"type":"string"},"description":"Why they dislike it or hold back, the same way."}},"required":["likes","dislikes"],"additionalProperties":false,"description":"The reasons the hive read in the post."},"caption":{"type":"string","description":"The caption, cut to 240 characters; empty when none."},"transcript":{"type":"string","description":"The transcript, cut to 700 characters; empty when none."},"topComments":{"description":"Up to 10 of its stored comments, most liked first. Absent when Glystn has none stored, as for many posts (it does not mean none were posted).","type":"array","items":{"$ref":"#/$defs/HivePostComment"}}},"required":["id","platform","username","permalink","date","media_type","plays","likes","comments","followersCount","likeOutlier","said","feeling","why","caption","transcript"],"additionalProperties":false,"description":"A post behind a hive dashboard number, with what the hive read in it."},"HivePostComment":{"type":"object","properties":{"text":{"type":"string","description":"The comment, cut to 200 characters."},"likes":{"type":"number","description":"The comment's likes; 0 when not stored."}},"required":["text","likes"],"additionalProperties":false,"description":"One of a post's stored comments, without the commenter's handle."}}}},{"name":"get_hive_crossovers","title":"Get a hive's crossovers","description":"A crossover hive's crossovers: creators new to what it follows since launch who came from comparable titles. Returns the funnel, counts by tier and segment (with top titles), new crossovers by week, which story they tell and what brought them in, and standouts with their best post. Narrow by account type, location, segment, tier or weeks.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hive":{"type":"string","minLength":1,"description":"The hive: its id or its name, as list_hives gives them."},"who":{"description":"Whose accounts: people (default), brands, media or all.","type":"string","enum":["people","brands","media","all"]},"based":{"description":"Where they are based: anywhere (default), the US, the US plus accounts with no known country, outside the US, or not known.","type":"string","enum":["anywhere","us","us_or_unknown","outside_us","unknown"]},"segment":{"description":"Only crossovers in this segment: its key or name.","type":"string"},"tier":{"description":"Only this tier.","type":"string","enum":["regular","mid","large","unknown"]},"from":{"description":"Only crossovers whose first post about it since the launch fell in this week or later (YYYY-MM-DD).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"…in this week or earlier (YYYY-MM-DD).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"top":{"description":"Standout crossovers to list. Default 5.","type":"integer","minimum":0,"maximum":25},"standouts":{"description":"Standouts by their most viewed post (default), most liked, or furthest above their usual likes.","type":"string","enum":["views","likes","breakout"]}},"required":["hive"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hive":{"$ref":"#/$defs/HiveRef"},"subject":{"type":"string","description":"What the hive follows, in words."},"launch":{"type":"object","properties":{"name":{"type":"string","description":"What starts the days new creators count from (a trailer)."},"day":{"type":"string","description":"Its day, YYYY-MM-DD: crossovers are counted from it on."}},"required":["name","day"],"additionalProperties":false,"description":"The launch."},"markers":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverMarker"},"description":"Days marked on the charts."},"scope":{"type":"object","properties":{"who":{"type":"string","enum":["people","brands","media","all"],"description":"Whose accounts were counted: as asked, else `people`."},"based":{"type":"string","enum":["anywhere","us","us_or_unknown","outside_us","unknown"],"description":"Where they are based: as asked, else `anywhere`."},"segment":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The segment asked for, by its name; null for every one."},"tier":{"anyOf":[{"type":"string","enum":["regular","mid","large","unknown"]},{"type":"null"}],"description":"The tier asked for; null for every one."},"weeks":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","description":"The first week's Monday, YYYY-MM-DD."},"to":{"type":"string","description":"The last week's Monday, YYYY-MM-DD."}},"required":["from","to"],"additionalProperties":false},{"type":"null"}],"description":"The weeks counted: from the launch's through this week's (or the last marked day's, within the monitoring days), narrowed by `from` and `to`. Null when no week is left."}},"required":["who","based","segment","tier","weeks"],"additionalProperties":false,"description":"What was counted."},"tiers":{"type":"object","properties":{"regular":{"type":"string","const":"Regular: Under 5K followers"},"mid":{"type":"string","const":"Mid-tier: 5K to 100K followers"},"large":{"type":"string","const":"Large: 100K followers and up"},"unknown":{"type":"string","const":"Not known: No follower count yet"}},"required":["regular","mid","large","unknown"],"additionalProperties":false,"description":"Each tier key with its name and follower range."},"funnel":{"type":"object","properties":{"checked":{"type":"number","description":"Creators checked, in the scope."},"noHgPost":{"type":"number","description":"Set aside first: no post mainly about the subject since the launch."},"excluded":{"type":"number","description":"Set aside next: posted about it in the year before the launch."},"crossovers":{"type":"number","description":"The crossovers: the rest."},"others":{"type":"number","description":"Of them, the other crossovers: no seed title since the history start."},"unchecked":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Creators not checked yet as of the last pass of checks, whatever the scope; null before the first pass."}},"required":["checked","noHgPost","excluded","crossovers","others","unchecked"],"additionalProperties":false,"description":"How the checked creators in the scope (`who`, `based`) qualify, step by step: not narrowed by segment, tier or weeks."},"crossovers":{"type":"number","description":"Crossovers in the scope, narrowed by `segment`, `tier`, `from` and `to`."},"byTier":{"type":"object","propertyNames":{"type":"string","enum":["regular","mid","large","unknown"]},"additionalProperties":{"type":"number"},"description":"Those crossovers by tier: tier key to crossovers."},"weekly":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverWeek"},"description":"Each week counted, oldest first."},"segments":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverSegment"},"description":"Each of the hive's segments, then the rollup."},"titles":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverTitle"},"description":"The top 10 seed titles among the crossovers, most first."},"stories":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverLabelCount"},"description":"Which story the crossovers' posts tell, most first."},"broughtIn":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverLabelCount"},"description":"What brought the crossovers in, most first; a creator can count under several."},"standouts":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverStandout"},"description":"The top crossovers (`top`, default 5) by their best post, as `standouts` asks: the most viewed, the most liked, or the furthest above their usual likes (only outlier posts)."},"url":{"type":"string","description":"The hive's Crossovers tab in Glystn."}},"required":["hive","subject","launch","markers","scope","tiers","funnel","crossovers","byTier","weekly","segments","titles","stories","broughtIn","standouts","url"],"additionalProperties":false,"$defs":{"HiveRef":{"type":"object","properties":{"hiveId":{"type":"string","description":"The hive's id."},"name":{"type":"string","description":"The hive's name."}},"required":["hiveId","name"],"additionalProperties":false,"description":"The hive a result is about."},"HiveCrossoverMarker":{"type":"object","properties":{"day":{"type":"string","description":"The day, YYYY-MM-DD."},"label":{"type":"string","description":"What happened that day."}},"required":["day","label"],"additionalProperties":false,"description":"A day marked on the charts: a trailer, a release."},"HiveCrossoverWeek":{"type":"object","properties":{"week":{"type":"string","description":"The week's Monday, YYYY-MM-DD."},"newCrossovers":{"type":"number","description":"Crossovers whose first post about the subject since the launch fell in the week."},"byTier":{"type":"object","propertyNames":{"type":"string","enum":["regular","mid","large","unknown"]},"additionalProperties":{"type":"number"},"description":"Of them, by tier: tier key to crossovers."}},"required":["week","newCrossovers","byTier"],"additionalProperties":false,"description":"A week of new crossovers."},"HiveCrossoverSegment":{"type":"object","properties":{"segment":{"type":"string","description":"The segment's name; on the last row, the rollup's name."},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The segment's key, as `segment` takes it; null on the rollup, which counts every crossover once."},"crossovers":{"type":"number","description":"Crossovers in it."},"byTier":{"type":"object","propertyNames":{"type":"string","enum":["regular","mid","large","unknown"]},"additionalProperties":{"type":"number"},"description":"Of them, by tier: tier key to crossovers."},"weekly":{"type":"array","items":{"type":"number"},"description":"New crossovers each week: one number for each of the result's `weekly` rows, in their order."},"titles":{"type":"array","items":{"$ref":"#/$defs/HiveCrossoverTitle"},"description":"Its top 5 seed titles, most crossovers first."}},"required":["segment","key","crossovers","byTier","weekly","titles"],"additionalProperties":false,"description":"A segment (a bucket of seed titles; a crossover is in each one whose titles they posted about), counted with every narrowing but `segment`, so each one reads beside the others."},"HiveCrossoverTitle":{"type":"object","properties":{"title":{"type":"string","description":"The seed title's name."},"creators":{"type":"number","description":"Crossovers who posted about it since the history start."}},"required":["title","creators"],"additionalProperties":false,"description":"A comparable (\"seed\") title, with the crossovers who posted about it."},"HiveCrossoverLabelCount":{"type":"object","properties":{"key":{"type":"string","description":"An option of the hive's question, `none` when not said, or `both` for posts that tell more than one story."},"label":{"type":"string","description":"The key in words."},"creators":{"type":"number","description":"Crossovers it counts."}},"required":["key","label","creators"],"additionalProperties":false,"description":"An answer to one of the hive's crossover questions, with the crossovers it counts."},"HiveCrossoverStandout":{"type":"object","properties":{"creator":{"type":"string","description":"The creator's handle."},"app":{"type":"string","enum":["instagram","tiktok"]},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Their followers; null when not known."},"tier":{"type":"string","enum":["Regular","Mid-tier","Large","Not known"],"description":"Their tier's name, by followers (`tiers` gives each range)."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where they are based, an ISO country code; null when not known."},"segments":{"type":"array","items":{"type":"string"},"description":"The names of the segments they're in."},"story":{"type":"string","description":"Which story their posts about the subject since the launch tell, in words: an option, `Both`, or `Not said`."},"broughtIn":{"type":"array","items":{"type":"string"},"description":"What brought them in, in words, read on their first such post."},"firstPost":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The day of their first counted post about the subject, YYYY-MM-DD."},"best":{"type":"object","properties":{"url":{"type":"string","description":"Link to the post."},"date":{"type":"string","description":"Posted on, YYYY-MM-DD (UTC)."},"views":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Views when the creator was checked; null when not known."},"likes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes when the creator was checked; null when not known."},"likesVsUsual":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Likes against the creator's usual post, to one decimal; null when not known."}},"required":["url","date","views","likes","likesVsUsual"],"additionalProperties":false,"description":"Their best post about the subject since the launch: the most likes, then the most views."}},"required":["creator","app","followers","tier","country","segments","story","broughtIn","firstPost","best"],"additionalProperties":false,"description":"A standout crossover, with their best post about the subject."}}}}]}