GnistAI GnistAI
Log in

Getting Started with Test User Generator

Generate realistic fake user profiles (name, email, phone, address, DOB) for testing — supports US, UK, NO, DE, FR locales.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Utilities

Data source: In-memory curated collection

Overview

Test User Generator performs computations on your inputs — no external data source required. This tutorial covers all 4 tools with parameter reference and code examples.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-test-user": {
      "url": "https://context.gnist.ai/mcp/test-user/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (4)

generate_random_test_user

Generate a single random test user with fake name, email, phone, address, date of birth, and username. All data is generated in-memory using curated name/address lists per locale. Use list_test_user_locales() to see supported locale codes.

ParameterTypeRequiredDescription
localeanyoptionalLocale/nationality filter (US, UK, NO, DE, FR). Omit for random locale.
curl -X POST "https://context.gnist.ai/mcp/test-user/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "generate_random_test_user", "arguments": {"locale": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/test-user/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'locale': 'example'},
            'name': 'generate_random_test_user'}},
)
print(resp.json())

generate_test_user_batch

Generate a batch of random test users. Returns multiple fake users, each with name, email, phone, address, date of birth, and username.

ParameterTypeRequiredDescription
countanyoptionalNumber of test users to generate (1-50, default 5).
localeanyoptionalLocale/nationality filter (US, UK, NO, DE, FR). Omit for random locale.
curl -X POST "https://context.gnist.ai/mcp/test-user/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "generate_test_user_batch", "arguments": {"count": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/test-user/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'count': 'example'},
            'name': 'generate_test_user_batch'}},
)
print(resp.json())

list_test_user_locales

List all supported locales for test user generation. Returns locale codes (e.g. US, UK, NO, DE, FR) that can be used to filter generated users.

curl -X POST "https://context.gnist.ai/mcp/test-user/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "list_test_user_locales", "arguments": {}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/test-user/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {}, 'name': 'list_test_user_locales'}},
)
print(resp.json())

report_feedback

Report a bug, feature request, or general feedback for this data source. Use this when something doesn't work as expected, when you'd like a new feature, or when you have suggestions for improvement. Args: feedback: Describe the issue or suggestion. feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: general)
curl -X POST "https://context.gnist.ai/mcp/test-user/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/test-user/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

FAQ

What data does Test User Generator provide?

Generate realistic fake user profiles (name, email, phone, address, DOB) for testing — supports US, UK, NO, DE, FR locales. It exposes 4 tools: generate_random_test_user, generate_test_user_batch, list_test_user_locales, report_feedback.

Does this toolkit require external data?

No. It performs computations on your inputs directly. You only need a Gnist API key.

What format does the Test User Generator API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials