Skip to main content
Glama

get_statistics

Compute descriptive statistics for numerical columns including count, mean, standard deviation, min/max values, and percentiles to analyze data distribution and quality.

Instructions

Get comprehensive statistical summary of numerical columns.

Computes descriptive statistics for all or specified numerical columns including count, mean, standard deviation, min/max values, and percentiles. Optimized for AI workflows with clear statistical insights and data understanding.

Returns: Comprehensive statistical analysis with per-column summaries

Statistical Metrics: 📊 Count: Number of non-null values 📈 Mean: Average value 📉 Std: Standard deviation (measure of spread) 🔢 Min/Max: Minimum and maximum values 📊 Percentiles: 25th, 50th (median), 75th quartiles

Examples: # Get statistics for all numeric columns stats = await get_statistics("session_123")

# Analyze specific columns only
stats = await get_statistics("session_123", columns=["price", "quantity"])

# Analyze all numeric columns (percentiles always included)
stats = await get_statistics("session_123")

AI Workflow Integration: 1. Essential for data understanding and quality assessment 2. Identifies data distribution and potential issues 3. Guides feature engineering and analysis decisions 4. Provides context for outlier detection thresholds

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
columnsYesList of specific columns to analyze (None = all numeric columns)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoWhether operation completed successfully
statisticsYesStatistical summary for each column
total_rowsYesTotal number of rows in the dataset
column_countYesTotal number of columns analyzed
numeric_columnsYesNames of numeric columns that were analyzed
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool is optimized for AI workflows and returns comprehensive statistical analysis, but does not cover behavioral aspects like performance, error handling, or data size limitations. It adds some context (e.g., 'percentiles always included') but lacks details on permissions, rate limits, or mutation effects. The transparency is adequate but has gaps.

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 description is well-structured with sections for returns, metrics, examples, and AI integration, making it easy to scan. However, it includes redundant elements (e.g., repeating 'Analyze all numeric columns' in examples) and could be more front-loaded by moving key usage details earlier. Most sentences earn their place, but some trimming would improve conciseness without losing clarity.

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?

Given the tool's complexity (statistical analysis), no annotations, and the presence of an output schema, the description is reasonably complete. It covers purpose, metrics, examples, and integration, but lacks details on behavioral traits and explicit sibling differentiation. The output schema likely handles return values, so the description does not need to explain them. It is mostly sufficient but could be more comprehensive for a tool with no annotations.

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?

The input schema has 100% description coverage, clearly documenting the 'columns' parameter. The description adds minimal value beyond the schema, mentioning 'all or specified numerical columns' and providing examples, but does not explain parameter semantics in depth (e.g., column name formats, handling of non-numeric columns). With high schema coverage, the baseline score of 3 is appropriate as the description does not significantly enhance parameter understanding.

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?

The description clearly states the tool computes descriptive statistics for numerical columns, specifying the exact metrics (count, mean, standard deviation, min/max, percentiles). It distinguishes from siblings like 'get_column_statistics' by emphasizing 'comprehensive statistical summary' and 'all or specified numerical columns', though the distinction could be more explicit. The purpose is specific but not fully differentiated from similar tools.

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 implies usage for data understanding, quality assessment, and AI workflows, and provides examples for analyzing all or specific columns. However, it lacks explicit guidance on when to use this tool versus alternatives like 'get_column_statistics' or 'profile_data', and does not mention prerequisites or exclusions. The guidelines are helpful but incomplete for sibling differentiation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonpspri/databeak'

If you have feedback or need assistance with the MCP directory API, please join our Discord server