Skip to main content
Glama

project_create

Create a new Railway project to start applications, set up development environments, or establish project spaces for deployment.

Instructions

[API] Create a new Railway project

⚡️ Best for: ✓ Starting new applications ✓ Setting up development environments ✓ Creating project spaces

⚠️ Not for: × Duplicating existing projects

→ Next steps: service_create_from_repo, service_create_from_image, database_deploy

→ Related: project_delete, project_update

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for the new project
teamIdNoOptional team ID to create the project under

Implementation Reference

  • The core handler for the 'project_create' MCP tool. This createTool invocation defines the tool's metadata, Zod input schema (name and optional teamId), and the executor function that invokes projectService.createProject to perform the actual project creation.
      "project_create",
      formatToolDescription({
        type: 'API',
        description: "Create a new Railway project",
        bestFor: [
          "Starting new applications",
          "Setting up development environments",
          "Creating project spaces"
        ],
        notFor: [
          "Duplicating existing projects",
        ],
        relations: {
          nextSteps: [
            "service_create_from_repo",
            "service_create_from_image",
            "database_deploy"
          ],
          related: ["project_delete", "project_update"]
        }
      }),
      {
        name: z.string().describe("Name for the new project"),
        teamId: z.string().optional().describe("Optional team ID to create the project under")
      },
      async ({ name, teamId }) => {
        return projectService.createProject(name, teamId);
      }
    ),
  • Zod schema defining the input parameters for the project_create tool: required 'name' string and optional 'teamId' string.
    {
      name: z.string().describe("Name for the new project"),
      teamId: z.string().optional().describe("Optional team ID to create the project under")
    },
  • Registers the projectTools array (containing project_create) along with other tools to the MCP server via server.tool() calls.
    export function registerAllTools(server: McpServer) {
      // Collect all tools
      const allTools = [
        ...databaseTools,
        ...deploymentTools,
        ...domainTools,
        ...projectTools,
        ...serviceTools,
        ...tcpProxyTools,
        ...variableTools,
        ...configTools,
        ...volumeTools,
        ...templateTools,
      ] as Tool[];
    
      // Register each tool with the server
      allTools.forEach((tool) => {
        server.tool(
          ...tool
        );
      });
    } 
  • Helper method in ProjectService called by the tool handler. Performs the API call to create the project via this.client.projects.createProject and formats the response.
    async createProject(name: string, teamId?: string): Promise<CallToolResult> {
      try {
        const project = await this.client.projects.createProject(name, teamId);
    
        return createSuccessResponse({
          text: `Created new project "${project.name}" (ID: ${project.id})`,
          data: project
        });
      } catch (error) {
        return createErrorResponse(`Error creating project: ${formatError(error)}`);
      }
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility. It only states creation but omits details on permissions, idempotency, error behavior (e.g., duplicate name handling), or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with emojis and bullets, but includes some redundancy (e.g., both 'Next steps' and 'Related' sections could be merged). Still efficient overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Provides use case context via 'Best for' but lacks explanation of return values or side effects. With no output schema and no annotations, more detail is needed for full completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% description coverage, so baseline is 3. The description adds no additional meaning beyond the schema (e.g., name format, teamId usage).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (create) and resource (project), and distinguishes from siblings like project_delete and project_update. The 'Best for' bullets further clarify its purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'Best for' and 'Not for' sections provide clear guidance on when to use the tool, and next steps suggest related tools for subsequent actions, offering comprehensive usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.