← All tool references

Generators · not_available

Mock Product Data Generator

Generate deterministic or random product records for testing.

Open public tool

Overview

Category
Generators
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/mock-product-data-generator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/mock-product-data-generator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

quantity · number · required
Enter products.
seed · number · required
Enter deterministic seed.
currency · string · required
Enter currency code.
{
    "type": "object",
    "properties": {
        "quantity": {
            "type": "number",
            "description": "Enter products.",
            "minimum": 1,
            "maximum": 100
        },
        "seed": {
            "type": "number",
            "description": "Enter deterministic seed."
        },
        "currency": {
            "type": "string",
            "description": "Enter currency code."
        }
    },
    "required": [
        "quantity",
        "seed",
        "currency"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

products · array
Mock products produced by the tool.
quantity · number
Products generated produced by the tool.
seed_used · number
Seed used produced by the tool.
{
    "type": "object",
    "properties": {
        "products": {
            "type": "array",
            "description": "Mock products produced by the tool."
        },
        "quantity": {
            "type": "number",
            "description": "Products generated produced by the tool."
        },
        "seed_used": {
            "type": "number",
            "description": "Seed used produced by the tool."
        }
    },
    "additionalProperties": false
}

Mock Product Data Generator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/mock-product-data-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "quantity": 8,
    "seed": 42,
    "currency": "USD"
}'
{
    "ok": true,
    "data": {
        "slug": "mock-product-data-generator",
        "result": {
            "values": {
                "products": [
                    {
                        "id": 1,
                        "sku": "SKU-0001",
                        "name": "Premium Notebook",
                        "category": "Travel",
                        "price": 32.92999999999999971578290569595992565155029296875,
                        "currency": "USD",
                        "stock": 75
                    },
                    {
                        "id": 2,
                        "sku": "SKU-0002",
                        "name": "Compact Bottle",
                        "category": "Office",
                        "price": 105.8700000000000045474735088646411895751953125,
                        "currency": "USD",
                        "stock": 198
                    },
                    {
                        "id": 3,
                        "sku": "SKU-0003",
                        "name": "Everyday Bottle",
                        "category": "Travel",
                        "price": 104.4800000000000039790393202565610408782958984375,
                        "currency": "USD",
                        "stock": 119
                    },
                    {
                        "id": 4,
                        "sku": "SKU-0004",
                        "name": "Compact Notebook",
                        "category": "Tech",
                        "price": 111.5499999999999971578290569595992565155029296875,
                        "currency": "USD",
                        "stock": 177
                    },
                    {
                        "id": 5,
                        "sku": "SKU-0005",
                        "name": "Smart Lamp",
                        "category": "Travel",
                        "price": 37,
                        "currency": "USD",
                        "stock": 188
                    },
                    {
                        "id": 6,
                        "sku": "SKU-0006",
                        "name": "Portable Notebook",
                        "category": "Tech",
                        "price": 60.2999999999999971578290569595992565155029296875,
                        "currency": "USD",
                        "stock": 12
                    },
                    {
                        "id": 7,
                        "sku": "SKU-0007",
                        "name": "Compact Organizer",
                        "category": "Tech",
                        "price": 102.68000000000000682121026329696178436279296875,
                        "currency": "USD",
                        "stock": 136
                    },
                    {
                        "id": 8,
                        "sku": "SKU-0008",
                        "name": "Classic Organizer",
                        "category": "Travel",
                        "price": 87.6700000000000017053025658242404460906982421875,
                        "currency": "USD",
                        "stock": 143
                    }
                ],
                "quantity": 8,
                "seed_used": 42
            },
            "display": {
                "display": "[{\"id\":1,\"sku\":\"SKU-0001\",\"name\":\"Premium Notebook\",\"category\":\"Travel\",\"price\":32.92999999999999971578290569595992565155029296875,\"currency\":\"USD\",\"stock\":75},{\"id\":2,\"sku\":\"SKU-0002\",\"name\":\"Compact Bottle\",\"category\":\"Office\",\"price\":105.8700000000000045474735088646411895751953125,\"currency\":\"USD\",\"stock\":198},{\"id\":3,\"sku\":\"SKU-0003\",\"name\":\"Everyday Bottle\",\"category\":\"Travel\",\"price\":104.4800000000000039790393202565610408782958984375,\"currency\":\"USD\",\"stock\":119},{\"id\":4,\"sku\":\"SKU-0004\",\"name\":\"Compact Notebook\",\"category\":\"Tech\",\"price\":111.5499999999999971578290569595992565155029296875,\"currency\":\"USD\",\"stock\":177},{\"id\":5,\"sku\":\"SKU-0005\",\"name\":\"Smart Lamp\",\"category\":\"Travel\",\"price\":37,\"currency\":\"USD\",\"stock\":188},{\"id\":6,\"sku\":\"SKU-0006\",\"name\":\"Portable Notebook\",\"category\":\"Tech\",\"price\":60.2999999999999971578290569595992565155029296875,\"currency\":\"USD\",\"stock\":12},{\"id\":7,\"sku\":\"SKU-0007\",\"name\":\"Compact Organizer\",\"category\":\"Tech\",\"price\":102.68000000000000682121026329696178436279296875,\"currency\":\"USD\",\"stock\":136},{\"id\":8,\"sku\":\"SKU-0008\",\"name\":\"Classic Organizer\",\"category\":\"Travel\",\"price\":87.6700000000000017053025658242404460906982421875,\"currency\":\"USD\",\"stock\":143}]"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.