Miscellaneous Utilities

Min Value

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.

API Endpoint

GET /v1/misc/min

Code Examples

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)

Use via MCP

Add to your AI agent

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"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I find the minimum value in an array using MCP?

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.

What happens if I pass non-numeric values to the min function?

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.

Can the min value tool handle negative numbers and decimals?

Yes, it correctly handles negative numbers, decimals, integers, and scientific notation. Returns the true mathematical minimum regardless of number format.

Why use this instead of just asking an AI to find the minimum?

AI models can hallucinate incorrect minimums, especially with large datasets or edge cases. This tool provides deterministic, mathematically correct results every time.

What's the REST API format for finding minimum values?

Send GET request to /v1/misc/min with your numbers array as a parameter. Returns JSON with the minimum value and relevant metadata.

Try Min Value Now

Get your free API key and start using Min Value in seconds.

Get Free API Key