Skip to main content
Glama

Read Database Cells

read_database_cells
Read-onlyIdempotent

Retrieve row titles and database cell values from an AFFiNE database block, including plain text and formatting-preserving rich-text data, with optional row and column filters.

Instructions

Read row titles and database cell values from an AFFiNE database block. Rich-text titles and cells include both plain values and formatting-preserving deltas.

Input Schema

NameRequiredDescriptionDefault
docIdYesDocument ID containing the database
columnsNoOptional column name or ID filter.
rowBlockIdsNoOptional row block ID filter. Omit to return all rows.
workspaceIdNoWorkspace ID (optional if default set)
databaseBlockIdYesBlock ID of the affine:database block

Output Schema

NameRequiredDescriptionDefault
okNo
codeNo
rowsNo
errorNo
detailsNo
causeCodeNo
retryableNo
recoveryGuidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds one genuinely new fact – that rich-text titles/cells return both plain values and formatting-preserving deltas – but says nothing about volume, ordering, or missing-row behavior.

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?

Two tight sentences with zero waste; the core action is front-loaded and the delta caveat follows. Nothing redundant or speculative is included.

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?

With an output schema present and full schema descriptions plus rich annotations, the description only needs to frame the operation, which it does. A note on how filters interact or on result size would close the last gap.

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 coverage is 100%, so all five parameters are already documented in-schema, giving a baseline of 3. The description does not mention the optional columns or rowBlockIds filters at all, so it adds no meaning beyond the schema.

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

Purpose4/5

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

States a specific verb and resource: read row titles and cell values from an AFFiNE database block. That is clearly distinct from the column-metadata sibling read_database_columns, though the description never names that sibling to reinforce the split.

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?

Usage is only implied by the resource ('cell values'), with no explicit when-to-use or when-not-to-use. It does not tell the agent to prefer read_database_columns for schema and this tool for data, nor does it mention row/column filtering as the way to narrow scope.

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

Deploy Server

Other Tools