Skip to main content
Glama

getPageProperties

Retrieve structured metadata and configuration details for AEM pages by specifying the page path, enabling content management and automation workflows.

Instructions

Get page properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagePathYes

Implementation Reference

  • Core handler function that fetches page properties from AEM instance via HTTP GET to /jcr:content.json and formats structured response including title, template, modification dates, and all raw properties.
    async getPageProperties(pagePath: string): Promise<PagePropertiesResponse> { return safeExecute<PagePropertiesResponse>(async () => { const response = await this.httpClient.get(`${pagePath}/jcr:content.json`); const content = response.data; const properties = { title: content['jcr:title'], description: content['jcr:description'], template: content['cq:template'], lastModified: content['cq:lastModified'], lastModifiedBy: content['cq:lastModifiedBy'], created: content['jcr:created'], createdBy: content['jcr:createdBy'], primaryType: content['jcr:primaryType'], resourceType: content['sling:resourceType'], tags: content['cq:tags'] || [], properties: content, }; return createSuccessResponse({ pagePath, properties }, 'getPageProperties') as PagePropertiesResponse; }, 'getPageProperties'); }
  • Tool registration in MCP server including name, description, and input schema validation requiring pagePath parameter.
    name: 'getPageProperties', description: 'Get page properties', inputSchema: { type: 'object', properties: { pagePath: { type: 'string' } }, required: ['pagePath'], }, },
  • MCP server CallToolRequest handler that dispatches getPageProperties call to AEM connector and formats JSON response.
    case 'getPageProperties': { const pagePath = (args as { pagePath: string }).pagePath; const result = await aemConnector.getPageProperties(pagePath); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • TypeScript interface defining the output structure of getPageProperties response.
    export interface PagePropertiesResponse extends BaseResponse { data: { pagePath: string; properties: { title?: string; description?: string; template?: string; lastModified?: string; lastModifiedBy?: string; created?: string; createdBy?: string; primaryType?: string; resourceType?: string; tags?: string[]; properties: Record<string, unknown>; }; }; }
  • Wrapper method in AEMConnector that delegates getPageProperties to the PageOperations module.
    async getPageProperties(pagePath: string) { return this.pageOps.getPageProperties(pagePath);

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