Skip to main content
Glama

delete_tag

Remove tags from your Clockify workspace to maintain organized time tracking data and clean project management.

Instructions

Delete a tag

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdYesWorkspace ID
tagIdYesTag ID

Implementation Reference

  • The handler function that sends a DELETE request to the Clockify API endpoint `/workspaces/{workspaceId}/tags/{tagId}` to delete the specified tag and returns a success message.
    private async deleteTag(workspaceId: string, tagId: string) { await this.makeRequest( `/workspaces/${workspaceId}/tags/${tagId}`, "DELETE" ); return { content: [ { type: "text", text: `Tag ${tagId} deleted successfully!`, }, ], isError: false, }; }
  • The input schema defining the parameters for the delete_tag tool: workspaceId and tagId as required strings.
    inputSchema: { type: "object", properties: { workspaceId: { type: "string", description: "Workspace ID" }, tagId: { type: "string", description: "Tag ID" }, }, required: ["workspaceId", "tagId"],
  • src/index.ts:808-810 (registration)
    Registration of the delete_tag tool handler in the switch statement for CallToolRequestSchema, which validates arguments and calls the deleteTag method.
    case "delete_tag": if (!args?.workspaceId || !args?.tagId) throw new McpError(ErrorCode.InvalidParams, 'workspaceId and tagId are required'); return await this.deleteTag(args.workspaceId as string, args.tagId as string);
  • src/index.ts:649-660 (registration)
    Tool definition and registration in the ListToolsRequestSchema response, including name, description, and input schema.
    { name: "delete_tag", description: "Delete a tag", inputSchema: { type: "object", properties: { workspaceId: { type: "string", description: "Workspace ID" }, tagId: { type: "string", description: "Tag ID" }, }, required: ["workspaceId", "tagId"], }, },

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/ratheesh-aot/clockify-mcp'

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