Skip to main content
Glama

add_card

Creates a Kanban card on an AFFiNE board with optional fields, Markdown content, and lane placement, enabling agents to add and organize board items in a document.

Instructions

Add a card to a board, with optional fields (Status, Author, ...), a Markdown description and a place in its lane

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": {
      "doc": "<doc>",
      "title": "<title>"
    },
    "name": "add_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesDoc id or title
boardNoBoard block id or board title, leave out when the doc has one board
titleYes
fieldsNoField name to value, for example {"Status": "In Progress", "Author": "Yurii"}. null clears a field
positionNoPlace in the lane: "top", "bottom", {"before": card} or {"after": card}
workspaceNoWorkspace id or name, leave out for the default workspace
descriptionNoMarkdown inside the card (what AFFiNE shows when the card is opened), replaces the old text. "" clears it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is clear. The description adds that fields are optional, the description is Markdown, and position controls placement in the lane. It does not disclose return behavior, permission requirements, or what happens when board/workspace are omitted, which are the main remaining behavioral gaps.

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 a single, front-loaded sentence with no wasted wording. It packs the core action and the optional capabilities into one readable clause. It is appropriately sized for a create-card tool.

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?

The tool has seven parameters, two required, nested objects, and no output schema. The description covers the core action and some optional parameters, and annotations cover the safety profile. However, it does not mention the required doc/title context, the return value, or default behavior when board or workspace is omitted, leaving some gaps for a mutation 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 description coverage is 86%, so the schema already documents most parameters including doc, board, workspace, position, and description. The description reinforces that fields are optional and that description is Markdown, but it does not add syntax or constraints beyond what the schema provides. A baseline 3 is appropriate when the schema does the heavy lifting.

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 description states a specific verb and resource: add a card to a board. It also names the optional fields, Markdown description, and lane placement, so the agent can distinguish this from update_card, move_card, or delete_card. It does not explicitly compare against siblings, but the purpose is clear.

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 usage is implied by the verb and resource: use this to create a card on a board. There is no explicit when-to-use or when-not-to-use guidance, and no mention of alternatives such as update_card or move_card. The context is sufficient for a straightforward create operation but leaves routing to the agent.

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