Skip to main content
Glama

docx-queryMeta

Extract metadata from DOCX files using a document ID with this efficient tool. Simplify document management and retrieval for streamlined workflows.

Instructions

Get docx metadata by id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • MCP tool handler for 'docx-queryMeta': parses input arguments using the tool's inputSchema and delegates to DocRegistry.queryMeta(id) via the registry instance.
    case "docx-queryMeta": { const { id } = parseArgs<{ id: string }>(args, tools["docx-queryMeta"].inputSchema); return ok(registry.queryMeta(id)); }
  • src/index.ts:49-52 (registration)
    Tool registration in the tools object, including description and input schema definition.
    "docx-queryMeta": { description: "Get docx metadata by id.", inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } } },
  • Input schema for the 'docx-queryMeta' tool: requires a string 'id'.
    inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } }
  • DocRegistry.queryMeta implementation: retrieves the managed document by id and returns its metadata (id, timestamps, and json.meta).
    queryMeta(id: DocId) { const cur = this.require(id); return { id: cur.id, createdAt: cur.createdAt, updatedAt: cur.updatedAt, meta: cur.json.meta ?? {} }; }

Other Tools

Related Tools

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/lihongjie0209/docx-mcp'

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