whoqol-toolkit
Reads and analyses questionnaire spreadsheets exported from Google Forms containing WHOQOL-BREF responses, detecting item columns (by number or question text in PT/EN/ES), the language version administered, numeric or text answers, and roles of the remaining columns.
Reads and analyses WHOQOL-BREF response exports from LimeSurvey (spreadsheet/CSV type), applying the instrument's item detection and scoring rules to the exported data.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
whoqol-toolkit
Beta. The tool may still contain errors. Check every result before publishing it and report problems.
A plugin for Claude Code and Antigravity (agy) that scores and analyses WHOQOL
quality-of-life questionnaires for publication. You give it the spreadsheet exported from Google Forms, REDCap,
LimeSurvey, SPSS or Excel; it applies the official WHO scoring rules, checks data quality, estimates reliability and
validity, compares groups and writes APA tables, figures and a draft of the methods and results sections.
All numbers come from a tested, deterministic Python package that the skill runs with uv run. The agent's job is to
ask the right questions, run the scripts and interpret the output; it never computes scores itself.
Supported instruments: WHOQOL-BREF, WHOQOL-OLD, EUROHIS-QOL 8, WHOQOL-HIV-BREF, WHOQOL-SRPB BREF, WHOQOL-SRPB, WHOQOL-DIS (physical and intellectual disabilities), WHOQOL-100, WHOQOL-HIV and WHOQOL-100 + SRPB. Each one is scored by the rules of its WHO manual or official syntax; where the sources are silent or disagree, the convention adopted is documented and stated in the methods draft (instruments.md).
Contents
Related MCP server: mplus-mcp
Overview
Hosts | Claude Code (plugin) · Antigravity CLI (plugin) · plain command line |
Instruments | WHOQOL-BREF, WHOQOL-OLD, EUROHIS-QOL 8, WHOQOL-HIV-BREF, WHOQOL-SRPB BREF, WHOQOL-SRPB, WHOQOL-DIS (PD, ID, Brazilian national items, proxy), WHOQOL-100 (6 domains or the 4 BREF domains), WHOQOL-HIV, WHOQOL-100 + SRPB (details) |
Input formats | .xlsx, .xls, .ods, .csv, .tsv, .sav |
Item detection | by number ( |
Languages | Portuguese, English and Spanish. The report follows the language of the questionnaire (English for any other); the methods/results draft is always written in all three |
Language version | detected from answers and headers (pt-BR: Fleck et al., 2000; es-ES: Lucas, 1998; en: WHOQOL Group, 1998) and cited in the methods text |
Runtime | Python ≥ 3.10, dependencies resolved by |
Pipeline
flowchart LR
A["Spreadsheet"] --> B["1 · inspect<br/>item columns, language version,<br/>other variables"]
M["Data dictionary<br/>(optional, pre-filled)"] -.-> C
B --> C["2 · agree on the plan<br/>groups, covariates,<br/>reference values"]
C --> D["3 · analyze<br/>WHO scoring, quality,<br/>psychometrics, statistics"]
D --> E["4 · interpretation<br/>by the agent, in the<br/>user's language"]
D --> F["report.md · tables.docx<br/>results.xlsx · figures<br/>methods_results_pt/en/es.md"]Analyses
Area | What is computed |
Scoring | WHO rules: Q3, Q4 and Q26 reversed; domain = mean × 4 (4–20) and 0–100; minimum valid items per domain (6/7, 5/6, 2/3, 6/8); questionnaires with fewer than 21 valid items excluded; global facet (Q1–Q2) reported separately |
Data quality | missingness per item and overall, unrecognised answers, exclusions, duplicates, straight-lining, floor/ceiling effects |
Scoring sensitivity | where the official sources are silent or disagree, the data are rescored with each documented alternative rule (e.g. the UFRGS syntax) and the change in means and n is reported |
Reliability | Cronbach's α with Feldt 95% CI, McDonald's ω, mean inter-item r, SEM, MDC95, ½ SD |
Validity | multitrait scaling (corrected item–domain r), HTMT, confirmatory factor analysis (ML: χ², CFI, TLI, RMSEA with 90% CI, SRMR, AVE, CR) and a ready lavaan script for WLSMV |
Comparisons | Welch t / Hedges g, Mann-Whitney / rank-biserial r, Welch ANOVA / ω² + Games-Howell, Kruskal-Wallis / ε² + Dunn; Holm correction; automatic choice by Shapiro-Wilk/CLT (reported) |
Associations | Spearman ρ with 95% CI; multiple linear regression with HC3 errors and VIF |
Reference values | one-sample comparison against published means (supplied by the user, with source); optional cut-off proportion |
Security and confidentiality
Everything runs locally: the analysis code makes no network calls and the spreadsheet is never uploaded by the tool. The agent you use (Claude, Antigravity) does see the script outputs, which are aggregated statistics; avoid pasting raw rows into the chat.
Questionnaire answers are personal health data (LGPD, GDPR). Use pseudonymised IDs, keep the files outside the repository (
.gitignoreexcludesdata/,*_whoqol/and spreadsheets) and follow your ethics approval.Cell values and column names are treated as data, never as instructions to the agent.
inspectprints them cleaned (hidden characters removed, length capped) and lists headers or cells that look like instructions to an AI insecurity_flags.The interpretation and the methods/results text are AI-assisted drafts: verify them, take responsibility for them and disclose AI use as your journal requires.
The scoring, statistics and reports come from tested code; the agent is told never to compute or invent numbers, norms or cut-offs (
rules/AGENTS.md).
Installation
Requirements: uv and Claude Code or Antigravity CLI, installed and authenticated.
The Python dependencies are installed by uv the first time the skill runs.
Claude Code
/plugin marketplace add LaBiOmicS/whoqol-toolkit
/plugin install whoqol-toolkit@labiomicsThe labiomics marketplace lists all LaBiOmicS plugins (academic-peer-review, congress-abstract-review,
whoqol-toolkit).
Installer script (Claude Code and Antigravity)
git clone https://github.com/LaBiOmicS/whoqol-toolkit.git
cd whoqol-toolkit
./install.shThe script syncs the Python environment and registers the plugin in whichever CLIs are installed.
Antigravity CLI
agy plugin validate ./whoqol-toolkit --strict
agy plugin install ./whoqol-toolkit
agy plugin enable whoqol-toolkitRestart the session after installing. A step-by-step guide for beginners is on the project page.
Usage
Interactive
Analyse the WHOQOL-BREF answers in
~/data/qol_survey.xlsxand compare the domains by sex and education.
Analise esta planilha do WHOQOL-BREF e gere tabelas para publicação:
~/dados/whoqol.xlsx
Analiza la fiabilidad y validez del WHOQOL-BREF en
~/datos/encuesta.csv
In Claude Code the skill can also be called directly: /whoqol-toolkit:whoqol ~/data/qol_survey.xlsx. The agent
inspects the file, confirms the detected columns and the analysis plan with you, runs the analysis and interprets
the results.
Headless
The same scripts run without an agent:
WHOQOL="uv run skills/whoqol/scripts/whoqol_cli.py"
$WHOQOL inspect examples/sample_google_forms_pt.xlsx
$WHOQOL template examples/sample_google_forms_pt.xlsx --lang en -o dictionary.xlsx
$WHOQOL analyze examples/sample_google_forms_pt.xlsx -g Sexo -g Escolaridade -c Idade
$WHOQOL analyze examples/sample_numeric.csv -g Sexo --lang en --instrument-version pt
$WHOQOL guide scoringCommand | Purpose |
| list supported instruments and language versions |
| detect item columns, language version, unrecognised answers, roles of the other columns and suspicious content |
| create a pre-filled data dictionary (.xlsx) in PT, EN or ES |
| score only, one row per participant |
| full analysis and all output files |
| workflow, scoring rules, psychometric criteria, interpretation, reporting checklist, references |
Cost
The analysis runs locally and costs no model calls. The agent's part is a few turns: inspecting, agreeing on the plan and interpreting the JSON summary.
Data dictionary (optional)
A metadata file is never required: a spreadsheet with clear headers is analysed as it is. It helps when the data
has coded variables (1/2 instead of labels), ordinal categories (education, income), missing codes (99, -9)
or when you want to record the study context. The template command writes it pre-filled with the detected roles;
you review two sheets and pass it back with --metadata:
variables – column, role (
item,id,group,continuous,covariate,ignore), item, label, value labels (1=Female; 2=Male), level order, missing codes;study – population, design, country, administration mode.
Sheet and column names are accepted in Portuguese, English or Spanish. A variables/variaveis sheet inside the data
workbook is read automatically.
Parameters
Options of whoqol_cli.py analyze:
Option | Default | Description |
|
| instrument key ( |
| auto |
|
| — | variables for comparisons, correlations and regression (repeatable) |
|
|
|
| — |
|
| — | proportion at or above a cut-off (e.g. 60, older adults only) |
| off | adds a 24-item total score (not part of the WHO manual) |
| off | skips the confirmatory factor analysis |
|
| report language: |
|
| language version administered, cited in the methods text |
| — | data dictionary; explicit options take precedence |
|
| output folder |
Outputs
Written to <file>_whoqol/ (or -o/--output-dir):
File | Content |
| full report opening with a plain-language summary, then alerts, tables with "how to read" notes, construct validity, scoring-rule sensitivity (when the instrument has alternative rules) and captioned figures (report language) |
| APA-style tables, figures and references, to review and adapt for the manuscript |
| scores per participant and every table, one sheet each ( |
| draft of the statistical-analysis and results sections in three languages |
| domain distribution, item responses, correlations, group means (PNG 300 dpi + PDF) |
| CFA with WLSMV in R (lavaan, semTools) |
| machine-readable summary (English keys) |
Limitations
There are no official WHO cut-offs and no established minimal important difference; the tool reports distribution-based benchmarks (½ SD, MDC95). Normative values must come from a cited source.
The built-in CFA uses maximum likelihood, which treats Likert items as continuous. For a psychometric paper, run the WLSMV script and test measurement invariance.
Language-version detection needs text answers or question headers; with numeric data, state the version.
Missing-data rules that the sources do not give, and the scoring of the WHOQOL-DIS proxy form, are toolkit conventions, listed in instruments.md and stated in the methods draft. Every analysis rescores the data with the documented alternatives and reports how much means and n change; read that section before comparing with studies scored with the UFRGS syntax (it reverses item F2.1 of the WHOQOL-HIV by mistake, which lowers the energy facet and the physical domain).
WHOQOL-BREF-ID (intellectual disabilities, 3-point items): no source gives a 0–100 rule for the BREF domains; the linear transformation used is a convention, and these scores are not comparable with five-point BREF norms.
For the WHOQOL-100, WHOQOL-HIV and WHOQOL-SRPB, question numbers follow the Brazilian form (the WHO generic form has none); use item codes (
F1.1,SP1.1) or the question text as headers.On the WHOQOL-100 family the Python CFA is facet-level; the item-level second-order model is in the lavaan script.
Use of WHOQOL instruments must follow the WHO's terms; the toolkit does not distribute the questionnaire.
Questionnaire answers are personal health data: keep them local and pseudonymised (see
rules/AGENTS.md).
Development
uv sync --group dev
uv run pytest -q
uvx ruff check skills tests examples
uv run python examples/generate_examples.py # synthetic example data
claude plugin validate . && agy plugin validate . --strictTo add an instrument, create skills/whoqol/scripts/whoqol/instruments/<name>.py with an Instrument (items, reversed
items, scores with their minimum valid items, multiplier or facets, response scale, item texts and codes, language
versions, notes on the sources) and register it in instruments/__init__.py. Scoring, psychometrics, reports and the
scoring guide follow from that definition. Add a test to tests/test_reference_instruments.py with the rules
transcribed from the manual and a respondent calculated by hand.
Citation
If you use whoqol-toolkit in your research, please cite it:
@software{whoqol_toolkit,
author = {{LaBiOmicS -- Laboratory of Bioinformatics and Omics Sciences, University of Mogi das Cruzes}},
title = {{whoqol-toolkit}: scoring, psychometrics and publication-grade statistics for WHOQOL questionnaires},
version = {0.3.0},
year = {2026},
url = {https://github.com/LaBiOmicS/whoqol-toolkit}
}Set version to the release you used. On GitHub, Cite this repository gives the same reference in other formats
(APA and BibTeX), from CITATION.cff.
Also cite the instrument and the validated language version you used (see references.md).
License and authorship
MIT © 2026 Prof. Dr. Fabiano Bezerra Menegidio — Laboratório de Bioinformática e Ciências Ômicas (LaBiOmicS), Universidade de Mogi das Cruzes (UMC).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Analyse tests for item quality, true ability, reliability and learner mastery.
Upload spreadsheets, get plain-English analysis with real computed charts and quality scores.
Process assessments: question packs, multi-respondent sessions, validation and result packages
Query and summarize research data across tests and surveys
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides tools for managing quantitative research knowledge graphs, enabling structured representation of research projects, datasets, variables, hypotheses, statistical tests, models, and results.69MIT
- AlicenseAqualityDmaintenanceEnables preparing data, building and running Mplus input files, and reading the output back as tables, including fit indices, parameter estimates, and warnings.10MIT
- AlicenseAqualityCmaintenanceEnables classical test theory analysis, differential item functioning, local item dependence detection, and standard setting through MCP tools.5MIT
- AlicenseAqualityBmaintenanceEnables scoring the WHO-5 Well-Being Index from five answers, returning a 0–100 score and a low, reduced, or normal band without providing a diagnosis.1MIT