Skip to main content
Glama

Sample Data MCP

A Model Context Protocol (MCP) server that generates fixed-length test data based on field specifications. This tool helps developers create realistic test datasets with customizable field types and formats.

Features

  • Generate fixed-length test data records

  • Support for multiple field types:

    • string: Random names using Faker library

    • enum: Random selection from provided values

    • integer: Random integers within specified range

    • date: Random dates with customizable format

    • filler: Space padding fields

  • Configurable field length and constraints

  • MCP-compatible for integration with Claude Code

Related MCP server: mockhero

Installation

Prerequisites

Install with UV

  1. Clone or download this project

  2. Navigate to the project directory

  3. Install dependencies:

    uv sync

Install into Claude Code

  1. Add the MCP server to your Claude Code configuration. Edit your MCP settings file (typically ~/.config/claude-code/mcp_servers.json or similar):

    {
      "mcpServers": {
        "sample-data-mcp": {
          "command": "uv",
          "args": ["run", "/path/to/sample-data-mcp/main.py"],
          "cwd": "/path/to/sample-data-mcp"
        }
      }
    }
  2. Restart Claude Code to load the new MCP server

Usage

Once installed, you can use the generate_test_data_tool through Claude Code to create test data:

Example Field Specification

fields = [
    {
        "name": "customer_id",
        "type": "integer",
        "length": 8,
        "min": 1000,
        "max": 9999
    },
    {
        "name": "customer_name",
        "type": "string",
        "length": 25
    },
    {
        "name": "status",
        "type": "enum",
        "length": 6,
        "values": ["ACTIVE", "INACTIVE", "PENDING"]
    },
    {
        "name": "signup_date",
        "type": "date",
        "length": 8,
        "format": "%Y%m%d"
    },
    {
        "name": "filler",
        "type": "filler",
        "length": 5
    }
]

Field Types

Type

Description

Required Fields

Optional Fields

string

Random names

name, type, length

-

enum

Random selection from list

name, type, length, values

-

integer

Random integer

name, type, length

min, max

date

Random date

name, type, length

format

filler

Space padding

name, type, length

-

Development

Testing Locally

uv run mcp dev main.py

Dependencies

  • faker: For generating realistic fake data

  • mcp: Model Context Protocol implementation

  • pydantic: Data validation and settings management

License

This project is provided as-is for educational and development purposes.

Available Tools

1 tool
generate_test_data_toolC

Generate fixed-length test data based on a field specification

ParametersJSON Schema
NameRequiredDescriptionDefault
fieldsYes
num_recordsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.9/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 the full burden of behavioral disclosure. It mentions 'fixed-length' as a constraint, but fails to describe critical behaviors: whether the tool is read-only or mutating, what the output looks like (though an output schema exists), error handling, or performance aspects like rate limits. This leaves significant gaps for an agent.

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 a single, efficient sentence with zero waste. It is front-loaded with the core purpose and avoids redundancy. Every word earns its place, making it highly concise and well-structured.

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?

Given the tool's moderate complexity (2 parameters with nested FieldSpec objects) and no annotations, the description is incomplete—it lacks behavioral and parameter details. However, the presence of an output schema mitigates the need to explain return values. This results in a baseline adequacy 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%, meaning parameters are undocumented in the schema. The description adds minimal value by implying 'field specification' relates to the 'fields' parameter and 'fixed-length' hints at 'length' in FieldSpec, but it does not explain 'num_records', data types, or other schema details. It inadequately compensates for the coverage gap.

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's purpose: 'Generate fixed-length test data based on a field specification.' It specifies the verb ('generate'), resource ('test data'), and key constraint ('fixed-length'). However, with no sibling tools mentioned, it cannot demonstrate differentiation from alternatives, preventing a perfect score.

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 other methods or tools. It lacks context about prerequisites, typical scenarios, or exclusions. Without sibling tools, it could at least hint at use cases like testing or data simulation, but it does not.

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. 1 tool updatev0.1.0
    • First observedgenerate_test_data_tool

TDQS

B3.1/5.0
Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct as it is the sole tool available.

Naming Consistency5/5

Since there is only one tool, naming consistency is inherently perfect. The tool name 'generate_test_data_tool' follows a clear verb_noun pattern, but consistency cannot be assessed across multiple tools.

Tool Count2/5

A single tool is generally too few for a server's purpose, as it limits functionality and suggests an incomplete or overly narrow scope. For a data generation server, one tool is insufficient to cover typical needs like varied data types or configurations.

Completeness2/5

The server's domain appears to be test data generation, but with only one tool, the surface is severely incomplete. It lacks operations for different data formats, validation, customization, or management, which are essential for comprehensive data handling.

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

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/cdelashmutt-pivotal/sample-data-mcp'

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