Skip to main content
Glama

docx-queryMeta

Extract metadata from Word documents by document ID to access document properties and information.

Instructions

Get docx metadata by id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • MCP tool dispatch handler for docx-queryMeta: parses input arguments and delegates to DocRegistry.queryMeta
    case "docx-queryMeta": {
      const { id } = parseArgs<{ id: string }>(args, tools["docx-queryMeta"].inputSchema);
      return ok(registry.queryMeta(id));
    }
  • Core implementation of queryMeta in DocRegistry: retrieves and returns document metadata including id, timestamps, and meta object
    queryMeta(id: DocId) {
      const cur = this.require(id);
      return {
        id: cur.id,
        createdAt: cur.createdAt,
        updatedAt: cur.updatedAt,
        meta: cur.json.meta ?? {}
      };
    }
  • Input schema definition and tool registration entry for docx-queryMeta in the tools object used for MCP listTools and validation
    "docx-queryMeta": {
      description: "Get docx metadata by id.",
      inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } }
    },

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