Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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": {}}, ),
  • Input schema for org_list tool: empty object (no parameters).
    inputSchema={"type": "object", "properties": {}},
  • 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])
  • 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 ]

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