Skip to main content
Glama
craig1901

MCP-Data-Analysis-Server

by craig1901

FastMCP Data Analysis Server

A Model Context Protocol (MCP) server that provides comprehensive data analysis utilities including statistical functions, probability distributions, and data processing tools.

Features

Probability Distributions

  • Poisson Probability: Calculate point, cumulative, and survival probabilities

  • Normal Distribution: PDF, CDF, and survival function calculations

  • Binomial Probability: Complete binomial distribution analysis

Statistical Analysis

  • Descriptive Statistics: Mean, median, mode, variance, skewness, kurtosis, quartiles

  • Correlation Analysis: Pearson and Spearman correlation with significance testing

  • Hypothesis Testing: One-sample t-tests with detailed results

  • Linear Regression: Simple linear regression with R², MSE, and equation

Data Processing

  • CSV Analysis: Process CSV text data and generate comprehensive summaries

  • Data Summarization: Automatic detection of numeric/categorical columns

Related MCP server: ChatBI MCP Server

Installation

  1. Initialize the project with uv:

uv init fastmcp-data-analysis-server
cd fastmcp-data-analysis-server
  1. Install dependencies:

uv add fastmcp numpy scipy pandas

Or install from the pyproject.toml:

uv sync
  1. Install development dependencies (optional):

uv add --dev pytest pytest-asyncio black isort mypy

Usage

Running the Server

# Using uv
uv run python main.py

# Or if installed
python main.py

Available Tools

1. Poisson Probability

# Point probability: P(X = k)
poisson_probability(lam=3.5, k=2, prob_type="point")

# Cumulative probability: P(X ≤ k)  
poisson_probability(lam=3.5, k=5, prob_type="cumulative")

# Survival probability: P(X > k)
poisson_probability(lam=3.5, k=4, prob_type="survival")

2. Descriptive Statistics

