Skip to main content
Glama

ado_get_work_item

Retrieve a specific Azure DevOps work item by its ID to access task details, status updates, or comprehensive field information for project tracking and management.

Instructions

Obtiene un Work Item de Azure DevOps por su ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesEl ID del Work Item
fullNoSi es true, devuelve todos los campos

Implementation Reference

  • The handler function for the ado_get_work_item tool, which fetches a work item from Azure DevOps using the Work Item Tracking API.
    async ({ id, full }) => {
      const api = await getWitApi();
      const expand = full
        ? witInterfaces.WorkItemExpand.All
        : witInterfaces.WorkItemExpand.Fields;
      const workItem = await api.getWorkItem(id, undefined, undefined, expand);
    
      if (!workItem) {
        throw new Error(`Work Item con ID ${id} no encontrado`);
      }
    
      const result = full
        ? JSON.stringify(workItem, null, 2)
        : formatWorkItem(workItem);
    
      return {
        content: [{ type: "text", text: result }],
      };
  • src/index.ts:225-234 (registration)
    The registration of the ado_get_work_item tool with the MCP server, including its schema definition.
    server.tool(
      "ado_get_work_item",
      "Obtiene un Work Item de Azure DevOps por su ID",
      {
        id: z.number().describe("El ID del Work Item"),
        full: z
          .boolean()
          .optional()
          .describe("Si es true, devuelve todos los campos"),
      },

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/soulberto/mcp-azure'

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