Skip to main content
Glama

execute_agent

Activate and execute an AI agent with a defined goal to achieve specific tasks within the DollhouseMCP server, enabling dynamic persona management and goal-oriented actions.

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

  • Tool registration for 'execute_agent', including name, description, input schema, and handler function that 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) },
  • TypeScript interface defining the input arguments for the execute_agent tool
    interface ExecuteAgentArgs { name: string; goal: string; }
  • Interface declaration in IToolHandler for the executeAgent method invoked by the tool's handler
    executeAgent(name: string, goal: string): Promise<any>;
  • The registered handler function for the execute_agent tool, which calls the server's executeAgent method with parsed arguments
    handler: (args: ExecuteAgentArgs) => server.executeAgent(args.name, args.goal)

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

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