# Groundwater Calculator: Theis Drawdown, Pumping Tests, Darcy (`jumblemog/groundwater-calculator`) Actor

Well hydraulics from plain text: Theis, leaky and unconfined drawdown, well fields, pumping test analysis (Theis fit, Cooper-Jacob, distance-drawdown, recovery) for transmissivity and storativity, Darcy flow, travel time and the three-point gradient.

- **URL**: https://apify.com/jumblemog/groundwater-calculator.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Groundwater Calculator: Theis Drawdown, Pumping Tests, Darcy

**Well hydraulics and groundwater flow from one line of text.** Predict drawdown (`drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002`), analyse a pumping test (`Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, ...`) or work out groundwater flow (`three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m`). You get back:

- **Drawdown**: the Theis solution at any distances and times, Hantush-Jacob for a leaky aquifer, Jacob's correction for an unconfined one, the Cooper-Jacob value where it applies and the radius of influence. Several wells with positions are added by superposition, with a drawdown map.
- **Pumping test analysis**: transmissivity and storativity from time-drawdown data by a least-squares Theis curve fit and the Cooper-Jacob straight line (only through the late points where it's valid), from distance-drawdown data at one time, or transmissivity from a recovery test. Hydraulic conductivity too when you give the aquifer thickness.
- **Groundwater flow**: Darcy flux and flow, seepage velocity and travel time from K, the gradient (or two heads and their distance) and porosity; the gradient and flow direction from three wells.
- **A chart**: the cone of depression with drawdown over time, a well field map, the test data with the fitted Theis curve and Cooper-Jacob line, the recovery or distance-drawdown line, the flow direction between three wells, or travel time against distance.

US units (ft, gpm, gpd/ft, ft/day) or metric (m, L/s, m³/day, m²/day, m/day); results come back in the units you wrote.

It's made for:

- Hydrogeologists and well drillers sizing wells, checking interference between wells and analysing pumping tests.
- Environmental consultants estimating plume travel times and flow directions from monitoring wells.
- Water utilities, irrigation and dewatering contractors predicting drawdown at neighbouring wells.
- Geology and civil engineering students working Theis, Cooper-Jacob and Darcy problems, and AI agents that need correct well numbers instead of a guess.

![A pumping test analysed by this Actor: drawdown readings from 1 to 1,000 minutes on a log time axis with the fitted Theis curve through all of them and the dashed Cooper-Jacob line through the nine late points, giving T 1,337 ft²/day (10,000 gpd/ft) and S 0.0002](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/groundwater-calculator-example.png?signature=1cI9vZMefMAKxc17YO67U)

### How to use it

1. Write **Wells, pumping tests and flow problems**, one per entry. The form has examples.
2. Optionally set the **Units** for numbers written without one (US by default).
3. Click **Start**. Each request is a row in the results, with its summary, chart and report.

#### What you can write

| You write | It means |
|---|---|
| `Q 500 gpm`, `pumping 20 L/s`, `1500 m3/d` | The pumping rate (gpm, gpd, MGD, L/s, m³/d, m³/h, cfs) |
| `T 10,000 gpd/ft`, `T 500 m2/d` or `K 20 m/d, 30 m thick` | Transmissivity, or conductivity and saturated thickness |
| `S 0.0002`, `S 2e-4`, `Sy 0.15` | Storativity (specific yield for a water-table aquifer) |
| `unconfined`, `leakage factor 1000 m` | Jacob's unconfined correction, or the Hantush-Jacob leaky solution |
| `at 10, 50, 200 m`, `100 ft from`, `after 1 day`, `t 30 min` | Distances and times (several of each are fine) |
| `20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100)` | A well field and points to check |
| `observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, ...` | Time-drawdown test data |
| `distance-drawdown after 1 day, data: 10 m 1.74, 30 m 1.39, ...` | Distance-drawdown data |
| `recovery test, pumped for 1 day, time since pumping stopped (min) and residual drawdown (m): ...` | Recovery data |
| `K 10 m/d, gradient 0.005` or `heads 105 m and 100 m, 500 m apart` | Darcy flow |
| `area 200 m2`, `porosity 0.25`, `travel distance 500 m` | Flow area, effective porosity and the path for travel time |
| `(0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m` | Three-point problem (x east, y north) |

The same as an object: `{"type": "pumptest", "q": "500 gpm", "distance": "200 ft", "timeUnit": "min", "data": [[1, 0.23], [2, 1.11], [5, 3.74], ...]}` or `{"type": "drawdown", "q": "25 L/s", "conductivity": "20 m/d", "thickness": "30 m", "storativity": 0.15, "unconfined": true, "distances": ["15 m", "50 m"], "times": ["1 d", "30 d"]}`.

### Examples

- `drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002` → 41.9 ft (u 0.000374, W(u) 7.32); radius of influence about 3,900 ft.
- The pumping test above (18 readings from 1 to 1,000 min) → T 1,337 ft²/day (10,000 gpd/ft), S 0.0002 by the Theis fit; Cooper-Jacob T 1,351 ft²/day from the 9 late points.
- `distance-drawdown after 1 day, Q 1000 m3/d, data: 10 m 1.74, 30 m 1.391, 100 m 1.008, 300 m 0.659` → T 500 m²/day, S 0.0002.
- `well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), T 800 m2/d, S 0.0005, after 30 days` → 2.31 m at the point, 4.81 m and 4.10 m at the wells.
- `three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3` → gradient 0.00202 toward NNE (30°), seepage velocity 0.10 m/day.
- `K 10 m/d, gradient 0.005, porosity 0.25, travel distance 500 m` → seepage velocity 0.2 m/day, 2,500 days (6.8 years) to travel 500 m.

### How-to examples

Each example is a complete input; the results are from runs of the Actor (also listed under **Examples**).

#### How to predict drawdown from a pumping well (Theis)

```json
{"requests": ["drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002"]}
```

Result: 41.9 ft (u 0.000374, W(u) 7.32), and a radius of influence of about 3,900 ft.

#### How to analyse a pumping test for transmissivity and storativity

```json
{"requests": ["pumping test: Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, 3 2.07, 5 3.74, 8 5.65, 10 6.66, 15 8.61, 20 10.06, 30 12.19, 50 14.95, 80 17.56, 100 18.80, 150 21.09, 200 22.71, 300 25.02, 500 27.93, 800 30.61, 1000 31.89"]}
```

Result: T 1,337 ft²/day (10,000 gpd/ft) and S 0.0002 by the Theis fit; Cooper-Jacob gives T 1,351 ft²/day from the 9 late points.

#### How to find the groundwater flow direction from three wells

```json
{"requests": ["three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3"]}
```

Result: gradient 0.00202 toward NNE (30°) and a seepage velocity of 0.10 m/day.

#### How to let an AI agent work groundwater problems

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/groundwater-calculator`. The agent passes the well, the test readings or the heads in one line and answers with the drawdown, the aquifer properties or the flow.

### FAQ

**Which methods does it use?** Theis, Hantush-Jacob for leaky aquifers, Jacob's correction for unconfined ones, Cooper-Jacob, Theis recovery and Darcy's law.

**Can it handle several wells?** Yes, by superposition: `well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), ...` gives the drawdown at the point and at each well.

**Which readings does Cooper-Jacob use?** Only the late readings where u < 0.05, found by iterating; the plot shows which ones.

**How long would a contaminant take to travel?** `K 10 m/d, gradient 0.005, porosity 0.25, travel distance 500 m` gives 2,500 days. That's advection only; dispersion, sorption and decay change when a contaminant arrives.

### Input

| Field | What it is |
|---|---|
| `requests` | The wells, tests and flow problems, as lines of text or objects (up to 200 per run) |
| `units` | For numbers without a unit: `us` (ft, gpm, gpd/ft, ft/day) or `metric` (m, m³/day, m²/day, m/day) |
| `charts` | Draw a chart for each request (default on) |

### Output

One dataset item per request, also saved together in the run's `OUTPUT` record:

```json
{
  "request": 2, "status": "ok", "type": "pumptest", "title": "Pumping test, observation well at 200 ft",
  "summary": "T 1,337 ft²/day (9,999 gpd/ft), S 0.0002 (Theis fit, RMSE 0.0032 ft); Cooper-Jacob T 1,351, S 0.00019 from 9 late points.",
  "test": {"mode": "time", "pumpingRate": 500, "transmissivity": 1337, "storativity": 0.0002, "rmse": 0.00323,
           "cooperJacob": {"transmissivity": 1351, "storativity": 0.00019, "slopePerLogCycle": 13.04,
                           "zeroDrawdownTime": 3.603, "r2": 1, "pointsUsed": 9},
           "distance": 200, "transmissivityGpdFt": 9999},
  "data": [{"time": 1, "drawdown": 0.23, "theis": 0.2266, "u": 2.15, "cooperJacobFit": false}, "..."],
  "units": {"length": "ft", "flow": "gpm", "transmissivity": "ft²/day", "conductivity": "ft/day", "time": "min"},
  "imageUrl": "https://api.apify.com/v2/key-value-stores/.../records/002-Pumping-test-observation-well-at-200-ft.png"
}
```

Drawdown results have `drawdown` and `results` (u, W(u) and the drawdown for each distance and time) or `points` for a well field; flow results have `flow` and, for three-point problems, `wells`. Every item has `units`, `summary`, `warnings`, `notes` (the method and every assumed value), a Markdown `report` and links to the chart and report. A request that can't be computed has `"status": "failed"` and the reason in `error`, and isn't billed.

### How it works

1. **Theis**: s = Q/(4πT)·W(u), u = r²S/(4Tt), W(u) the exponential integral E1(u). **Hantush-Jacob**: W(u, r/B) by numerical integration. **Unconfined**: Jacob's correction s' = s − s²/(2b). **Well fields**: drawdowns added (superposition).
2. **Cooper-Jacob**: the straight line s = (2.3Q/(4πT))·log(2.25Tt/(r²S)), fitted only through readings with u < 0.05 (found by iterating); T = 2.3Q/(4πΔs), S = 2.25·T·t0/r². Distance-drawdown: T = 2.3Q/(2πΔs), S = 2.25·T·t/r0².
3. **Theis fit**: least squares on log T and log S over all readings, started from the Cooper-Jacob values.
4. **Recovery**: residual drawdown against log(t/t'), T = 2.3Q/(4πΔs').
5. **Darcy**: q = K·i, Q = K·i·A, v = q/ne, travel time L/v; three-point gradient from the plane through three heads.

### Pricing

You pay one low price per request, at the prices shown on this page; drawdown and flow requests cost less than pumping test analyses. The chart and report are included. Requests that can't be computed are never charged. If you set a maximum cost per run, the Actor stops before a request that wouldn't fit.

### Speed

Each request takes a few milliseconds (a Theis fit a fraction of a second). A run through the API answers in about 10 seconds, including the cloud container starting.

### Tips and limits

- **Ideal aquifer**: Theis assumes a confined, uniform, infinite aquifer and a fully penetrating well; boundaries, recharge, partial penetration and delayed yield bend the data away from the curve. A warning appears when Theis and Cooper-Jacob disagree.
- **Pumped well data**: storativity from the pumped well itself is unreliable (well losses and well storage); use an observation well when you can.
- **Early data**: the first minutes are often affected by well storage; the Cooper-Jacob line uses only late data, and the plot shows which readings it used.
- **Unconfined aquifers**: the Jacob correction holds for drawdowns up to about a quarter of the saturated thickness; delayed yield (Neuman) isn't modelled.
- **Travel time** is advection only; dispersion, sorption and decay change when a contaminant arrives.
- **Limits**: 200 requests per run; transmissivity 0.0001 to 1,000,000 m²/day.

### For AI agents and developers

This Actor works with the [Apify MCP server](https://mcp.apify.com), so AI agents can call it as a tool. Pass `requests` as plain text and read `summary`, `drawdown`, `results`, `test`, `flow` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~groundwater-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["drawdown at 50, 200 m from a well pumping 15 L/s for 10 days, T 400 m2/d, S 0.0003"]}'
```

