Skip to main content
Glama

getBugDetail

Retrieve detailed bug information from ZenTao project management system using bug ID, including steps and extracted image URLs for comprehensive issue tracking.

Instructions

Get bug detail by ID; also extracts image URLs from steps HTML into stepsImages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bugIdYesBug ID (required)

Implementation Reference

  • Handler for the 'getBugDetail' tool. Extracts bugId from input arguments, calls the helper getBugWithImages to fetch and enrich bug data, then returns it as formatted JSON text content.
    if (name === "getBugDetail") { const { bugId } = args; const bug = await getBugWithImages(bugId); return { content: [ { type: "text", text: JSON.stringify({ bug }, null, 2), }, ], }; }
  • Registration of the 'getBugDetail' tool in the tools list, including its name, description, and input schema definition.
    { name: "getBugDetail", description: "Get bug detail by ID; also extracts image URLs from steps HTML into stepsImages.", inputSchema: { type: "object", properties: { bugId: { type: "number", description: "Bug ID (required)" }, }, required: ["bugId"], additionalProperties: false, }, },
  • Core helper function for fetching bug details via ZenTao API and enriching with parsed image URLs from steps HTML.
    async function getBugWithImages(bugId) { const res = await callZenTao({ path: `bugs/${bugId}` }); const bug = res.data || {}; const stepsHtml = bug.steps || bug.stepsHtml || ""; const stepsImages = parseImageSources(stepsHtml); return { ...bug, stepsHtml, stepsImages }; }

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/Valiant-Cat/zentao-mcp-server'

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