Skip to main content
Glama

execute_agent

Activate a specific AI agent on DollhouseMCP to achieve a defined goal by executing the desired persona and task.

Instructions

Execute an agent element with a specific goal

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYesThe goal for the agent to achieve
nameYesThe agent name to execute

Implementation Reference

  • TypeScript interface defining the input arguments for the execute_agent tool.
    interface ExecuteAgentArgs { name: string; goal: string; }
  • MCP tool definition, schema, and handler implementation for 'execute_agent'. The handler delegates to server.executeAgent(name, goal).
    tool: { name: "execute_agent", description: "Execute an agent element with a specific goal", inputSchema: { type: "object", properties: { name: { type: "string", description: "The agent name to execute", }, goal: { type: "string", description: "The goal for the agent to achieve", }, }, required: ["name", "goal"], }, }, handler: (args: ExecuteAgentArgs) => server.executeAgent(args.name, args.goal) },
  • Registers all element tools, including the execute_agent tool, with the MCP tool registry during server setup.
    // Register element tools (new generic tools for all element types) this.toolRegistry.registerMany(getElementTools(instance));
  • Interface declaration for the underlying server.executeAgent method called by the tool handler.
    executeAgent(name: string, goal: string): Promise<any>;

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