Skip to main content
Glama
bbernstein

LacyLights MCP Server

by bbernstein

remove_cue_from_list

Remove a specific cue by its ID from a cue list on the LacyLights MCP Server, ensuring precise control over theatrical lighting design and scene management.

Instructions

Remove a cue from a cue list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cueIdYesID of the cue to remove

Implementation Reference

  • The main handler function for the 'remove_cue_from_list' tool. It takes a cueId, calls the GraphQL client to delete the cue, and returns success status with a message.
    async removeCueFromList(args: { cueId: string }) {
      const { cueId } = args;
    
      try {
        const success = await this.graphqlClient.deleteCue(cueId);
    
        return {
          cueId,
          success,
          message: success ? "Cue removed successfully" : "Failed to remove cue",
        };
      } catch (error) {
        throw new Error(`Failed to remove cue: ${error}`);
      }
    }
  • The input schema definition for the 'remove_cue_from_list' tool, specifying that it requires a 'cueId' string parameter.
    {
      name: "remove_cue_from_list",
      description: "Remove a cue from a cue list",
      inputSchema: {
        type: "object",
        properties: {
          cueId: {
            type: "string",
            description: "ID of the cue to remove",
          },
        },
        required: ["cueId"],
      },
  • src/index.ts:2339-2351 (registration)
    The dispatch handler in the MCP server's CallToolRequestSchema that routes 'remove_cue_from_list' calls to cueTools.removeCueFromList.
    case "remove_cue_from_list":
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(
              await this.cueTools.removeCueFromList(args as any),
              null,
              2,
            ),
          },
        ],
      };

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/bbernstein/lacylights-mcp'

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