Skip to main content
Glama

org_list

List all organizations managed by the Technical Project Manager to track projects, features, and tasks in a hierarchical structure.

Instructions

PROJECT MANAGEMENT: List all organizations. Usually only one org exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'org_list': calls database method to fetch organizations and returns JSON-serialized list.
    if name == "org_list": orgs = db.list_orgs() return _json([o.model_dump() for o in orgs])
  • Registers the 'org_list' tool with MCP server, including name, description, and input schema (empty object, no parameters).
    Tool( name="org_list", description="PROJECT MANAGEMENT: List all organizations. Usually only one org exists.", inputSchema={"type": "object", "properties": {}}, ),
  • Core database implementation: executes SQL SELECT on 'orgs' table, ordered by name, and maps rows to 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 ]

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