Birthday magic square generator
hopi_birthday_magic_squareBuild Ramanujan's birthday magic square: a 4 x 4 grid whose top row is a date (day, month, first two digits of the year, last two digits) and whose rows, columns, diagonals and many other groups of four all add up to the same total. Pass date as YYYY-MM-DD (order dmy for day first, the UK way, or mdy for month first), or pass numbers as any four whole numbers instead. With neither, it uses today's local date. Returns the square, the magic total and every group of four cells that adds up to it, with cells as [row, column] counted from 1 at the top left. builtIn is true for the 44 groups that always work and false for lucky coincidences. hasNegative and hasRepeats flag squares that use negative or repeated numbers. Source: https://hopi.co.uk/birthday-magic-square/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hopi_birthday_magic_square"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date in YYYY-MM-DD format, for example 1887-12-22 for Ramanujan's birthday. Defaults to today when numbers is not given. | |
| order | No | dmy puts the day first (UK style, 22 12 18 87); mdy puts the month first (US style, 12 22 18 87) | dmy |
| numbers | No | Instead of a date: any four whole numbers from -999,999 to 999,999 for the top row, for example [22, 12, 18, 87] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| order | No | ||
| groups | No | ||
| square | No | ||
| numbers | No | ||
| summary | Yes | ||
| magicSum | No | ||
| hasRepeats | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| extraGroups | No | ||
| hasNegative | No | ||
| builtInGroups | No |