descriptive_statistics([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

3. Normal Distribution

# Standard normal
normal_probability(x=1.96, mean=0, std_dev=1, prob_type="cumulative")

# Custom normal distribution
normal_probability(x=85, mean=100, std_dev=15, prob_type="point")

4. Correlation Analysis

correlation_analysis(
    x_data=[1, 2, 3, 4, 5], 
    y_data=[2, 4, 6, 8, 10]
)

5. Hypothesis Testing

hypothesis_test_ttest(
    sample_data=[12, 15, 18, 16, 17], 
    population_mean=14, 
    alpha=0.05
)

6. Linear Regression

linear_regression_analysis(
    x_data=[1, 2, 3, 4, 5],
    y_data=[2, 4, 5, 4, 5]
)

7. Binomial Probability

# Probability of exactly 3 successes in 10 trials
binomial_probability(n=10, k=3, p=0.4, prob_type="point")

8. CSV Data Analysis

csv_text = """name,age,score
Alice,25,85
Bob,30,92
Charlie,22,78"""

data_summary_from_csv_text(csv_text)

Example Responses

Poisson Probability Response

{
    "probability": 0.2138,
    "description": "P(X = 2)",
    "lambda": 3.5,
    "k": 2,
    "prob_type": "point",
    "mean": 3.5,
    "variance": 3.5,
    "std_dev": 1.8708
}

Descriptive Statistics Response

{
    "count": 10,
    "mean": 5.5,
    "median": 5.5,
    "std_dev": 3.0277,
    "variance": 9.1667,
    "min": 1.0,
    "max": 10.0,
    "skewness": 0.0,
    "kurtosis": -1.2
}

Development

Code Formatting

uv run black main.py
uv run isort main.py

Type Checking

uv run mypy main.py

Testing

uv run pytest

MCP Client Integration

This server can be used with any MCP client. The tools are automatically exposed and can be called with the appropriate parameters.

Example MCP Client Usage

# Assuming you have an MCP client connected
client.call_tool("poisson_probability", {
    "lam": 2.5,
    "k": 3,
    "prob_type": "cumulative"
})

Example MCP Server Config

{
  "mcpServers": {
    "analysis-mcp": {
      "command": "fastmcp-data-analysis-server/.venv/bin/python",
      "args": [
        "fastmcp-data-analysis-server/main.py"
      ],
    }
  }
}

Error Handling

All functions include comprehensive error handling for:

  • Invalid parameter values

  • Empty datasets

  • Mismatched data lengths

  • Invalid probability types

  • Mathematical domain errors

License

MIT License

Available Tools

8 tools
binomial_probabilityA

Calculate binomial probability.

Args: n: Number of trials k: Number of successes p: Probability of success on each trial prob_type: Type of probability ("point", "cumulative", "survival")

Returns: Dictionary with probability value and distribution info

ParametersJSON Schema
NameRequiredDescriptionDefault
kYes
nYes
pYes
prob_typeNopoint

TDQS

A3.5/5.0
Behavior2/5

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

Since no annotations are present, the description must disclose behavioral traits. It lists the allowed prob_type values and states that the return is a dictionary with probability and distribution info, but it does not explain the exact keys, edge-case handling, or what 'distribution info' includes. This leaves significant ambiguity about the tool's behavior.

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?

The description is concise and well-structured, with a clear purpose line followed by a labeled Args section and a Returns section. Every sentence adds value with no redundancy, making it easy to scan.

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?

Without annotations or an output schema, the description is the sole source of context. It covers the parameters and return type at a high level, but it does not specify the exact return structure, the meaning of each prob_type (e.g., cumulative = P(X≤k)), or error behavior. This is a minimum-viable description, but not a complete one.

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?

The input schema has zero parameter descriptions, so the Args section must compensate. It does so by providing meaningful definitions for all four parameters: n as trials, k as successes, p as probability per trial, and prob_type with allowed values. However, constraints like p in [0,1] or k ≤ n are omitted, so it is not exhaustive.

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 begins with 'Calculate binomial probability,' which clearly states the verb and resource, and it inherently distinguishes the tool from siblings like poisson_probability and normal_probability. The listing of key parameters (n, k, p, prob_type) reinforces the purpose.

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?

The description provides no explicit guidance on when to use this tool versus alternatives, such as poisson_probability or normal_probability. It does not mention the conditions for a binomial distribution (e.g., fixed number of independent trials) nor exclude any alternatives. Usage is only implied by the function name and parameters.

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

correlation_analysisC

Perform correlation analysis between two datasets.

Args: x_data: First dataset y_data: Second dataset

Returns: Dictionary with correlation coefficients and analysis

ParametersJSON Schema
NameRequiredDescriptionDefault
x_dataYes
y_dataYes

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description must carry the full burden of behavioral disclosure. It only states that it returns a dictionary with coefficients and analysis, but omits specifics like correlation method, assumptions, missing data handling, and side effects. Though it doesn't contradict annotations (none provided), it is minimally transparent.

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 concise, with a clear purpose statement and structured Args/Returns sections. However, the brevity borders on under-specification, as it omits crucial details like correlation type and return format.

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 simple two-parameter tool, the description gives a basic outline but lacks completeness. It doesn't explain what 'analysis' includes or what the dictionary keys are, and with no output schema, the return value remains ambiguous. It's adequate but with clear gaps.

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

Parameters2/5

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

Schema description coverage is 0%, so the description needs to compensate. 'First dataset' and 'Second dataset' are tautological and add no meaning beyond the schema's array-of-number type. It doesn't specify required lengths, alignment, or data assumptions, leaving the parameters inadequately explained.

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 it performs correlation analysis between two datasets, identifying the specific operation and resource. However, it doesn't differentiate from sibling tools like linear_regression_analysis or hypothesis_test_ttest, which also work with datasets, so it falls short of a 5.

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?

There is no guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. The description simply states what it does without indicating context or comparative use cases.

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

data_summary_from_csv_textA

Generate summary statistics from CSV text data.

Args: csv_text: CSV data as text delimiter: CSV delimiter

Returns: Dictionary with data summary and statistics

ParametersJSON Schema
NameRequiredDescriptionDefault
csv_textYes
delimiterNo,

TDQS

A3.7/5.0
Behavior2/5

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

The description lacks behavioral details beyond the basic operation. It does not disclose how malformed CSV is handled, whether headers are expected, what statistics are included, or any limitations. With no annotations, the description carries the full burden, but it only provides a minimal summary and return type.

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?

The description is compact: one sentence for purpose, then a clear Args/Returns block. Every element serves a purpose and nothing is redundant. It is well-structured and easy to parse.

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?

The tool is simple with 2 parameters, but no output schema exists, so the description should clarify the return format. It only says 'Dictionary with data summary and statistics,' which is vague about which statistics are computed. It also omits edge-case handling, making it insufficiently complete for a robust evaluation.

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?

The schema has 0% description coverage, but the description includes an Args section explaining both parameters: csv_text as 'CSV data as text' and delimiter as 'CSV delimiter.' This adds needed meaning beyond the raw schema, though the definitions are somewhat minimal.

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 clearly states 'Generate summary statistics from CSV text data,' specifying the verb (generate), resource (CSV text data), and intended output (summary statistics). This distinguishes it from sibling statistical tools that likely operate on other input formats.

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?

Usage is implied by the mention of 'CSV text data,' suggesting this tool is for when input is in CSV text form. However, there is no explicit guidance on when to choose this over alternatives like descriptive_statistics, nor any exclusions or comparisons.

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

descriptive_statisticsB

Calculate comprehensive descriptive statistics for a dataset.

Args: data: List of numerical values

Returns: Dictionary with various statistical measures

ParametersJSON Schema
NameRequiredDescriptionDefault
dataYes

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses an output dictionary and implies a read-only computation, but it does not specify edge-case behavior (e.g., empty data, non-numeric values) or the exact measures computed ('various statistical measures' is vague). This is a moderate disclosure, not misleading but incomplete.

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?

The description is compact with a clear structure: purpose, args, returns. It uses a common docstring format that is easy to parse, and every sentence is relevant. No fluff or redundancy.

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

Completeness2/5

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

With no output schema, the description should explain the return structure, but 'Dictionary with various statistical measures' is insufficient. It lacks details about the keys, error handling, and when to choose this over sibling tools. The single parameter is simple, but the lack of returned-key information leaves the agent underinformed.

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

Parameters2/5

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

The description's 'data: List of numerical values' essentially repeats the schema's array-of-numbers type without adding constraints like minimum length, allowed values, or formatting. Since schema coverage is reported as 0%, the description was expected to compensate, but it fails to provide any additional semantic meaning beyond 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 clearly states 'Calculate comprehensive descriptive statistics for a dataset', which uses a specific verb (calculate) and resource (dataset). It distinguishes from sibling tools like correlation_analysis, regression, and probability tests by focusing on descriptive statistics. The return type is also mentioned, reinforcing its purpose.

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 is provided on when to use this tool versus alternatives. The description does not mention any context, exclusions, or differences from sibling tools such as data_summary_from_csv_text or hypothesis_test_ttest. This is a clear gap for an AI agent deciding which tool to invoke.

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

hypothesis_test_ttestB

Perform one-sample t-test.

Args: sample_data: Sample data for testing population_mean: Hypothesized population mean alpha: Significance level

Returns: Dictionary with test results

ParametersJSON Schema
NameRequiredDescriptionDefault
alphaNo
sample_dataYes
population_meanYes

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for disclosing behavior. It only states that the tool performs a t-test and returns a dictionary, but it does not specify the test type (e.g., two-tailed vs. one-tailed), the exact keys in the result dictionary, or any assumptions like normality. This lacks essential behavioral context beyond the obvious.

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?

The description is concise, starting with the core action, followed by a well-organized Args list, and closing with Returns. Every line serves a purpose, and there is no redundant wording. The structure is clear and scannable, ideal for AI parsing.

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

Completeness2/5

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

Given the lack of an output schema and annotations, the description should thoroughly explain what the tool does and returns. It only says 'Dictionary with test results' without detailing the dictionary keys or the statistical hypothesis tested. The tool is nontrivial (statistical inference), and this minimal description leaves many questions unanswered, such as whether it supports one-sided tests or what the default alpha is (though the schema sets a default). The description is inadequate for full autonomous use.

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?

With schema description coverage at 0%, the description must compensate for the sparse schema. It adds brief explanations for each parameter: 'Sample data for testing,' 'Hypothesized population mean,' and 'Significance level.' This goes beyond the schema's bare names and types, but the explanations are shallow and do not specify data formats, typical alpha values, or how sample_data should be structured (though the schema indicates an array). The description adds some meaning but not enough to fully disambiguate.

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 clearly states 'Perform one-sample t-test,' which identifies a specific statistical operation with a precise resource. It is distinct from sibling tools such as binomial_probability and correlation_analysis, making the tool's purpose unmistakable.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention scenarios where a one-sample t-test is appropriate, nor does it mention any exclusions or preferred conditions. Users must rely on the tool name alone, which is insufficient for decision-making among the listed statistical siblings.

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

linear_regression_analysisB

Perform simple linear regression analysis.

Args: x_data: Independent variable data y_data: Dependent variable data

Returns: Dictionary with regression results

ParametersJSON Schema
NameRequiredDescriptionDefault
x_dataYes
y_dataYes

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description must disclose behavioral details, but it only vaguely states that it returns 'Dictionary with regression results.' It omits what results are included (e.g., coefficients, R-squared, p-values), any assumptions (e.g., equal-length arrays), and potential side effects or limitations. This is insufficient for a statistical analysis tool.

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 very concise and well-structured with clear sections for Args and Returns. Every sentence is purposeful, though the Returns section is vague. It earns a high score for brevity and readability, but not a perfect 5 due to the lack of detail in the return specification.

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

Completeness2/5

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

For a statistical tool, the description is incomplete. It does not explain what the output dictionary contains, what statistical assumptions are made, or how to interpret the results. The lack of an output schema makes this gap more critical. Essential context for using linear regression is missing, so the tool is only minimally usable as described.

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 provides only titles ('X Data', 'Y Data') with no descriptions, so the description must compensate. It does define each parameter as 'Independent variable data' and 'Dependent variable data,' adding basic meaning. However, it does not specify array length requirements, type constraints beyond numbers, or how they relate. This partially compensates for the 0% schema coverage but leaves room for improvement.

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 clearly states the tool's function with a specific verb and resource: 'Perform simple linear regression analysis.' This distinguishes it from sibling tools like correlation_analysis or hypothesis_test_ttest, making the purpose unambiguous.

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?

The description offers no guidance on when to use this tool over alternatives. It does not mention any context, prerequisites, or situations where other statistical tools would be more appropriate. This absence of usage direction leaves the agent to infer suitability.

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

normal_probabilityB

Calculate normal distribution probabilities.

Args: x: Value to calculate probability for mean: Mean of the normal distribution std_dev: Standard deviation of the normal distribution prob_type: Type of probability ("point", "cumulative", "survival")

Returns: Dictionary with probability value and distribution info

ParametersJSON Schema
NameRequiredDescriptionDefault
xYes
meanNo
std_devNo
prob_typeNopoint

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full transparency burden. It mentions a return dictionary, but does not disclose constraints like std_dev > 0 or error behavior, and only lists prob_type options without elaboration.

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 efficiently structured with a one-sentence summary followed by an Args/Returns list. It contains no redundant or overly verbose content.

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 this simple calculation tool, the description provides the basic function and return format. It is minimally complete but lacks usage context and explanations of cumulative vs survival probability semantics, which could leave an agent uncertain.

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 description compensates for 0% schema coverage by explaining each parameter briefly, including the allowed prob_type values. However, it lacks constraints such as requiring positive std_dev and does not clarify how defaults (mean=0, std_dev=1) relate to standard normal distributions.

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 'Calculate normal distribution probabilities' clearly states the tool's function with a specific verb and resource. It distinguishes from sibling tools by naming the normal distribution, though it doesn't explicitly address alternatives.

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 is provided about when to use this tool versus the Poisson or binomial probability calculators. There is no mention of assumptions, data type, or use cases.

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

poisson_probabilityA

Calculate Poisson probability with different types.

Args: lam: Lambda parameter (rate parameter, average events per interval) k: Number of events prob_type: Type of probability ("point", "cumulative", "survival")

Returns: Dictionary with probability value and distribution info

ParametersJSON Schema
NameRequiredDescriptionDefault
kYes
lamYes
prob_typeNopoint

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It mentions the return type ('Dictionary with probability value and distribution info') and the three probability types, but does not define what each type computes (e.g., point = P(X=k), cumulative = P(X≤k), survival = P(X>k)). It also does not mention edge cases or input constraints, which limits transparency.

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?

The description is compact and well-organized with an Args/Returns format. Every sentence adds value—parameters are defined precisely, and the return type is stated. There is no fluff or redundancy.

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?

For a simple calculator tool with no output schema, the description is largely complete. It covers all parameters, return type, and available probabilistic forms. However, it does not explicitly define the meaning of each prob_type, and does not mention that lam must be positive or that k is a non-negative integer. These are minor gaps, but given the tool's simplicity, the description is nearly sufficient.

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

Parameters5/5

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

The schema has no descriptions for its properties, so the description entirely compensates. It explicitly explains all three parameters: lam ('rate parameter, average events per interval'), k ('Number of events'), and prob_type ('Type of probability ("point", "cumulative", "survival")'). This adds significant meaning beyond the bare schema and is exceptionally clear.

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 identifies the tool's function: 'Calculate Poisson probability with different types.' It uses a specific verb and resource, making it clear this handles Poisson distribution calculations. However, it does not explicitly distinguish itself from sibling tools like binomial_probability or normal_probability, so it loses a point for lack of differentiation.

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 through the tool's name and parameter details (e.g., 'average events per interval') but does not explicitly state when to use this tool over alternatives. There is no mention of exclusions or alternative tools, so the guidance is only implicit.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 8 tool updatesv0.1.0
    • First observedbinomial_probability
    • First observedcorrelation_analysis
    • First observeddata_summary_from_csv_text
    • First observeddescriptive_statistics
    • First observedhypothesis_test_ttest
    • First observedlinear_regression_analysis
    • First observednormal_probability
    • First observedpoisson_probability

TDQS

A3.5/5.0
Disambiguation5/5

Each tool targets a distinct statistical operation. The three probability distributions are clearly differentiated by parameter sets, and descriptive_statistics vs data_summary_from_csv_text differ by input format (list vs CSV text). No two tools have overlapping purposes.

Naming Consistency4/5

All tool names use snake_case and are descriptive, but they follow inconsistent patterns (e.g., distribution_probability vs analysis vs statistics). The name 'hypothesis_test_ttest' is redundant. This is a minor deviation from a consistent convention.

Tool Count5/5

8 tools is well-scoped for a statistical analysis server, covering probability distributions, descriptive stats, correlation, regression, and hypothesis testing without being bloated.

Completeness3/5

The server covers core statistical analyses but has notable gaps. It only includes one hypothesis test (one-sample t-test), lacks two-sample tests, ANOVA, chi-square, and multiple regression. Correlation analysis doesn't provide significance testing. For a server named 'Data-Analysis', this is incomplete but covers the basics.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI-powered business intelligence and data analysis using pandas and LLM code generation. Supports automated data processing, statistical analysis, and visualization creation through natural language interactions.
    15
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Triggers predefined functions based on specific usecases including data analysis, text processing, mathematical calculations, file operations, and web request simulations through natural language prompts.
    -

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/craig1901/MCP-Data-Analysis-Server'

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