Skip to main content
Glama

run_scenario_2361

Test dynamic connections in Make automation workflows. Execute and validate scenario 2361 to ensure seamless integration and functionality within AI-triggered systems.

Instructions

Dynamic Connections Testing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
AirtableConnectionNo

Implementation Reference

  • Dynamic handler for all run_scenario_* tools (including run_scenario_2361). Extracts scenario ID from tool name, executes the scenario via make.scenarios.run, and returns JSON output or error message.
    server.setRequestHandler(CallToolRequestSchema, async request => {
        if (/^run_scenario_\d+$/.test(request.params.name)) {
            try {
                const output = (
                    await make.scenarios.run(parseInt(request.params.name.substring(13)), request.params.arguments)
                ).outputs;
    
                return {
                    content: [
                        {
                            type: 'text',
                            text: output ? JSON.stringify(output, null, 2) : 'Scenario executed successfully.',
                        },
                    ],
                };
            } catch (err: unknown) {
                return {
                    isError: true,
                    content: [
                        {
                            type: 'text',
                            text: String(err),
                        },
                    ],
                };
            }
        }
        throw new Error(`Unknown tool: ${request.params.name}`);
    });
  • src/index.ts:37-57 (registration)
    Dynamic tool registration: lists on-demand scenarios from Make API, generates a tool named run_scenario_${scenario.id} (e.g., run_scenario_2361 for ID 2361) with description and inputSchema.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
        const scenarios = await make.scenarios.list(teamId);
        return {
            tools: await Promise.all(
                scenarios
                    .filter(scenario => scenario.scheduling.type === 'on-demand')
                    .map(async scenario => {
                        const inputs = (await make.scenarios.interface(scenario.id)).input;
                        return {
                            name: `run_scenario_${scenario.id}`,
                            description: scenario.name + (scenario.description ? ` (${scenario.description})` : ''),
                            inputSchema: remap({
                                name: 'wrapper',
                                type: 'collection',
                                spec: inputs,
                            }),
                        };
                    }),
            ),
        };
    });
  • Core execution logic: POSTs to Make API /scenarios/${scenarioId}/run endpoint with input arguments to run the scenario.
        async run(scenarioId: number, body: unknown): Promise<ScenarioRunServerResponse> {
            return await this.#fetch<ScenarioRunServerResponse>(`/scenarios/${scenarioId}/run`, {
                method: 'POST',
                body: JSON.stringify({ data: body, responsive: true }),
                headers: {
                    'content-type': 'application/json',
                },
            });
        }
    }
  • Converts Make scenario input specification (nested objects, arrays, selects, primitives) to JSON Schema object for the tool's inputSchema.
    export function remap(field: Input): unknown {
        switch (field.type) {
            case 'collection':
                const required: string[] = [];
                const properties: unknown = (Array.isArray(field.spec) ? field.spec : []).reduce((object, subField) => {
                    if (!subField.name) return object;
                    if (subField.required) required.push(subField.name);
    
                    return Object.defineProperty(object, subField.name, {
                        enumerable: true,
                        value: remap(subField),
                    });
                }, {});
    
                return {
                    type: 'object',
                    description: noEmpty(field.help),
                    properties,
                    required,
                };
            case 'array':
                return {
                    type: 'array',
                    description: noEmpty(field.help),
                    items:
                        field.spec &&
                        remap(
                            Array.isArray(field.spec)
                                ? {
                                      type: 'collection',
                                      spec: field.spec,
                                  }
                                : field.spec,
                        ),
                };
            case 'select':
                return {
                    type: 'string',
                    description: noEmpty(field.help),
                    enum: (field.options || []).map(option => option.value),
                };
            default:
                return {
                    type: PRIMITIVE_TYPE_MAP[field.type as keyof typeof PRIMITIVE_TYPE_MAP],
                    default: field.default != '' && field.default != null ? field.default : undefined,
                    description: noEmpty(field.help),
                };
        }
    }
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but fails completely. 'Dynamic Connections Testing' gives no indication of whether this is a read or write operation, what side effects it might have, what permissions are required, or what the expected behavior is. The agent has no way to understand what actually happens when this tool is invoked.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise (two words) but this brevity comes at the cost of meaningful information. While it's technically 'front-loaded' (there's only one phrase), it's so underspecified that it fails to communicate essential information about the tool's purpose and usage.

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

Completeness1/5

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

Given a tool with 1 undocumented parameter, no annotations, no output schema, and five similar sibling tools, the description is completely inadequate. It provides no meaningful context about what the tool does, how to use it, what parameters mean, or how it differs from alternatives. This leaves the agent unable to make informed decisions about tool selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 1 parameter (AirtableConnection) with 0% description coverage, meaning the schema provides no documentation about this parameter. The description 'Dynamic Connections Testing' adds absolutely no information about what the AirtableConnection parameter represents, what format it expects, or how it relates to the testing operation.

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

Purpose2/5

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

The description 'Dynamic Connections Testing' is vague and tautological - it essentially restates the tool name 'run_scenario_2361' in different words without specifying what action is performed or what resource is affected. It doesn't distinguish this tool from its five sibling 'run_scenario_*' tools, all of which presumably also involve some form of scenario testing.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance about when to use this tool versus the five sibling tools (run_scenario_11422, run_scenario_11652, etc.). There's no indication of what makes scenario 2361 different from other scenarios, nor any context about appropriate use cases or prerequisites.

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

Related 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/integromat/make-mcp-server'

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