Skip to main content
Glama

add_rows

Add one or more rows to a database as Markdown files with YAML frontmatter keyed by column ID; invalid keys and select/status values are rejected before writing.

Instructions

Add one or more rows to a database. Each row is a markdown file with YAML frontmatter properties, keyed by column ID (not column name) — unknown keys and invalid select/status option values are rejected before anything is written. For status/select columns, use the option name as the value (e.g., "To Do", "In Progress", "Done", "Archived"). For recurring columns, set value as an object with frequency (daily/weekly/monthly/yearly), resetStatus, and nextReset (YYYY-MM-DD) fields. Optional recurring fields: interval (repeat every N units, e.g. 2 = every 2 weeks), byDays (array of day indices 0=Sun..6=Sat, daily only), and for patterns like "first Monday": monthlyMode "nthWeekday" with nthWeek (1-4, or -1 for last) and nthWeekday (0-6).

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>",
      "databasePath": "<databasePath>",
      "rows": "<rows>"
    },
    "name": "add_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesRow data or array of row data. Include "title" for the filename, other properties become frontmatter. Use "_content" for the markdown body.
workspaceYesWorkspace path or name
databasePathYesPath to the database folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations, so description carries full burden: it discloses validation-before-write semantics (atomic rejection of unknown keys and bad option values) and value-format rules, which is valuable. It omits authorization/workspace requirements and what happens on duplicate titles.

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

Conciseness3/5

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

Front-loaded with the core action and the validation rule early, but roughly half the text is dense recurring-column syntax detail that reads like documentation for a nested schema rather than tool selection guidance.

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?

Covers the risky parts (key naming, option values, rejection behavior) for a 3-param mutation tool with no annotations and no output schema. Missing only permission/workspace expectations and return-value behavior after a successful write.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description goes well beyond: it clarifies keys are column IDs not names, explains the status/select option-name convention with examples, and fully documents the recurring-column object shape including optional interval/byDays/monthlyMode/nthWeek fields that the schema's additionalProperties leaves unspecified.

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?

Specific verb+resource ('Add one or more rows to a database') with immediate detail about the row format. Distinguishes from update_rows/delete_rows by verb; sibling add_sheet_rows is a near-twin but the database vs sheet distinction is implicitly conveyed by 'database' and 'databasePath'.

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 creation of new rows, and the rejection warning ('unknown keys and invalid ... are rejected before anything is written') nudges careful use, but there is no explicit when-to-use vs update_rows or add_sheet_rows guidance.

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