Skip to main content
Glama

util_regression

Read-only

Linear regression (OLS, up to 10 predictors) with diagnostics — Ordinary least squares. y= comma-separated outcome values (required, up to 5000); x= one predictor as a comma list or several predictors separated by ; (each same length as y, max 10). Optional names= (comma names for predictors), predict= (one value per predictor) for a point prediction with 95% confidence and prediction intervals, intercept=false. Returns equation, coefficients with SE/t/p/95% CI, R-squared, adjusted R-squared, F test, residual SE, AIC, Durbin-Watson, VIF multicollinearity, outliers by studentized residual, and notes. Offline. Price: $0.003 USDC (Base, via x402).

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": {
      "y": "<y>",
      "x": "<x>"
    },
    "name": "util_regression"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes1,2,3,4,5,6,7,8,9,10;3,1,4,1,5,9,2,6,5,3
yYes5,7,9,8,12,14,13,17,18,21

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered, and the description still adds substantial context: it runs offline, costs $0.003 USDC via x402 on Base, caps y at 5000 values and predictors at 10, and enumerates every diagnostic returned. The only meaningful gap is error behavior (e.g., mismatched lengths), which is hinted at by 'each same length as y' but not spelled out.

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?

The method and predictor limit are front-loaded, and the sentences map cleanly onto input format, optional features, and return values. The single dense block is long and reads as a run-on list of returns, but nearly every clause carries operational information.

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, so the description carries the burden of describing results, and it does so thoroughly by listing the equation, coefficient table with SE/t/p/CI, R-squared, F test, AIC, Durbin-Watson, VIF and outliers. Completeness is only slightly weakened by the optional parameters mentioned in prose but absent from the schema.

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?

With 100% schema coverage the baseline is 3, and this description goes beyond the schema by giving the delimiter syntax for multiple predictors, the length-matching constraint, and the y size cap. However, it also describes optional names=, predict= and intercept= arguments that do not appear in the input schema at all, which could mislead an agent into sending fields that fail validation; that inconsistency keeps it from a 5.

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?

States a specific method (ordinary least squares linear regression) plus a hard scope limit (up to 10 predictors) and a distinguishing feature (diagnostics). An agent knows exactly what resource this produces, and the detail is far more specific than the sibling names like util_forecast or util_anova.

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 description gives rich guidance on how to format inputs and what the tool returns, which implies usage, but never states when to choose this over an alternative such as util_forecast (prediction-oriented) or an ANOVA-style comparison. The closest thing to a selection hint is 'with diagnostics,' leaving the agent to infer the boundary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources