Skip to main content
Glama

test_app_action

Test app actions directly by providing app ID, action ID, and input data to verify functionality before integrating into workflows.

Instructions

Test an app action in isolation without creating a workflow or execution. Pass the appId and actionId (from list_apps / get_app_actions) plus input data to run the action directly and see results immediately. Useful for verifying inputs before wiring a step into a workflow. Example: test_app_action("web-scraping", "scrape", { url: "https://example.com" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdYesApp ID (e.g., "agentled", "web-scraping", "hunter")
actionIdYesAction ID (e.g., "scrape", "get-linkedin-company-from-url", "find-email-person-domain")
inputNoInput data for the action (e.g., { url: "https://example.com" })
bypassCacheNoSkip cache and run against the live API (default: false)

Implementation Reference

  • Registration of the 'test_app_action' tool within the McpServer, including description, schema definition, and the handler function calling the client.
        server.tool(
            'test_app_action',
            `Test an app action in isolation without creating a workflow or execution.
    Pass the appId and actionId (from list_apps / get_app_actions) plus input data to run the action directly and see results immediately.
    Useful for verifying inputs before wiring a step into a workflow.
    Example: test_app_action("web-scraping", "scrape", { url: "https://example.com" })`,
            {
                appId: z.string().describe('App ID (e.g., "agentled", "web-scraping", "hunter")'),
                actionId: z.string().describe('Action ID (e.g., "scrape", "get-linkedin-company-from-url", "find-email-person-domain")'),
                input: z.record(z.string(), z.any()).optional().describe('Input data for the action (e.g., { url: "https://example.com" })'),
                bypassCache: z.boolean().optional().describe('Skip cache and run against the live API (default: false)'),
            },
            async ({ appId, actionId, input, bypassCache }, extra) => {
                const client = clientFactory(extra);
                const result = await client.testAppAction(appId, actionId, input, bypassCache);
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
        );
  • The 'test_app_action' tool is registered using `server.tool` in `src/tools/testing.ts`.
        server.tool(
            'test_app_action',
            `Test an app action in isolation without creating a workflow or execution.
    Pass the appId and actionId (from list_apps / get_app_actions) plus input data to run the action directly and see results immediately.
    Useful for verifying inputs before wiring a step into a workflow.
    Example: test_app_action("web-scraping", "scrape", { url: "https://example.com" })`,
            {
                appId: z.string().describe('App ID (e.g., "agentled", "web-scraping", "hunter")'),
                actionId: z.string().describe('Action ID (e.g., "scrape", "get-linkedin-company-from-url", "find-email-person-domain")'),
                input: z.record(z.string(), z.any()).optional().describe('Input data for the action (e.g., { url: "https://example.com" })'),
                bypassCache: z.boolean().optional().describe('Skip cache and run against the live API (default: false)'),
            },
            async ({ appId, actionId, input, bypassCache }, extra) => {
                const client = clientFactory(extra);
                const result = await client.testAppAction(appId, actionId, input, bypassCache);
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
        );
  • The implementation of the 'testAppAction' method in AgentledClient, which sends a POST request to the '/step/test' API endpoint to execute the tool logic.
    async testAppAction(appId: string, actionId: string, input?: Record<string, any>, bypassCache?: boolean) {
        return this.request('/step/test', {
            method: 'POST',
            body: JSON.stringify({ appId, actionId, input, bypassCache }),
        });
    }
  • The handler for 'test_app_action' calls the 'testAppAction' method on the `AgentledClient` class.
    async ({ appId, actionId, input, bypassCache }, extra) => {
        const client = clientFactory(extra);
        const result = await client.testAppAction(appId, actionId, input, bypassCache);
        return {
            content: [{
                type: 'text' as const,
                text: JSON.stringify(result, null, 2),
            }],
        };
    }
  • The 'testAppAction' method in `AgentledClient` performs an HTTP POST request to '/step/test' to execute the action.
    async testAppAction(appId: string, actionId: string, input?: Record<string, any>, bypassCache?: boolean) {
        return this.request('/step/test', {
            method: 'POST',
            body: JSON.stringify({ appId, actionId, input, bypassCache }),
        });
    }
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool runs actions 'directly' and provides 'results immediately,' which adds behavioral context. However, it lacks details on permissions, rate limits, error handling, or whether it's read-only/destructive. The description doesn't contradict annotations (none exist), but could be more comprehensive for a testing tool.

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 front-loaded with the core purpose, followed by usage guidance and a concrete example. Every sentence adds value—no fluff or repetition. It efficiently communicates key information in three sentences, making it easy to scan and understand.

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

Completeness3/5

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

Given no annotations and no output schema, the description does well on purpose and usage but lacks details on behavioral aspects like error handling or output format. For a tool with 4 parameters and nested objects, it could benefit from more context on what 'results immediately' entails or potential side effects. It's adequate but has gaps in transparency.

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 already documents all parameters. The description adds minimal semantics: it mentions appId and actionId come from list_apps/get_app_actions and gives an example input format. This provides some context beyond the schema but doesn't deeply explain parameter interactions or constraints.

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 tool's purpose: 'Test an app action in isolation without creating a workflow or execution.' It specifies the verb ('test'), resource ('app action'), and distinguishes it from siblings like create_workflow or start_workflow by emphasizing isolation and immediate testing. The example reinforces this specificity.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool: 'Useful for verifying inputs before wiring a step into a workflow.' It differentiates from alternatives like create_workflow or start_workflow by focusing on pre-workflow testing. The mention of 'without creating a workflow or execution' further clarifies its distinct use case.

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

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