Skip to main content
Glama

gee

Fit generalized estimating equation models for clustered or longitudinal data, returning population-averaged coefficients with robust standard errors, z values, and p values.

Instructions

Fit a generalized estimating equation model.

``data`` is either a ``{column: list}`` mapping or an ``"@<path>.csv"``
reference. ``groups`` names the clustering column. ``family`` is one of
gaussian, binomial or poisson; ``cov_struct`` is one of independence,
exchangeable or autoregressive.

Returns population-averaged coefficients with robust standard errors,
z values and p values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
familyNogaussian
groupsYes
formulaYes
cov_structNoexchangeable

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does usefully disclose the two accepted data input forms, the validated categorical options for family and cov_struct (which the schema omits), and the return payload (population-averaged coefficients with robust SEs, z and p values). It does not address failure modes, weighting, or parameter estimation details.

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

Conciseness4/5

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

Three short paragraphs: purpose first, then input semantics, then return shape. Front-loaded and free of filler, with only minor reStructuredText backtick noise.

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

Completeness3/5

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

For a statistically non-trivial tool with no output schema, the description helpfully covers the return values and most input formats. However the required formula parameter is left completely undefined, and there is no output schema to fall back on, leaving a meaningful gap for correct invocation.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it largely does: it explains data (mapping vs '@path.csv' reference), groups (clustering column), family (three allowed values) and cov_struct (three allowed values) — effectively supplying the enums absent from the schema. It omits any explanation of the formula parameter, which is required, so it falls short of full compensation.

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

Purpose4/5

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

States a specific verb and resource: 'Fit a generalized estimating equation model.' This is clearly distinguishable from generic regression siblings like glm or linear_regression, though the description never names those close alternatives (mixed_lm, glm) explicitly, so the differentiation is implicit rather than stated.

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

Usage Guidelines2/5

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

No guidance on when a GEE is the right choice versus glm, mixed_lm, or nonlinear_mixed_lm, which are the obvious neighbouring tools. The description only says what the tool does, leaving the selection decision entirely to the agent.

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