Generate Sequence creates deterministic number sequences — arithmetic, geometric, fibonacci, and custom patterns. Use via MCP in Cursor or Windsurf, or call GET /v1/generate/sequence with start, count, and step parameters. Perfect for test data, mathematical modeling, or when AI agents need predictable numeric series instead of random approximations.
curl "https://tinyfn.io/v1/generate/sequence" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/generate/sequence', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/generate/sequence',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's generator tools:
{
"mcpServers": {
"tinyfn-generator": {
"url": "https://tinyfn.io/mcp/generator",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Specify start value, count (number of terms), and step size. For example: start=5, count=10, step=3 generates [5, 8, 11, 14, 17, 20, 23, 26, 29, 32].
Yes, use the ratio parameter instead of step. For geometric progression, each term multiplies by the ratio value rather than adding a constant step.
The count parameter typically supports up to 10,000 terms to prevent memory issues, though exact limits depend on the sequence type and complexity.
AI agents in Cursor or Claude Code can generate predictable numeric datasets for unit tests, simulations, or data analysis without hardcoding arrays or using random values.
Yes, start values, steps, and ratios can be negative or decimal numbers. The sequence maintains precision for mathematical calculations and financial modeling.
Get your free API key and start using Generate Sequence in seconds.
Get Free API Key