Skip to main content
Glama

Compose Database From Intent

compose_database_from_intent

Compose a task board or issue tracker database from a declarative intent, including starter schema and optional seed rows.

Instructions

Create a useful AFFiNE database/data-view from declarative intent. Supports task_board and issue_tracker presets with starter schema, kanban view, and optional starter rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docIdYesDocument ID containing the database
titleNoOptional database title. Defaults to the intent preset title.
intentYesDeclarative database intent to compose.
seedRowsNoOptional starter rows. If omitted, the preset starter rows are used.
placementNoOptional insertion target/position
workspaceIdNoWorkspace ID (optional if default set)
Behavior3/5

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

Annotations indicate a write operation (readOnlyHint=false). Description adds that presets include starter schema and kanban view, but does not clarify behavior if doc already has content or effects on existing blocks. No contradiction with annotations.

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 sentences, front-loaded with essential information, no redundant words.

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 6 parameters, nested objects, and no output schema, the description covers core functionality. Could explain what the tool returns or prerequisites (e.g., doc existence), but acceptable for a creation tool.

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 covers all 6 parameters (100% coverage). Description adds nuance for seedRows (preset vs custom). Minimal added value beyond schema.

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?

Description clearly states it creates a database from intent, naming presets and components. Differentiates from sibling tools that are more atomic (e.g., add_database_column, add_database_row).

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?

Implies use for high-level database creation from intent, but no explicit when-to-use or when-not-use, and no mention of alternative tools for manual construction.

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

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