Skip to main content
Glama

Compose Database From Intent

compose_database_from_intent

Compose a database from declarative intent using presets for task boards or issue trackers, with starter schema and kanban view.

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
workspaceIdNoWorkspace ID (optional if default set)
docIdYesDocument ID containing the database
intentYesDeclarative database intent to compose.
titleNoOptional database title. Defaults to the intent preset title.
seedRowsNoOptional starter rows. If omitted, the preset starter rows are used.
placementNoOptional insertion target/position
Behavior3/5

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

No annotations provided, so description must carry full burden. It indicates creation but does not disclose side effects (e.g., overwriting existing content), required permissions, or the resulting state of the document. Adequate but not thorough.

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 concise sentences that front-load the main action and key features. No redundancy or fluff.

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?

Given the tool has 6 parameters including nested objects and many siblings, the description provides a good high-level overview but omits output details (e.g., what is returned) and does not mention the placement parameter. Adequate but could be more complete.

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?

Schema coverage is 100%, providing baseline. Description adds context by linking 'task_board' and 'issue_tracker' to the intent enum, mentioning 'starter schema' and 'kanban view', and noting 'optional starter rows' for seedRows. Adds meaning 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?

Clearly states the tool creates a database/data-view from declarative intent, mentions specific presets (task_board, issue_tracker) and features (starter schema, kanban view, optional rows). Distinguishes purpose from sibling tools like add_database_column or create_doc.

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?

Description implies usage for creating database views from intent but provides no explicit guidance on when to use this tool versus alternatives like add_database_row or create_doc. No mentions of prerequisites or exclusions.

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