Skip to main content
Glama

add_bullet_list

Add bulleted lists to Microsoft Word documents by providing document ID and list items. This tool enables structured content organization for AI-assisted document creation.

Instructions

Add a bulleted list to the document

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docIdYesDocument identifier
itemsYesArray of list items

Implementation Reference

  • Handles the "add_bullet_list" tool call by delegating to DocumentManager.addBulletList and returning a success message with item count.
    case "add_bullet_list": documentManager.addBulletList(args.docId, args.items); return { content: [ { type: "text", text: `Bullet list added with ${args.items.length} items.`, }, ], };
  • Defines the tool schema including name, description, and input schema requiring docId and items array.
    name: "add_bullet_list", description: "Add a bulleted list to the document", inputSchema: { type: "object", properties: { docId: { type: "string", description: "Document identifier", }, items: { type: "array", items: { type: "string" }, description: "Array of list items", }, }, required: ["docId", "items"], }, },
  • src/index.ts:24-28 (registration)
    Registers the documentTools array (containing add_bullet_list schema) for the MCP ListToolsRequest.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: documentTools, }; });
  • Core implementation that adds each item as a bulleted Paragraph to the document's paragraphs array and updates the document.
    addBulletList(docId: string, items: string[]): void { const docInfo = this.getDocument(docId); items.forEach((item) => { const paragraph = new Paragraph({ text: item, bullet: { level: 0, }, }); docInfo.paragraphs.push(paragraph); }); this.updateDocument(docId); }

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/bibash44/word-documet-mcp-server'

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