Finds the minimum value from a list of numbers with guaranteed accuracy. Use via MCP in Cursor or Windsurf, or call GET /v1/misc/min with your array. Returns the smallest numeric value without floating-point precision issues that can plague AI-generated comparisons. Essential for data analysis workflows where exact minimum detection matters.
curl "https://tinyfn.io/v1/misc/min" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/misc/min', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/misc/min',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's miscellaneous tools:
{
"mcpServers": {
"tinyfn-misc": {
"url": "https://tinyfn.io/mcp/misc",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Call the min_value tool with your array of numbers. It returns the exact minimum without floating-point errors that AI models sometimes introduce in calculations.
The function filters out non-numeric values and finds the minimum among valid numbers. Empty arrays or arrays with no valid numbers return an error.
Yes, it correctly handles negative numbers, decimals, integers, and scientific notation. Returns the true mathematical minimum regardless of number format.
AI models can hallucinate incorrect minimums, especially with large datasets or edge cases. This tool provides deterministic, mathematically correct results every time.
Send GET request to /v1/misc/min with your numbers array as a parameter. Returns JSON with the minimum value and relevant metadata.