Skip to main content
Glama
dantalan

baatjie-mcp-server

by dantalan

Query Any Baatjie Table

baatjie_query
Read-onlyIdempotent

Query rows from tanOS or sigscheCore tables with filters, column selection, sorting, and pagination. PII is redacted by default unless explicitly included.

Instructions

Read rows from any table in tanOS or sigscheCore, with filtering, column selection, ordering and pagination.

This is the general-purpose read. For sequencing work prefer baatjie_next_actions, and for the ops snapshot prefer baatjie_dashboard — both are cheaper and better shaped.

Personal identifiers (ID numbers, passport numbers, phone, email, banking details) are withheld unless include_pii is true, and the response reports which fields were withheld.

Args:

  • project ('tanos' | 'sigsche'): Which system

  • table (string): Table name — must be in the allowlist

  • columns (string[], optional): Specific columns; omit for all

  • filters (Filter[]): AND-combined filters

  • order_by (string, optional): Column to sort on

  • ascending (boolean): Sort direction (default: true)

  • limit (number): Max rows, 1-200 (default: 25)

  • offset (number): Rows to skip (default: 0)

  • include_pii (boolean): Include personal identifiers (default: false)

  • response_format ('markdown' | 'json'): Output format

Returns: { "total": number, "count": number, "offset": number, "items": object[], "has_more": boolean, "next_offset"?: number, "redacted_fields": string[] }

Examples:

  • "Which todos are still open?" -> project='tanos', table='todos', filters=[{"column":"status","op":"neq","value":"done"}]

  • "Show agencies signed this month" -> table='locare_accounts', filters=[{"column":"signed_date","op":"gte","value":"2026-08-01"}]

  • "Biggest BRM books" -> table='brms', order_by='inherited_book_size', ascending=false

Error Handling:

  • "Unknown table" lists the valid table names for that project

  • Column errors suggest calling baatjie_describe_schema

tanOS tables: Property: landlords, properties, rooms, tenants, foreign_nationals, leases, lease_agreements, payments, maintenance, notices Commercial: locare_accounts, brms, agents, employers, policies, daily_activity Internal: todos, ai_agents, audit_log

sigscheCore tables: profiles, queue_items, library_items, brand_cards, registration_status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum rows to return (1-200, default 25)
tableYesTable name (see allowlist)
offsetNoRows to skip, for pagination
columnsNoSpecific columns to return. Omit for all columns. Narrowing columns is the cheapest way to keep large result sets inside the response limit.
filtersNoFilters combined with AND. Example: [{"column":"status","op":"eq","value":"open"}]
projectYesWhich system: 'tanos' (property OS, pipeline, sequencing) or 'sigsche' (signal scheduler)
order_byNoColumn to sort by
ascendingNoSort ascending (default true)
include_piiNoInclude direct personal identifiers (ID numbers, passport numbers, phone, email, banking details). Defaults to false so routine queries do not pull personal data unnecessarily. Set true only when the task genuinely needs it.
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readablemarkdown
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint=false), the description discloses a non-obvious behavioral trait: personal identifiers are withheld unless include_pii is true, and the response reports which fields were redacted. It also describes error behavior (unknown table lists valid tables; column errors suggest baatjie_describe_schema), which is useful operational context not captured in structured metadata.

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

Conciseness5/5

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

The description is long but every section earns its place: a one-sentence purpose, explicit alternative guidance, a concise PII warning, structured Args and Returns, 3 practical examples, error handling notes, and a categorized table list. It is front-loaded with the core action, then organized with headers, making it easy to parse without wasted words.

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?

For a tool with 10 parameters, 2 projects, and many tables, the description covers all operational aspects: what it does, when to use it, how parameters map to examples, what the return structure looks like, how PII is redacted, and how errors are reported. The explicit Returns block compensates for the lack of an output schema, and the table allowlist removes ambiguity about valid values.

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?

The input schema already provides 100% parameter coverage, so the baseline is 3. The description adds value beyond the schema with real-world filter examples, a table allowlist, and clarifications like 'Narrowing columns is the cheapest way' and the full list of PII fields that include_pii controls. These enrich the schema descriptions meaningfully, though the schema already covers the mechanics.

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?

The description opens with a specific verb and resource: 'Read rows from any table in tanOS or sigscheCore', followed by a clear list of capabilities (filtering, column selection, ordering, pagination). It explicitly distinguishes itself from siblings by naming baatjie_next_actions and baatjie_dashboard as cheaper and better-shaped alternatives for specific use cases.

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

Usage Guidelines5/5

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

It explicitly positions itself as 'the general-purpose read' and tells the agent when NOT to use it: 'For sequencing work prefer baatjie_next_actions, and for the ops snapshot prefer baatjie_dashboard'. It also provides multiple concrete examples mapping natural-language intents to parameter values, giving clear guidance on how to invoke the tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dantalan/baatjie-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server