Ask an LLM to generate a UUID and you'll get something that looks right but isn't properly random. Ask for a secure password and it'll give you "P@ssw0rd123". These tools generate cryptographically proper identifiers and secrets.
All Generator Tools (15)
Your agent gets access to 15 generator tools via the /mcp/generate/ endpoint. Here's the complete list:
| Tool | Description |
|---|---|
generate/uuid | Generate Uuid |
generate/uuid/v7 | Generate Uuid V7 |
generate/random/number | Random Number |
generate/random/float | Random Float |
generate/random/string | Random String |
generate/password | Generate Password |
generate/token | Generate Token |
generate/hash | Generate Hash |
generate/lorem | Generate Lorem |
generate/color | Generate Color |
generate/dice | Roll Dice |
generate/coin | Flip Coin |
generate/shuffle | Shuffle List |
generate/pick | Pick Random |
generate/sequence | Generate Sequence |
Agent Scenarios
Here's how real agents use these tools:
1. Database scaffolding agent
A development agent creates seed data with valid UUIDs. generate/uuid-v4 produces properly random UUIDs.
generate/uuid-v4
{}
2. User onboarding agent
An admin agent generates secure temporary passwords for new users. generate/password creates cryptographically strong passwords.
generate/password
{ "length": 16, "uppercase": true, "numbers": true, "symbols": true }
3. API integration agent
A setup agent generates unique API tokens for service connections. generate/nanoid creates URL-safe unique IDs.
generate/nanoid
{ "length": 21 }
MCP Setup
Add generator tools to your agent in under 2 minutes. Choose your client:
Claude Desktop / Claude Code
Add this to your MCP config:
{
"mcpServers": {
"tinyfn-generate": {
"url": "https://api.tinyfn.io/mcp/generate/",
"headers": {
"X-API-Key": "your-api-key"
}
}
}
}
Cursor
Go to Settings > MCP and add a new server:
- Type: SSE
- URL:
https://api.tinyfn.io/mcp/generate/sse - Headers:
X-API-Key: your-api-key
Tip: Use the category-specific endpoint (/mcp/generate/) for the best experience. The all-in-one endpoint (/mcp/all/) works too but has 500+ tools which some clients handle less efficiently.
When to Use These Tools
Use generator MCP tools when your agent needs to:
- Guarantee correctness — when wrong answers have real consequences
- Process user data — when you're operating on actual user input, not hypothetical examples
- Maintain consistency — when the same input must always produce the same output
You don't need these tools for casual conversation or rough estimates. Use them when precision matters.
Ready to add generator tools to your agent?
Get Free API Key 100 requests/month free. No credit card required.Frequently Asked Questions
Why can't LLMs generate proper UUIDs?
LLMs don't have access to cryptographic random number generators. They produce UUID-like strings from learned patterns, but these lack proper randomness and may not be unique.
Are TinyFn-generated passwords cryptographically secure?
Yes. TinyFn uses Python's secrets module, which provides cryptographically strong random numbers suitable for managing secrets.
What identifier formats does TinyFn support?
TinyFn generates UUID v4, UUID v7, nanoid, random strings, secure passwords, and various token formats.