Skip to main content
Glama

org_create

Create new organizations in the tpm-mcp project management system to establish hierarchical structures for tracking projects, features, and tasks.

Instructions

PROJECT MANAGEMENT: Create a new organization (rarely needed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesOrganization name

Implementation Reference

  • Handler function for the 'org_create' tool. Parses the input arguments, creates an OrgCreate model instance, calls db.create_org to persist the organization, and returns a formatted JSON response.
    if name == "org_create": org = db.create_org(OrgCreate(name=args["name"])) return f"Created org: {_json(org)}"
  • Registration of the 'org_create' tool in the list_tools() decorator, including name, description, and JSON schema for input validation.
    name="org_create", description="PROJECT MANAGEMENT: Create a new organization (rarely needed).", inputSchema={ "type": "object", "properties": {"name": {"type": "string", "description": "Organization name"}}, "required": ["name"], }, ),
  • Pydantic schema model OrgCreate used for input validation and type hints in the org_create tool handler.
    class OrgCreate(BaseModel): name: str
  • Core database helper method that generates a UUID ID, inserts the organization into the 'orgs' SQLite table, commits the transaction, and returns an Org model instance.
    def create_org(self, data: OrgCreate) -> Org: id = self._gen_id() now = self._now() self.conn.execute( "INSERT INTO orgs (id, name, created_at) VALUES (?, ?, ?)", (id, data.name, now) ) self.conn.commit() return Org(id=id, name=data.name, created_at=datetime.fromisoformat(now))

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