Skip to main content
Glama
comet-ml

Opik MCP Server

by comet-ml

create-project

Set up a new project or workspace by specifying its name and optional details using the Model Context Protocol on the Opik MCP Server.

Instructions

Create a new project/workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNoDescription of the project
nameYesName of the project
workspaceNameNoWorkspace name to use instead of the default

Implementation Reference

  • The main handler function for the 'create-project' tool. It extracts arguments, constructs a POST request body, calls makeApiRequest to the /v1/private/projects endpoint, and returns a text response indicating success or error.
    async (args: any) => {
      const { name, description, workspaceName } = args;
      const requestBody: any = { name };
      if (description) requestBody.description = description;
    
      const response = await makeApiRequest<any>(
        `/v1/private/projects`,
        {
          method: 'POST',
          body: JSON.stringify(requestBody),
        },
        workspaceName
      );
    
      return {
        content: [
          {
            type: 'text',
            text: response.error || 'Successfully created project',
          },
        ],
      };
    }
  • Zod input schema for the create-project tool defining required 'name' and optional 'description' and 'workspaceName' parameters.
    {
      name: z.string().min(1).describe('Name of the project'),
      description: z.string().optional().describe('Description of the project'),
      workspaceName: z.string().optional().describe('Workspace name to use instead of the default'),
    },
  • Registers the 'create-project' tool on the MCP server within the loadProjectTools function, specifying name, description, input schema, and handler.
    server.tool(
      'create-project',
      'Create a new project',
      {
        name: z.string().min(1).describe('Name of the project'),
        description: z.string().optional().describe('Description of the project'),
        workspaceName: z.string().optional().describe('Workspace name to use instead of the default'),
      },
      async (args: any) => {
        const { name, description, workspaceName } = args;
        const requestBody: any = { name };
        if (description) requestBody.description = description;
    
        const response = await makeApiRequest<any>(
          `/v1/private/projects`,
          {
            method: 'POST',
            body: JSON.stringify(requestBody),
          },
          workspaceName
        );
    
        return {
          content: [
            {
              type: 'text',
              text: response.error || 'Successfully created project',
            },
          ],
        };
      }
    );
  • src/index.ts:86-88 (registration)
    Top-level conditional registration of project tools, including 'create-project', by invoking loadProjectTools when the 'projects' toolset is enabled in configuration.
    if (config.enabledToolsets.includes('projects')) {
      server = loadProjectTools(server);
      logToFile('Loaded projects toolset');
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Create') but doesn't cover critical aspects like required permissions, whether the creation is idempotent, what happens on conflicts, or the expected response format. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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

Conciseness5/5

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

The description is a single, efficient sentence with zero wasted words—it directly states the tool's purpose without unnecessary elaboration. It's appropriately sized and front-loaded, making it easy to parse quickly.

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

Completeness2/5

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

Given that this is a mutation tool ('Create') with no annotations and no output schema, the description is insufficient. It doesn't explain what a 'project' or 'workspace' entails in this system, how to handle errors, or what the tool returns upon success, leaving the agent with incomplete context for effective use.

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?

The description adds no parameter-specific information beyond what's already in the input schema, which has 100% coverage with clear descriptions for all three parameters. This meets the baseline of 3, as the schema adequately documents the parameters, but the description doesn't provide additional context like examples or usage notes.

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

Purpose4/5

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

The description 'Create a new project/workspace' clearly states the verb ('Create') and resource ('project/workspace'), making the purpose immediately understandable. However, it doesn't distinguish this tool from its sibling 'create-prompt' or explain what differentiates a 'project' from a 'workspace' in this context, which prevents a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'update-project' or 'list-projects', nor does it mention prerequisites or constraints. While the verb 'Create' implies it's for new entities, there's no explicit comparison to siblings or context for usage decisions.

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

Install Server

Other Tools

Related Tools

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/comet-ml/opik-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server