MansionSQL query
mansionsql_queryRun a read-only MansionSQL statement over a birth chart, such as SELECT name, sign, house FROM chart WHERE retrograde.
Use it to filter, sort or count a chart's points, such as every body in the 10th house or the aspects ordered by their orb. For the chart as a whole, natal_chart is simpler. Names, signs and aspects are the engine's English names in every language, because a statement compares against them, as in WHERE sign = 'Leo', so translate them when answering a reader in another language. A house is a whole number from 1 to 12. It needs the Basic plan or a higher one, and each call uses one of the account's calculations for the month.
Returns: The technique's name, query, and the statement's rows as its result, each row an object of the selected columns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "mansionsql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The MansionSQL statement, such as SELECT name, sign, house FROM chart WHERE retrograde. Its tables are chart, planets, aspects, houses and the others the documentation lists. The chart table holds every point of the chart, the lunar nodes and the hypothetical bodies among them, so ask the planets table for the planets alone. | |
| birth | No | The birth: its date (YYYY-MM-DD), its local time (HH:MM) when it is known, its latitude and longitude in degrees, north and east positive, and its IANA time zone, such as Europe/Istanbul. Leave the time out when it is unknown. Leave the whole birth out to use a person saved on the account instead: the one named in person, or else the account's selected person. | |
| person | No | The name of a person saved on the account, such as Ayşe, as list_people lists it, used when birth is left out. Left out too, the account's selected person is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||