Skip to main content
Glama

MansionSQL query

mansionsql_query
Read-only

Run 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

NameRequiredDescriptionDefault
sqlYesThe 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.
birthNoThe 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.
personNoThe 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / birth / $ref
      Removed value: -"#/$defs/BirthPayload"
    • addedInput schema / properties / birth / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/BirthPayload"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / birth / default
      Added value: +null
    • changedInput schema / properties / birth / description
      Previous value: -"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."New value: +"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."
    • addedInput schema / properties / person
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "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.",
      +  "title": "Person"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "sql",
      -  "birth"
      -]New value: +[
      +  "sql"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnlyHint=true, openWorldHint=false), yet the description adds non-obvious operational context: a Basic-plan requirement and the fact that each call consumes one of the account's monthly calculations. It also discloses the i18n quirk that names/signs are English literals in every language, which affects how results must be interpreted. It does not mention any row/result limits on arbitrary statements, which is the main remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and an example, then usage, caveats, and return shape in a sensible order. Every sentence carries information, though the language-translation sentence is slightly wordy and could be tightened without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers what an agent needs to call this correctly: the statement surface, table distinctions, plan/quota constraints, literal-name conventions, and chart-vs-saved-person sourcing. An output schema exists and is correctly not duplicated in depth, with only a one-line pointer to the result shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by naming the queryable tables (chart, planets, aspects, houses) and clarifying that the chart table includes lunar nodes and hypothetical bodies while planets is planets-only. It also pins down value semantics the schema cannot (English names as literals, houses as whole numbers 1-12) and restates the birth/person fallback for chart sourcing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Run a read-only MansionSQL statement over a birth chart") and immediately anchors it with a concrete example statement. It also explicitly contrasts itself with the sibling natal_chart ("For the chart as a whole, natal_chart is simpler"), so an agent can choose between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use framing ("Use it to filter, sort or count a chart's points") with two motivating examples, plus an explicit when-not directing whole-chart requests to natal_chart. It stops short of naming a full alternative set, but the contextual guidance is concrete and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources