Math & Numbers
Rescale any recipe's ingredient list to a new serving count, converting cups/tbsp/tsp ⇄ grams/ml with per-ingredient densities and kitchen-friendly fraction output.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/recipe-ingredient-scaler' \
-H 'Content-Type: application/json' \
-d '{"recipe":"2 1/4 cups all-purpose flour\n1 tsp baking soda\n1 tsp salt\n1 cup butter, softened\n3/4 cup granulated sugar\n3/4 cup packed brown sugar\n2 large eggs\n2 cups chocolate chips\n1 tsp vanilla extract","originalServings":24,"targetServings":48,"outputUnits":"metric","smartSeasoning":true}'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/recipe-ingredient-scaler| Name | Type | Required | Description |
|---|---|---|---|
| recipe | textarea | Yes | — |
| originalServings | number | No | — |
| targetServings | number | No | — |
| outputUnits | select | No | — |
| smartSeasoning | checkbox | No | — |
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-recipe-ingredient-scaler": {
"name": "recipe-ingredient-scaler",
"description": "Rescale any recipe's ingredient list to a new serving count, converting cups/tbsp/tsp ⇄ grams/ml with per-ingredient densities and kitchen-friendly fraction output.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=recipe-ingredient-scaler",
"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": "recipe-ingredient-scaler",
"arguments": {
"recipe": "2 1/4 cups all-purpose flour\n1 tsp baking soda\n1 tsp salt\n1 cup butter, softened\n3/4 cup granulated sugar\n3/4 cup packed brown sugar\n2 large eggs\n2 cups chocolate chips\n1 tsp vanilla extract",
"originalServings": 24,
"targetServings": 48,
"outputUnits": "metric",
"smartSeasoning": true
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]