Skip to main content
Glama

note_list

Retrieve notes for project entities like organizations, projects, tickets, or tasks. Returns note IDs, creation dates, and content previews to track discussions and updates.

Instructions

PROJECT MANAGEMENT (TPM): List notes for an entity. Returns id, created_at, preview (first 100 chars). Use note_get for full content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_typeYesType of entity
entity_idYesID of the entity
limitNoMax notes to return (default: 20, max: 50)

Implementation Reference

  • The handler logic for the note_list tool within the _handle_tool function. It fetches notes from the database for the specified entity, applies pagination limit, generates previews, and returns a JSON response with note summaries.
    if name == "note_list": notes = db.get_notes(args["entity_type"], args["entity_id"]) limit = min(args.get("limit", 20), 50) total = len(notes) notes = notes[:limit] # Return IDs + preview only - use note_get for full content result = [ { "id": n.id, "created_at": n.created_at.isoformat(), "preview": n.content[:100] + "..." if len(n.content) > 100 else n.content, } for n in notes ] return _json({"notes": result, "limit": limit, "total": total})
  • Registration of the note_list tool in the list_tools() function, including name, description, and input schema definition.
    Tool( name="note_list", description="PROJECT MANAGEMENT (TPM): List notes for an entity. Returns id, created_at, preview (first 100 chars). Use note_get for full content.", inputSchema={ "type": "object", "properties": { "entity_type": { "type": "string", "enum": ["org", "project", "ticket", "task"], "description": "Type of entity", }, "entity_id": {"type": "string", "description": "ID of the entity"}, "limit": { "type": "integer", "description": "Max notes to return (default: 20, max: 50)", "default": 20, }, }, "required": ["entity_type", "entity_id"], }, ),
  • Input schema definition for the note_list tool, specifying parameters for entity_type, entity_id, and optional limit.
    inputSchema={ "type": "object", "properties": { "entity_type": { "type": "string", "enum": ["org", "project", "ticket", "task"], "description": "Type of entity", }, "entity_id": {"type": "string", "description": "ID of the entity"}, "limit": { "type": "integer", "description": "Max notes to return (default: 20, max: 50)", "default": 20, }, }, "required": ["entity_type", "entity_id"], },

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/urjitbhatia/tpm-mcp'

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