Skip to main content
Glama

Forest plot with DerSimonian–Laird pooling

forest_plot

Pool study effect sizes by inverse variance, compute fixed-effect and random-effects estimates with Q, I², and τ², and render a forest plot as SVG for visual meta-analysis reporting.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "studies": "<studies>"
    },
    "name": "forest_plot"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoWhich pooled rows to draw (default 'both'). Both pooled estimates are always computed and returned
measureNoEffect measure (default 'OR'). OR/RR are pooled on the log scale
studiesYesOne entry per study; effect and CI on the reported scale

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it states that standard errors are recovered from the 95% CIs, that both pooled estimates are always computed regardless of the model choice, and that rendering differs between MCP Apps hosts (interactive view) and other hosts (SVG text plus pooled numbers). It does not cover failure modes such as invalid or non-positive CI bounds, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each earning its place: computation first, then the CI-derived SE assumption, then the output/rendering behavior. No redundant restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description must explain returns and behavior, and it largely does — naming the pooled statistics, the SVG output, and host-dependent rendering. Minor gaps remain around validation errors and edge cases, but an agent has enough to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the enum values and study fields are already documented in the schema. The description adds only modest meaning beyond it, chiefly that CIs are treated as 95% intervals for SE recovery and that pooling of OR/RR happens on the log scale — the latter already appears in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb-and-resource pair: pool study-level effect sizes by inverse variance and draw a forest plot as SVG. It also enumerates the statistics produced (Q, I², τ²) and both pooling models, so an agent can distinguish it from prisma_diagram, rob_traffic_light and sample_size without inspecting any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The meta-analytic use case is clear from the text, but there is no explicit when-to-use or when-not-to-use guidance and no alternative is named. An agent gets an implied context rather than a routing rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.