Skip to main content
Glama

read_database

Retrieve database columns, options, and rows with filtering, sorting, searching, and views; filter status columns to view tasks in normal, done, or archive states.

Instructions

Read a database with optional filtering, sorting, and searching. Returns database config (columns with types/options/colors/states) and rows. Databases with status columns can be used as task boards — filter by status to see tasks in specific states (normal/done/archive). Recurring columns show task reset schedules.

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": {
      "workspace": "<workspace>",
      "databasePath": "<databasePath>"
    },
    "name": "read_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSorting configuration
limitNoMaximum number of rows to return
searchNoSearch query to filter rows
viewIdNoView ID to use for pre-configured filters/sorts
filtersNoColumn filters to apply
workspaceYesWorkspace path or name
databasePathYesPath to the database folder (relative to documents folder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the return content (config plus rows) and domain behavior (status-based task boards, recurring column reset schedules), which is valuable, but it omits read-only confirmation, default/maximum limit behavior, and how viewId interacts with explicit filters.

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?

Three tight sentences: capability, return value, then domain semantics, all front-loaded with no filler. The final sentence about recurring columns is slightly tangential but still informative.

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

Completeness4/5

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

For a seven-parameter tool with nested objects and no output schema, the description usefully explains what comes back and gives a concrete usage pattern. The remaining gap is behavioral edge cases (limit defaults, view-plus-filter precedence), which is modest rather than critical.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all seven parameters. The description adds only light semantic color via the status-state example (normal/done/archive); it does not clarify the relationship between viewId and filters or what sorting/searching operate on.

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?

States a specific verb and resource ('Read a database') and immediately scopes the capabilities (filtering, sorting, searching) plus the return payload (config with columns/types/options/colors/states and rows). This is clearly distinguishable from sibling read tools like read_document or list_databases.

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

Usage Guidelines3/5

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

The task-board scenario gives useful when-to-use context: 'Databases with status columns can be used as task boards — filter by status to see tasks in specific states.' However, there is no guidance on when to use this versus list_databases or a view-based read, and no exclusion or prerequisite notes.

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