Skip to main content
Glama

Update Database Row

update_database_row

Batch updates multiple cells in an existing AFFiNE database row; include the title cell to change the Kanban row title.

Instructions

Batch update multiple cells on an existing AFFiNE database row. Include title in the cells map to update the Kanban row title.

Input Schema

NameRequiredDescriptionDefault
cellsYesMap of column name (or column ID) to new cell value. Rich-text and title values accept strings or delta arrays. For LinkedPage references, use insert: " " with reference.type="LinkedPage" and the target pageId; visible labels are resolved by AFFiNE. Use `title` for the built-in row title.
docIdYesDocument ID containing the database
rowBlockIdYesRow paragraph block ID
linkedDocIdNoLink this row to an existing doc by ID. The row will open the linked doc in center peek when clicked.
workspaceIdNoWorkspace ID (optional if default set)
createOptionNoFor select and multi-select columns, create the option label if it does not exist (default true)
databaseBlockIdYesBlock ID of the affine:database block
expectedRevisionNoOptional read_doc revision of this primary document. Reject stale content before writing. Covers document content, not workspace metadata; requires all writers to share one MCP server.

Output Schema

NameRequiredDescriptionDefault
okNo
codeNo
errorNo
detailsNo
updatedNo
causeCodeNo
cellCountNo
retryableNo
rowBlockIdNo
recoveryGuidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and openWorld=true, so the safety profile is covered. The description adds that the target row must be 'existing' and how the title maps to the Kanban row title, but it says nothing about partial-failure behavior for a batch, revision conflicts, or how linkedDocId affects the row.

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 short sentences, the write action is front-loaded, and the second sentence carries actionable guidance rather than filler. No waste.

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

Completeness3/5

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

An output schema and a fully documented 8-parameter schema relieve much of the burden, but for a nested-map batch mutation marked non-idempotent the description should say what happens on partial application or stale revision. As written it is thin relative to the tool's complexity.

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%, including a detailed cells map description and expectedRevision semantics, so the schema does the heavy lifting. The description's note about including `title` in the cells map largely restates the schema's 'Use `title` for the built-in row title', though the Kanban framing adds a small amount of context.

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+resource: batch-update multiple cells on an existing AFFiNE database row. An agent can distinguish this from update_table_cell and add_database_row by the 'database row' + 'cells' phrasing, though no sibling is named explicitly.

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: the row must already exist, and cells is the batch mechanism. There is no guidance on when to prefer this over update_block, update_table_cell, or read_database_cells first, and no exclusions or prerequisites such as required permissions.

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