Skip to main content
Glama

tools_run

Execute statistical analysis tools to generate interactive HTML reports from business data sources like Shopify, Stripe, and Google Analytics.

Instructions

Execute an analysis tool. Returns a shareable interactive HTML report URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tool_nameYesName of the tool to execute
taskListYesContains inputs: dataset, userContext, column_mapping, module_parameters

Implementation Reference

  • The server.setRequestHandler(CallToolRequestSchema, ...) handler intercepts tool execution requests (including "tools_run" if that is a valid tool name in the remote catalog) and proxies them to the remote MCP server via the `remoteClient.callTool` call.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      try {
        const result = await remoteClient.callTool({
          name: request.params.name,
          arguments: request.params.arguments || {},
        });
        return result;
      } catch (err) {
        return {
          content: [{ type: "text", text: `Error: ${err.message}` }],
          isError: true,
        };
      }
    });

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/embeddedlayers/mcp-analytics'

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