Skip to main content
Glama

searchContent

Find content in Adobe Experience Manager using Query Builder with filters for type, text, path, and result limits.

Instructions

Search content using Query Builder

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo
fulltextNo
pathNo
limitNo

Implementation Reference

  • Core handler function that executes the tool logic: sends QueryBuilder params to AEM query endpoint via HTTP GET, extracts hits and totalMatches, wraps in standardized SearchResponse using safeExecute and createSuccessResponse.
    async searchContent(params: SearchContentParams): Promise<SearchResponse> { return safeExecute<SearchResponse>(async () => { const response = await this.httpClient.get(this.config.endpoints.query, { params }); return createSuccessResponse({ params, results: response.data.hits || [], total: response.data.total || 0, rawResponse: response.data, }, 'searchContent') as SearchResponse; }, 'searchContent'); }
  • MCP JSON Schema definition for the searchContent tool input parameters, used for tool discovery and validation.
    { name: 'searchContent', description: 'Search content using Query Builder', inputSchema: { type: 'object', properties: { type: { type: 'string' }, fulltext: { type: 'string' }, path: { type: 'string' }, limit: { type: 'number' }, }, }, },
  • TypeScript interface defining the expected input parameters for the searchContent method.
    export interface SearchContentParams { type?: string; fulltext?: string; path?: string; limit?: number; }
  • MCP server registration for ListToolsRequest, returning the tools array that includes searchContent.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
  • MCP server tool call handler dispatch for searchContent, invoking the connector and formatting JSON response.
    case 'searchContent': { const result = await aemConnector.searchContent(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }

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