Health
Closed-population size from n₁ marked, n₂ caught, m₂ recaptured: Lincoln–Petersen and Chapman estimates with SE and 95% CI.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/mark-recapture-estimator' \
-H 'Content-Type: application/json' \
-d '{"n1":60,"n2":100,"m2":15,"estimator":"chapman"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/mark-recapture-estimator| Name | Type | Required | Description |
|---|---|---|---|
| n1 | number | Yes | Animals caught in the first session, marked, and released back into the population. |
| n2 | number | Yes | Total animals caught in the second session (marked + unmarked). |
| m2 | number | Yes | Animals in the second sample that carry a mark from the first session. |
| estimator | select | Yes | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-mark-recapture-estimator": {
"name": "mark-recapture-estimator",
"description": "Closed-population size from n₁ marked, n₂ caught, m₂ recaptured: Lincoln–Petersen and Chapman estimates with SE and 95% CI.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=mark-recapture-estimator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "mark-recapture-estimator",
"arguments": {
"n1": 60,
"n2": 100,
"m2": 15,
"estimator": "chapman"
}
}
}Questions or issues? Contact [email protected]