Meta Workbench MCP

v1.0.0
io.github.007-cloud-star/metaworkbench-mcp Checked 1 day ago Published 1 day ago

Sample size, forest & funnel plots, RoB 2, PRISMA 2020, GRADE tables — local meta-analysis tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sample_size Sample size calculator

Sample size for a two-group comparative study using normal approximations (same formulas as the Meta Workbench web calculator). design='means': two independent means (needs diff, sd1, sd2). design='proportions': two independent proportions, pooled-null variance, no continuity correction (needs p1, p2 as fractions). design='noninferiority': continuous (sd1/sd2, expectedDiff, margin) or binary (p1/p2, margin) endpoint. Returns per-group analysable n, total, and the attrition-adjusted recruitment target.

ParameterTypeDescription
design *stringStudy design to size
alphanumberSignificance level (default 0.05; non-inferiority uses one-sided alpha, default 0.025)
attritionnumberExpected attrition in percent (default 0)
diffnumber[means] Absolute difference to detect
directionstring[noninferiority] Which direction is better (default 'higher')
endpointstring[noninferiority] Endpoint type (default 'means')
expectedDiffnumber[noninferiority-means] Expected difference, new − reference (default 0)
marginnumber[noninferiority] Non-inferiority margin (same units as the endpoint; a fraction for binary)
p1number[proportions] Event proportion group 1, as a fraction 0–1 (for non-inferiority binary: new group)
p2number[proportions] Event proportion group 2, as a fraction 0–1 (for non-inferiority binary: reference group)
powernumberPower in percent, e.g. 80 (default 80)
rationumberAllocation ratio (default 1). Means/proportions: group 2 : group 1. Non-inferiority: reference : new
sd1number[means] SD group 1 / [noninferiority-means] SD of new group
sd2number[means] SD group 2 / [noninferiority-means] SD of reference group
sidedstringTest sidedness for means/proportions (default 'two'); non-inferiority is always one-sided

forest_plot Forest plot with DerSimonian–Laird pooling

Pool study-level effect sizes by inverse variance (fixed-effect and DerSimonian–Laird random-effects, with Q, I², τ²) and draw a forest plot as SVG. Standard errors are recovered from the 95% CIs. In MCP Apps hosts an interactive view renders inside the conversation; elsewhere the result carries the same plot as SVG text plus the pooled numbers.

ParameterTypeDescription
studies *arrayOne entry per study; effect and CI on the reported scale
measurestringEffect measure (default 'OR'). OR/RR are pooled on the log scale
modelstringWhich pooled rows to draw (default 'both'). Both pooled estimates are always computed and returned

rob_traffic_light RoB 2 traffic-light plot

Draw a robvis-style RoB 2 traffic-light plot (SVG) from per-domain judgements, plus the summary bar plot (SVG). The overall judgement follows the RoB 2 rule unless overridden per study. Studies with 'some concerns' in 2+ domains are flagged † (RoB 2 allows considering an overall High there; never applied silently).

ParameterTypeDescription
studies *array
weightedbooleanWeight the summary plot by sample size N (default false)

prisma_diagram PRISMA 2020 flow diagram

Draw a PRISMA 2020 flow diagram (SVG) for a review that searched databases and registers. Derived counts are computed for you: records screened = identified − removed before screening; reports sought = screened − excluded; reports assessed = sought − not retrieved.

ParameterTypeDescription
databases *integerRecords identified from databases
studiesIncluded *integerStudies included in the review
automationRemovedintegerRecords marked ineligible by automation tools (default 0)
duplicatesRemovedintegerDuplicate records removed (default 0)
exclusionReasonsarrayFull-text exclusion reasons with counts, e.g. 'Wrong population (n = 24)'
fullTextExcludedintegerReports excluded at full-text stage (default 0)
notRetrievedintegerReports not retrieved (default 0)
otherRemovedintegerRecords removed for other reasons (default 0)
registersintegerRecords identified from registers (default 0)
reportsIncludedintegerReports of included studies (defaults to studiesIncluded)
screenExcludedintegerRecords excluded at title/abstract screening (default 0)

funnel_plot Funnel plot with Egger's and Begg's tests

Draw a funnel plot (SVG) from study effects and standard errors given on the analysis scale (e.g. log OR), with pseudo 95% confidence limits around the pooled effect, and test for funnel-plot asymmetry: Egger's regression test (intercept, SE, t, df, p) and Begg's rank-correlation test (Kendall's τ, p). The pooled centre is the fixed-effect inverse-variance estimate unless pooledEffect overrides it. At least 3 studies are required; below 10 studies the tests are underpowered and the summary says so.

ParameterTypeDescription
studies *arrayOne entry per study, effects already on the analysis scale; at least 3 studies are required
pooledEffectnumberOptional pooled effect the plot and pseudo 95% confidence limits are centred on (e.g. a random-effects estimate). Default: the fixed-effect inverse-variance pooled estimate

grade_sof_table GRADE summary-of-findings table

Build a GRADE Summary of Findings table (HTML with inline styles) from per-outcome pooled results. For OR/RR/HR rows the anticipated absolute effects per 1,000 are derived from the assumed baseline risk (OR converted through the baseline risk; HR approximated as RR and footnoted). MD/SMD rows show the mean difference instead. Certainty is rendered with GRADE symbols (⊕⊕⊕⊕ … ⊕◯◯◯), downgrade reasons become lettered footnotes, and each row gets a plain-language 'what happens' line computed from the numbers.

ParameterTypeDescription
outcomes *arrayOne entry per outcome row of the summary-of-findings table
comparisonstringOptional comparison line shown under the title
titlestringOptional table title, e.g. 'Intervention compared with usual care for acute ischaemic stroke'