org_list
List all organizations managed by the Technical Project Manager server to view available project structures and hierarchies.
Instructions
PROJECT MANAGEMENT: List all organizations. Usually only one org exists.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tpm_mcp/server.py:432-436 (registration)Registration of the 'org_list' tool including its schema and description in the list_tools() function.Tool( name="org_list", description="PROJECT MANAGEMENT: List all organizations. Usually only one org exists.", inputSchema={"type": "object", "properties": {}}, ),
- src/tpm_mcp/server.py:435-435 (schema)Input schema for org_list tool: empty object (no parameters).inputSchema={"type": "object", "properties": {}},
- src/tpm_mcp/server.py:504-506 (handler)MCP tool handler in _handle_tool: retrieves organizations using db.list_orgs() and serializes to JSON.if name == "org_list": orgs = db.list_orgs() return _json([o.model_dump() for o in orgs])
- src/tpm_mcp/db.py:144-149 (helper)Core database helper method that queries the 'orgs' table and constructs Org model instances.def list_orgs(self) -> list[Org]: rows = self.conn.execute("SELECT * FROM orgs ORDER BY name").fetchall() return [ Org(id=r["id"], name=r["name"], created_at=datetime.fromisoformat(r["created_at"])) for r in rows ]