`run-sync` instead returns the run's `OUTPUT`: the status, the counts and every result as JSON.

In Python, with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/groundwater-calculator").call(run_input={
    "requests": [{"type": "pumptest", "q": "12 L/s", "distance": "30 m", "timeUnit": "min",
                  "data": [[1, 0.31], [2, 0.52], [5, 0.84], [10, 1.07], [30, 1.43], [100, 1.82], [300, 2.17]]}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Math: [SciPy](https://scipy.org) (BSD-3-Clause) and [NumPy](https://numpy.org) (BSD-3-Clause).
- Charts: [Vega-Lite](https://vega.github.io/vega-lite/) and [vl-convert](https://github.com/vega/vl-convert) (BSD-3-Clause), with the [Inter](https://rsms.me/inter/) font (SIL Open Font License).
- Methods: Theis (1935); Cooper and Jacob (1946); Hantush and Jacob (1955); Jacob (1944) unconfined correction; Darcy (1856).

# Actor input Schema

## `requests` (type: `array`):

One request per entry, as a line of text or an object. Drawdown: the pumping rate (gpm, L/s, m³/d), the transmissivity (gpd/ft, ft²/d, m²/d) or K and thickness, the storativity (S, or Sy for an unconfined aquifer), distances and times ('drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002'); add 'unconfined, 30 m thick' or 'leakage factor 1000 m'; or several wells with positions ('20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100)'). Pumping test: Q, the observation well's distance and time-drawdown pairs ('time (min) and drawdown (ft): 1 0.23, 2 1.11, ...'); 'distance-drawdown after 1 day, data: 10 m 1.74, 30 m 1.39, ...'; or 'recovery test, pumped for 1 day, time since pumping stopped (min) and residual drawdown (m): ...'. Flow: K with a gradient, two heads and their distance, or three wells ('(0, 0) head 100.5 m; (300, 0) head 100.2 m; (0, 400) head 99.8 m'), plus area, porosity and travel distance. Object fields: type (drawdown, pumptest or darcy), q, transmissivity, conductivity, thickness, storativity, unconfined, leakageFactor, wellRadius, distances, times, wells, points, mode, distance, data, distanceData, time, pumpingTime, timeUnit, gradient, heads, spacing, area, width, porosity, units, title, text.

## `units` (type: `string`):

For distances, rates and properties without a unit. ft or gpm switch a request to US units; m, L/s or m³/d to metric.

## `charts` (type: `boolean`):

The cone of depression and drawdown with time, a well field map, the pumping test fit, or the flow direction and travel time.

## Actor input object example

```json
{
  "requests": [
    "drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002",
    "pumping test: Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, 3 2.07, 5 3.74, 8 5.65, 10 6.66, 15 8.61, 20 10.06, 30 12.19, 50 14.95, 80 17.56, 100 18.80, 150 21.09, 200 22.71, 300 25.02, 500 27.93, 800 30.61, 1000 31.89",
    "three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3",
    "distance-drawdown after 1 day, Q 1000 m3/d, data: 10 m 1.74, 30 m 1.391, 100 m 1.008, 300 m 0.659",
    "well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), T 800 m2/d, S 0.0005, after 30 days",
    {
      "type": "drawdown",
      "q": "25 L/s",
      "conductivity": "20 m/d",
      "thickness": "30 m",
      "storativity": 0.15,
      "unconfined": true,
      "distances": [
        "15 m",
        "50 m",
        "150 m"
      ],
      "times": [
        "1 d",
        "30 d"
      ]
    }
  ],
  "units": "us",
  "charts": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per request: the summary and chart.

## `output` (type: `string`):

The OUTPUT record: every result in one JSON object.

## `files` (type: `string`):

Charts (PNG and SVG) and Markdown reports in the run's key-value store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        "drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002",
        "pumping test: Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, 3 2.07, 5 3.74, 8 5.65, 10 6.66, 15 8.61, 20 10.06, 30 12.19, 50 14.95, 80 17.56, 100 18.80, 150 21.09, 200 22.71, 300 25.02, 500 27.93, 800 30.61, 1000 31.89",
        "three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3",
        "distance-drawdown after 1 day, Q 1000 m3/d, data: 10 m 1.74, 30 m 1.391, 100 m 1.008, 300 m 0.659",
        "well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), T 800 m2/d, S 0.0005, after 30 days",
        {
            "type": "drawdown",
            "q": "25 L/s",
            "conductivity": "20 m/d",
            "thickness": "30 m",
            "storativity": 0.15,
            "unconfined": true,
            "distances": [
                "15 m",
                "50 m",
                "150 m"
            ],
            "times": [
                "1 d",
                "30 d"
            ]
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/groundwater-calculator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        "drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002",
        "pumping test: Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, 3 2.07, 5 3.74, 8 5.65, 10 6.66, 15 8.61, 20 10.06, 30 12.19, 50 14.95, 80 17.56, 100 18.80, 150 21.09, 200 22.71, 300 25.02, 500 27.93, 800 30.61, 1000 31.89",
        "three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3",
        "distance-drawdown after 1 day, Q 1000 m3/d, data: 10 m 1.74, 30 m 1.391, 100 m 1.008, 300 m 0.659",
        "well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), T 800 m2/d, S 0.0005, after 30 days",
        {
            "type": "drawdown",
            "q": "25 L/s",
            "conductivity": "20 m/d",
            "thickness": "30 m",
            "storativity": 0.15,
            "unconfined": True,
            "distances": [
                "15 m",
                "50 m",
                "150 m",
            ],
            "times": [
                "1 d",
                "30 d",
            ],
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/groundwater-calculator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    "drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002",
    "pumping test: Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, 3 2.07, 5 3.74, 8 5.65, 10 6.66, 15 8.61, 20 10.06, 30 12.19, 50 14.95, 80 17.56, 100 18.80, 150 21.09, 200 22.71, 300 25.02, 500 27.93, 800 30.61, 1000 31.89",
    "three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3",
    "distance-drawdown after 1 day, Q 1000 m3/d, data: 10 m 1.74, 30 m 1.391, 100 m 1.008, 300 m 0.659",
    "well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), T 800 m2/d, S 0.0005, after 30 days",
    {
      "type": "drawdown",
      "q": "25 L/s",
      "conductivity": "20 m/d",
      "thickness": "30 m",
      "storativity": 0.15,
      "unconfined": true,
      "distances": [
        "15 m",
        "50 m",
        "150 m"
      ],
      "times": [
        "1 d",
        "30 d"
      ]
    }
  ]
}' |
apify call jumblemog/groundwater-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/groundwater-calculator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LG8fp3qv8BgeKMXhK/builds/7LTHeqxxPnSFjMQCt/openapi.json
