Skip to main content
Glama

getPageContent

Retrieve complete page content including Experience Fragments and Content Fragments from Adobe Experience Manager for content management and automation workflows.

Instructions

Get all content from a page including Experience Fragments and Content Fragments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagePathYes

Implementation Reference

  • Core implementation of the getPageContent tool. Fetches complete page content (including Experience Fragments and Content Fragments) from AEM using the .infinity.json endpoint and returns it wrapped in a standardized response.
    async getPageContent(pagePath: string): Promise<PageContentResponse> {
      return safeExecute<PageContentResponse>(async () => {
        const response = await this.httpClient.get(`${pagePath}.infinity.json`);
        return createSuccessResponse({
          pagePath,
          content: response.data,
        }, 'getPageContent') as PageContentResponse;
      }, 'getPageContent');
    }
  • MCP tool registration entry defining the name, description, and input schema for getPageContent.
    name: 'getPageContent',
    description: 'Get all content from a page including Experience Fragments and Content Fragments',
    inputSchema: {
      type: 'object',
      properties: { pagePath: { type: 'string' } },
      required: ['pagePath'],
    },
  • MCP server request handler case that extracts pagePath argument and delegates execution to AEMConnector.getPageContent, formatting the result as MCP content response.
    case 'getPageContent': {
      const pagePath = (args as { pagePath: string }).pagePath;
      const result = await aemConnector.getPageContent(pagePath);
      return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
  • Delegation handler in AEMConnector that routes getPageContent calls to the PageOperations module.
    async getPageContent(pagePath: string) {
      return this.pageOps.getPageContent(pagePath);
    }
  • Alternative handler in MCPRequestHandler class (possibly for legacy or alternative usage) that delegates to AEMConnector.
    case 'getPageContent':
      return await this.aemConnector.getPageContent(params.pagePath);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden but only states what is retrieved, not behavioral aspects like permissions needed, rate limits, response format, or whether it's a read-only operation. It lacks critical context for safe invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words, clearly front-loading the core functionality. It's appropriately sized for the tool's apparent simplicity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and low schema coverage, the description is incomplete. It doesn't address return values, error conditions, or behavioral traits, leaving significant gaps for a tool that likely returns complex content.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, but the description adds no parameter details beyond implying 'pagePath' is needed. It doesn't explain what a pagePath is, its format, or constraints. Baseline 3 is appropriate as the single parameter is straightforward, but minimal value is added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and resource 'content from a page', specifying it includes 'Experience Fragments and Content Fragments'. This distinguishes it from sibling tools like getPageTextContent (text only) or getPageProperties (properties only), though it doesn't explicitly contrast with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like getAllTextContent, getPageTextContent, or getNodeContent. The description implies comprehensive content retrieval but doesn't specify use cases or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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