Skip to main content
Glama

create_database

Create a new database in a workspace to organize Markdown rows into tables, kanban boards, and recurring task lists.

Instructions

Create a new database in a workspace. A database is a folder containing markdown files (rows) with a database.json configuration file. Databases can be used as task boards by adding a "status" column type with options like "To Do", "In Progress", "Done", "Archived" and setting up a kanban view grouped by status. Status options support "done" (strikethrough) and "archive" (dimmed) states. Add a "recurring" column for auto-resetting tasks on daily/weekly/monthly/yearly schedules.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace": "<workspace>",
      "name": "<name>"
    },
    "name": "create_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the new database
viewsNoView definitions. If not provided, a default table view is created. Add a kanban view with groupBy set to a status/select column ID for a board layout.
columnsNoColumn definitions. If not provided, default columns (title, status, tags) will be created. Use "status" type for kanban-compatible status columns with done/archive states. Use "recurring" type for auto-resetting task schedules.
workspaceYesWorkspace path or name
folderPathNoOptional folder path within documents where to create the database
defaultViewNoID of the default view to show when opening the database (e.g., "kanban" for board view)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.19.0
    • changedInput schema / properties / columns / items / properties / type / description
      Previous value: -"Column type. Use \"status\" for task status columns (supports kanban board view with done/archive states). Use \"select\" for regular single-choice dropdowns. Use \"recurring\" for auto-resetting tasks on a schedule (daily/weekly/monthly/yearly)."New value: +"Column type. Use \"status\" for task status columns (supports kanban board view with done/archive states). Use \"select\" for regular single-choice dropdowns. Use \"recurring\" for auto-resetting tasks on a schedule (daily/weekly/monthly/yearly, with optional every-N intervals and monthly nth-weekday patterns like \"first Monday\"). Use \"location\" for places — values can be a city/address name, \"lat, lng\" coordinates, or a Google Maps link (plotted by map views). Use \"image\" for a picture — the value is a workspace-relative resource path (resources/images/<folder>/<file>) or an https URL, shown as a cover on gallery and board cards."
    • changedInput schema / properties / columns / items / properties / type / enum
      Previous value: -[
      -  "title",
      -  "text",
      -  "number",
      -  "select",
      -  "multiselect",
      -  "status",
      -  "checkbox",
      -  "date",
      -  "url",
      -  "email",
      -  "recurring"
      -]New value: +[
      +  "title",
      +  "text",
      +  "number",
      +  "select",
      +  "multiselect",
      +  "status",
      +  "checkbox",
      +  "date",
      +  "url",
      +  "email",
      +  "recurring",
      +  "location",
      +  "image"
      +]
    • addedInput schema / properties / views / items / properties / mapLocationColumn
      Added value: +{
      +  "description": "Column ID holding locations (map views; defaults to the first location/text/url column). Rows render as pins, or as boundary areas automatically when the place has a city-scale outline.",
      +  "type": "string"
      +}
    • addedInput schema / properties / views / items / properties / mapStyle
      Added value: +{
      +  "description": "Map views: base tile style — \"colorful\" (default — low-clutter with solid colors), \"minimal\" (low-clutter grayscale), \"detailed\" (classic OpenStreetMap), or \"nolabels\" (plain geography)",
      +  "enum": [
      +    "minimal",
      +    "colorful",
      +    "detailed",
      +    "nolabels"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / views / items / properties / type / description
      Previous value: -"View type"New value: +"View type. A Custom view (an HTML tool rendering the rows) is added afterwards with add_tool_view."
    • changedInput schema / properties / views / items / properties / type / enum
      Previous value: -[
      -  "table",
      -  "kanban",
      -  "gallery",
      -  "chart"
      -]New value: +[
      +  "table",
      +  "kanban",
      +  "gallery",
      +  "calendar",
      +  "chart",
      +  "gantt",
      +  "dashboard",
      +  "map"
      +]
    • addedInput schema / properties / views / items / properties / widgets
      Added value: +{
      +  "description": "Dashboard widgets (dashboard views only): { id, kind: chart|stat|recent-docs|upcoming, title, size: single|double|full, height: 1-3, filters, config }",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. First observedv0.6.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does add structural context by explaining the folder + database.json layout and defaults implied by the schema. It omits mutation-relevant behavior: whether an existing database with the same name errors or overwrites, what the call returns (e.g., a database or view ID), and whether creation has side effects on the workspace index.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the purpose, but half the text is task-board tutorial content (status options, kanban, recurring scheduling) that duplicates the already-complete schema docs for the columns parameter. Those sentences do not earn their place in a tool description meant for tool selection and invocation.

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?

There is no output schema and no annotations, so the description should at minimum indicate what a successful call yields and any failure modes; neither is covered. For a 6-parameter creation tool with rich nested schema, the description is adequate on domain concepts but incomplete on outcomes.

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 detailed per-parameter docs for views, columns, optionStates, and map views, so the baseline is 3. The description's parameter-related sentences (status options, done/archive states, recurring schedules) largely restate what the schema already documents, adding little new meaning.

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?

The opening sentence gives a specific verb and resource ("Create a new database in a workspace") and the following sentence defines what a database is, which is genuinely useful for an agent that doesn't know the data model. It never names or contrasts a sibling such as create_sheet or create_view, so differentiation is left to the agent.

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 explains intended usage patterns (task boards via a status column, kanban grouping, recurring columns), which is contextual guidance for configuration rather than for tool selection. It does not say when to choose create_database over create_sheet/create_playbook, nor state prerequisites like required workspace permissions.

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