product-analytics-synthetic-population
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ANTHROPIC_API_KEY | No | Your Anthropic API key, used by `perguntar_populacao`. It is never requested in chat: if absent, the tool opens a single-use local page (127.0.0.1) where you paste the key and it is stored in the system keychain. `ant auth login` is also accepted. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Gera uma população sintética quantitativa a partir do export de eventos de um product analytics (GA4, Mixpanel, Amplitude, PostHog, Heap…). Fluxo: inspecionar_export → (completar o mapa, se faltar algo) → gerar_populacao. Sem dados próprios, criar_export_exemplo gera uma loja fictícia. Depois, perguntar_populacao dá voz aos gêmeos estatísticos com um LLM (na API key da pessoa) para ver como cada segmento reagiria a uma situação ou pergunta. Nunca peça a API key no chat: a ferramenta abre uma página local para isso. Mostre ao usuário o resumo devolvido, o aviso e onde os arquivos foram gravados.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| inspecionar_exportA | Lê o export (CSV ou JSON, uma linha por evento) e diz como as regras entenderam as colunas e os eventos. Devolve colunas, uma amostra com ids e e-mails mascarados, os valores comuns das colunas de poucos valores e o mapa sugerido. Se faltar algo, complete o mapa a partir disso e passe para gerar_populacao. |
| gerar_populacaoB | Gera a população sintética e confere fidelidade e privacidade contra usuários reais que o gerador não viu. mapa (opcional): {usuario, data, evento, sessao, receita, canal, dispositivo, pais, eventos: {view_item: [...], add_to_cart: [...], begin_checkout: [...], purchase: [...]}}; só o que as regras não acharam. n: tamanho da população (100 a 100.000). saida: pasta de saída (padrão: ao lado do arquivo). Grava populacao_sintetica.csv, relatorio.md e relatorio.json. |
| criar_export_exemploA | Cria o export de eventos de uma loja on-line fictícia, para testar sem dados próprios. formato: amplitude, mixpanel, ga4 ou estranho (colunas que as regras não reconhecem, para testar o mapa). destino: pasta (recomendado) ou arquivo novo .csv (.jsonl para mixpanel); nunca sobrescreve um arquivo existente. |
| perguntar_populacaoA | Dá voz aos gêmeos estatísticos: um LLM responde no lugar de alguns gêmeos de cada segmento. populacao: o populacao_sintetica.csv gravado por gerar_populacao. contexto: a situação (ex.: "a página de produto passa a mostrar frete grátis acima de R$ 150"). opcoes: respostas fechadas (ex.: ["usaria", "talvez", "não usaria"]); sem opções, a resposta é livre. gemeos_por_segmento: 1 a 20 (padrão 5). Roda na API key da Anthropic de quem usa: se não houver, a ferramenta devolve um link local para colar a chave (nunca peça a chave no chat). Custa centavos por pergunta; o resultado vem com o custo e um aviso: a reação vem do LLM e não foi validada contra pessoas reais. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool occupies a distinct stage of the pipeline: create a test fixture, inspect an export's schema/events, generate the synthetic population, and query the resulting twins. There is no overlapping functionality or ambiguous verb that could cause misselection; the descriptions also clarify sequencing.
All four names follow a consistent Portuguese verb_noun pattern in snake_case: inspecionar_export, gerar_populacao, criar_export_exemplo, perguntar_populacao. The mix of Portuguese nouns with the English term 'export' is domain terminology, not a convention inconsistency.
Four tools is a tight, well-scoped surface for this domain; each one (fixture creation, schema inspection, generation, interviewing) earns its place with no filler. The count sits comfortably within the ideal 3-15 range.
The core lifecycle is covered end-to-end: criar_export_exemplo → inspecionar_export → gerar_populacao → perguntar_populacao, with validation folded into generation. Minor gaps remain, such as a standalone tool to re-validate an existing synthetic CSV or to export/persist interview results, but agents can work around these.