get_app_actions
Retrieve action schemas for apps to understand required inputs, outputs, and credit costs when building workflow steps in the Agentled MCP Server.
Instructions
Get detailed action schemas for a specific app. Returns input parameters, output fields, and credit costs. Use this to understand exactly what inputs an action needs when building workflow steps.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The app ID (e.g., "agentled", "hunter", "web-scraping", "affinity-crm") |
Implementation Reference
- src/tools/apps.ts:29-46 (registration)The tool 'get_app_actions' is registered here. It takes an appId as input and uses the AgentledClient to fetch actions.
server.tool( 'get_app_actions', `Get detailed action schemas for a specific app. Returns input parameters, output fields, and credit costs. Use this to understand exactly what inputs an action needs when building workflow steps.`, { appId: z.string().describe('The app ID (e.g., "agentled", "hunter", "web-scraping", "affinity-crm")'), }, async ({ appId }, extra) => { const client = clientFactory(extra); const result = await client.getAppActions(appId); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } ); - src/client.ts:256-258 (handler)The implementation of the logic called by the 'get_app_actions' tool, which performs an HTTP request to the API.
async getAppActions(appId: string) { return this.request(`/apps/${appId}/actions`); }