Skip to main content
Glama
aliyun

AlibabaCloud DevOps MCP Server

Official
by aliyun

list_estimated_efforts

Retrieve detailed estimated work hours for specific tasks in Alibaba Cloud DevOps projects to support planning and resource allocation.

Instructions

[Project Management] 获取预计工时明细

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes工作项唯一标识
organizationIdYesorganizationId

Implementation Reference

  • MCP tool handler implementation for 'list_estimated_efforts'. Parses input arguments using the schema, calls the underlying effort service function, and formats the response as JSON text.
    case "list_estimated_efforts": {
      const args = types.ListEstimatedEffortsSchema.parse(request.params.arguments);
      const estimatedEfforts = await effort.listEstimatedEfforts({
        id: args.id,
        organizationId: args.organizationId
      });
      return {
        content: [{ type: "text", text: JSON.stringify(estimatedEfforts, null, 2) }],
      };
    }
  • Core helper function that performs the API request to fetch estimated efforts for a workitem and parses the response using Zod.
    export async function listEstimatedEfforts(
      params: z.infer<typeof ListEstimatedEffortsSchema>
    ) {
      const validatedParams = ListEstimatedEffortsSchema.parse(params);
      
      const url = `/oapi/v1/projex/organizations/${validatedParams.organizationId}/workitems/${validatedParams.id}/estimatedEfforts`;
      
      const response = await yunxiaoRequest(url, {
        method: "GET"
      });
    
      return z.array(EstimatedEffortSchema).parse(response);
    }
  • Tool registration in the effort tools array, including name, description, and input schema converted to JSON schema.
      name: "list_estimated_efforts",
      description: "[Project Management] 获取预计工时明细",
      inputSchema: zodToJsonSchema(ListEstimatedEffortsSchema),
    },
  • Zod schema definition for input parameters: workitem id and organizationId.
    export const ListEstimatedEffortsSchema = z.object({
      id: z.string().describe("工作项唯一标识"),
      organizationId: z.string().describe("organizationId"),
    });

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/aliyun/alibabacloud-devops-mcp-server'

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