note_get
Retrieve complete content of a specific project note using its unique ID to access detailed information for project tracking and management.
Instructions
PROJECT MANAGEMENT (TPM): Get full content of a specific note by ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | Note ID |
Implementation Reference
- src/tpm_mcp/server.py:420-430 (registration)Registration of the 'note_get' tool in the list_tools() function, including its name, description, and input schema requiring 'note_id'.Tool( name="note_get", description="PROJECT MANAGEMENT (TPM): Get full content of a specific note by ID.", inputSchema={ "type": "object", "properties": { "note_id": {"type": "string", "description": "Note ID"}, }, "required": ["note_id"], }, ),
- src/tpm_mcp/server.py:423-429 (schema)Input schema for the note_get tool, defining the required 'note_id' parameter as a string.inputSchema={ "type": "object", "properties": { "note_id": {"type": "string", "description": "Note ID"}, }, "required": ["note_id"], },
- src/tpm_mcp/server.py:733-738 (handler)Handler logic in _handle_tool for 'note_get': fetches the note using db.get_note and serializes it to JSON, or returns error if not found.if name == "note_get": # Need to add get_note method to db note = db.get_note(args["note_id"]) if not note: return f"Note {args['note_id']} not found" return _json(note.model_dump())
- src/tpm_mcp/db.py:790-800 (helper)Database helper method TrackerDB.get_note that queries the 'notes' table by ID and reconstructs the Note model instance.def get_note(self, note_id: str) -> Note | None: row = self.conn.execute("SELECT * FROM notes WHERE id = ?", (note_id,)).fetchone() if row: return Note( id=row["id"], entity_type=row["entity_type"], entity_id=row["entity_id"], content=row["content"], created_at=datetime.fromisoformat(row["created_at"]), ) return None