Skip to main content
Glama
DollhouseMCP

DollhouseMCP

Official

search_all

Search across local, GitHub, and community collections for personas, skills, templates, and other elements with unified results, duplicate detection, and version comparison.

Instructions

Search across all available sources (local portfolio, GitHub portfolio, and collection) for elements. This provides unified search with duplicate detection and version comparison across all three tiers of the DollhouseMCP ecosystem.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query. Can match element names, keywords, tags, triggers, or descriptions across all sources.
sourcesNoSources to search. Defaults to ['local', 'github']. Include 'collection' to search the community collection.
typeNoLimit search to specific element type. If not specified, searches all types.
pageNoPage number for pagination (1-based). Defaults to 1.
page_sizeNoNumber of results per page. Defaults to 20.
sort_byNoSort results by criteria. Defaults to 'relevance'.

Implementation Reference

  • The handler function that executes the 'search_all' tool logic by mapping input arguments to the server's searchAll method.
    handler: (args: SearchAllArgs) => server.searchAll({
      query: args.query,
      sources: args.sources,
      elementType: args.type as any,
      page: args.page,
      pageSize: args.page_size,
      sortBy: args.sort_by as any
    })
  • The input schema defining parameters, types, descriptions, and requirements for the 'search_all' tool.
    inputSchema: {
      type: "object",
      properties: {
        query: {
          type: "string",
          description: "Search query. Can match element names, keywords, tags, triggers, or descriptions across all sources.",
        },
        sources: {
          type: "array",
          items: {
            type: "string",
            enum: ["local", "github", "collection"]
          },
          description: "Sources to search. Defaults to ['local', 'github']. Include 'collection' to search the community collection.",
        },
        type: {
          type: "string",
          enum: ["personas", "skills", "templates", "agents", "memories", "ensembles"],
          description: "Limit search to specific element type. If not specified, searches all types.",
        },
        page: {
          type: "number",
          description: "Page number for pagination (1-based). Defaults to 1.",
        },
        page_size: {
          type: "number",
          description: "Number of results per page. Defaults to 20.",
        },
        sort_by: {
          type: "string",
          enum: ["relevance", "source", "name", "version"],
          description: "Sort results by criteria. Defaults to 'relevance'.",
        },
      },
      required: ["query"],
    },
  • The call that registers all portfolio tools, including 'search_all', into the ToolRegistry.
    this.toolRegistry.registerMany(getPortfolioTools(instance));
  • TypeScript interface defining the argument shape for the 'search_all' handler.
    interface SearchAllArgs {
      query: string;
      sources?: string[];
      type?: string;
      page?: number;
      page_size?: number;
      sort_by?: 'relevance' | 'source' | 'name' | 'version';
    }
  • The tool definition object for 'search_all' returned by getPortfolioTools for registration, including name, description, schema, and handler.
      {
        tool: {
          name: "search_all",
          description: "Search across all available sources (local portfolio, GitHub portfolio, and collection) for elements. This provides unified search with duplicate detection and version comparison across all three tiers of the DollhouseMCP ecosystem.",
          inputSchema: {
            type: "object",
            properties: {
              query: {
                type: "string",
                description: "Search query. Can match element names, keywords, tags, triggers, or descriptions across all sources.",
              },
              sources: {
                type: "array",
                items: {
                  type: "string",
                  enum: ["local", "github", "collection"]
                },
                description: "Sources to search. Defaults to ['local', 'github']. Include 'collection' to search the community collection.",
              },
              type: {
                type: "string",
                enum: ["personas", "skills", "templates", "agents", "memories", "ensembles"],
                description: "Limit search to specific element type. If not specified, searches all types.",
              },
              page: {
                type: "number",
                description: "Page number for pagination (1-based). Defaults to 1.",
              },
              page_size: {
                type: "number",
                description: "Number of results per page. Defaults to 20.",
              },
              sort_by: {
                type: "string",
                enum: ["relevance", "source", "name", "version"],
                description: "Sort results by criteria. Defaults to 'relevance'.",
              },
            },
            required: ["query"],
          },
        },
        handler: (args: SearchAllArgs) => server.searchAll({
          query: args.query,
          sources: args.sources,
          elementType: args.type as any,
          page: args.page,
          pageSize: args.page_size,
          sortBy: args.sort_by as any
        })
      }
    ];
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: 'unified search with duplicate detection and version comparison,' which adds value beyond basic search functionality. However, it lacks details on permissions, rate limits, error handling, or response format, leaving gaps for a mutation-free but complex operation.

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 two sentences, front-loaded with the core purpose and followed by additional context. Every sentence earns its place by specifying sources and behavioral traits without redundancy, making it efficient and well-structured.

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

Completeness4/5

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

Given the tool's complexity (6 parameters, no output schema) and lack of annotations, the description is mostly complete for a search operation. It covers purpose, scope, and key behaviors like duplicate detection. However, it doesn't explain return values or result formatting, which could aid the agent, slightly reducing completeness.

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?

Schema description coverage is 100%, so the schema fully documents all 6 parameters. The description adds no specific parameter semantics beyond implying a broad 'query' scope. It meets the baseline of 3 by not repeating schema info, but doesn't compensate with extra insights like query syntax examples or source prioritization.

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

Purpose5/5

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

The description clearly states the verb ('Search across') and resource ('all available sources') with specific scope ('local portfolio, GitHub portfolio, and collection'). It distinguishes from siblings by emphasizing 'unified search with duplicate detection and version comparison across all three tiers,' differentiating it from more targeted search tools like search_portfolio or search_collection.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('Search across all available sources') and implies alternatives by mentioning 'all three tiers,' suggesting it's for comprehensive searches. However, it doesn't explicitly state when not to use it or name specific alternative tools like search_portfolio for narrower searches, which prevents a perfect score.

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

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