Skip to main content
Glama

Add Database Row

add_database_row

Add a new row to an AFFiNE database block by specifying cell values per column, with support for auto-creating select options.

Instructions

Add a row to an AFFiNE database block. Provide cell values mapped by column name or column ID. Title column text is stored on the row paragraph block. Select columns auto-create options by label.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cellsYesMap of column name (or column ID) to cell value. For select columns, pass the display label (option auto-created if new).
docIdYesDocument ID containing the database
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)
databaseBlockIdYesBlock ID of the affine:database block

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
addedYes
cellCountYes
rowBlockIdYes
linkedDocIdYes
databaseBlockIdYes
Behavior4/5

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

The description discloses non-obvious behaviors: title column text is stored on the row paragraph block, and select columns auto-create options by label. These details complement the annotations (readOnlyHint=false, openWorldHint=true) and add transparency about side effects without contradicting any hints.

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 three concise sentences with no wasted words. The first sentence states the core action, and the subsequent sentences add high-value details about cell mapping and edge cases.

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?

Given the nested objects and 5 parameters, the description covers key usage aspects: how to map cells, special handling of the title column, and select column behavior. An output schema exists, so return values need not be described. A slight gap is the lack of elaboration on linkedDocId, but the schema already explains that.

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 schema already documents all 5 parameters with descriptions, so baseline is 3. The description enriches the cells parameter by explaining that values map by column name/ID and that select column labels auto-create options, which adds meaning beyond the schema's generic definition.

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 begins with 'Add a row to an AFFiNE database block', which is a specific verb and resource. It clearly distinguishes from sibling tools like update_database_row and delete_database_row by focusing on creation.

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 description provides clear how-to context but does not explicitly state when to use this tool versus alternatives such as update_database_row or read_database_cells. Usage is implied by the word 'Add' and the tool's name, but no alternative tools or exclusionary conditions are mentioned.

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/irfanhak123/affine-mcp-server'

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