Skip to main content
Glama

getAssetMetadata

Retrieve metadata for digital assets stored in Adobe Experience Manager to access file details and properties for content management workflows.

Instructions

Get asset metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetPathYes

Implementation Reference

  • Core handler function implementing the getAssetMetadata tool logic: performs HTTP GET to the asset's .json endpoint, extracts metadata from jcr:content, and returns a formatted success response.
    async getAssetMetadata(assetPath) { return safeExecute(async () => { const response = await this.httpClient.get(`${assetPath}.json`); const metadata = response.data['jcr:content']?.metadata || {}; return createSuccessResponse({ assetPath, metadata, fullData: response.data, }, 'getAssetMetadata'); }, 'getAssetMetadata'); }
  • MCP server request handler dispatch case for getAssetMetadata tool, extracting assetPath from args and delegating to AEM connector.
    case 'getAssetMetadata': { const assetPath = args.assetPath; const result = await aemConnector.getAssetMetadata(assetPath); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
  • Tool registration in MCP tools list including name, description, and input schema requiring 'assetPath' string.
    name: 'getAssetMetadata', description: 'Get asset metadata', inputSchema: { type: 'object', properties: { assetPath: { type: 'string' } }, required: ['assetPath'], }, },
  • AEM connector wrapper method delegating getAssetMetadata call to underlying assetOps instance.
    async getAssetMetadata(assetPath) { return this.assetOps.getAssetMetadata(assetPath);
  • Alternative tool method registration in MCP handler's available methods list.
    { name: 'getAssetMetadata', description: 'Get asset metadata', parameters: ['assetPath'] },

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/indrasishbanerjee/aem-mcp-server'

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