Categories

Reverse Array

Reverse an array using lodash _.reverse

Reverse the order of items in a JSON array. **Highlights:** - Uses lodash `_.reverse` on a cloned array - Preserves data types and nesting - Returns the reversed array as JSON **Example:** - Array: `[1, 2, 3]` - Result: `[3, 2, 1]`

Enter a JSON array

API Documentation

Request Endpoint

POST /en/api/tools/reverse-array

Request Parameters

Parameter Name Type Required Description
array textarea Yes Enter a JSON array

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-reverse-array": {
      "name": "reverse-array",
      "description": "Reverse an array using lodash _.reverse",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=reverse-array",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]