Skip to main content
Glama
peximo
by peximo

search_content

Search Drupal content by title across all content types when you don't know the specific type. Find relevant content quickly with this cross-type search tool.

Instructions

Search across all content types by title. Useful when you don't know the specific content type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchTermYesThe text to search for in content titles
limitNoMaximum number of results (default: 10)

Implementation Reference

  • The handler implementation that searches across all content types by querying them individually and aggregating the results.
    async searchContent(searchTerm, limit = 10) {
        try {
            // Get all content types first
            const contentTypes = await this.listContentTypes();
            // Search in each content type and combine results
            const allResults = [];
            for (const type of contentTypes) {
                try {
                    const results = await this.queryContent(type.id, {
                        title: searchTerm,
                        limit: Math.ceil(limit / contentTypes.length),
                        status: true,
                    });
                    allResults.push(...results);
                }
                catch (error) {
                    // Skip types that error (might not have permission)
                    continue;
                }
            }
            return allResults.slice(0, limit);
        }
        catch (error) {
  • src/index.js:82-93 (registration)
    The MCP tool registration for `search_content` in index.js, defining its description and input schema.
    {
        name: 'search_content',
        description: 'Search across all content types by title. Useful when you don\'t know the specific content type.',
        inputSchema: {
            type: 'object',
            properties: {
                searchTerm: {
                    type: 'string',
                    description: 'The text to search for in content titles',
                },
                limit: {
                    type: 'number',

Tool Definition Quality

Score is being calculated. Check back soon.

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/peximo/drupal-mcp-server'

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