Skip to main content
Glama
feuerdev
by feuerdev

add_list_item

Add a new item to a checklist note in Google Keep. Specify the note ID, item text, and optionally mark it as checked.

Instructions

Add an item to a checklist note.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_idYes
textYes
checkedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'add_list_item' tool. Decorated with @mcp.tool(), it retrieves a note by ID, verifies it's modifiable and is a List type, adds an item with the given text and checked state, syncs with Google Keep, and returns the note_id and item_id as JSON.
    @mcp.tool()
    def add_list_item(note_id: str, text: str, checked: bool = False) -> str:
        """Add an item to a checklist note."""
        keep, note = _get_note_or_raise(note_id)
        _ensure_modifiable(note)
    
        if not isinstance(note, gkeepapi.node.List):
            raise ValueError(f"Note with ID {note_id} is not a list")
    
        item = note.add(text=text, checked=checked)
        keep.sync()
        return json.dumps({"note_id": note.id, "item_id": item.id})
  • Registration of the tool using the @mcp.tool() decorator on the add_list_item function, which registers it with the FastMCP server instance.
    @mcp.tool()
  • Helper function _get_note_or_raise used by the handler to look up a note by ID and raise ValueError if not found.
    def _get_note_or_raise(note_id: str):
        keep = get_client()
        note = keep.get(note_id)
        if not note:
            raise ValueError(f"Note with ID {note_id} not found")
        return keep, note
  • Helper function _ensure_modifiable used by the handler to verify a note can be modified (has keep-mcp label or UNSAFE_MODE is enabled).
    def _ensure_modifiable(note):
        if not can_modify_note(note):
            raise ValueError(
                f"Note with ID {note.id} cannot be modified "
                "(missing keep-mcp label and UNSAFE_MODE is not enabled)"
            )
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only states 'add' (mutation) but does not disclose side effects, authorization needs, or error conditions, leaving significant behavioral ambiguity.

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

Conciseness4/5

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

The description is a single sentence with no fluff, efficiently conveying the core function. It is well-structured and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given moderate complexity (3 parameters, required output schema exists), the description is too sparse. Missing context about checklist-specific behavior, how to obtain note_id, and expected results.

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

Parameters2/5

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

With 0% schema description coverage, the description should explain parameters. It does not; it only names the tool's purpose. Parameter names (note_id, text, checked) are somewhat self-explanatory, but the description adds no additional 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 description clearly states the action (add) and resource (item to a checklist note), distinguishing it from sibling tools like 'create_list' or 'update_list_item'. However, it does not explicitly mention that the note must be an existing checklist, which is a slight gap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or scenarios to avoid. Agents must infer usage from context.

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/feuerdev/keep-mcp'

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