{
  "$schema": "../../src/testing/test-schema.ts",
  "profile_name": "n8n-optimized",
  "variables": {
    "id": "id-123",
    "projectId": "project-123",
    "destinationProjectId": "project-456",
    "userId": "user-123",
    "versionId": "version-123",
    "credentialTypeName": "n8nApi",
    "name": "test-name",
    "type": "test-type",
    "key": "test-key",
    "value": "test-value",
    "createdAt": "2024-01-01T00:00:00Z",
    "updatedAt": "2024-01-02T00:00:00Z",
    "tagId": "tag-123",
    "tagName": "Production"
  },
  "scenarios": [
    {
      "name": "retrieve_n8n - get_credential_schema",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_credential_schema",
        "credentialTypeName": "{{credentialTypeName}}"
      },
      "mocks": [
        {
          "operationId": "get_/credentials/schema/{credentialTypeName}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/credentials/schema/{{credentialTypeName}}"
        }
      }
    },
    {
      "name": "retrieve_n8n - list_executions",
      "tool": "retrieve_content",
      "arguments": {
        "action": "list_executions"
      },
      "mocks": [
        {
          "operationId": "get_/executions",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/executions"
        }
      }
    },
    {
      "name": "retrieve_n8n - get_execution",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_execution",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "get_/executions/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/executions/{{id}}"
        }
      }
    },
    {
      "name": "retrieve_n8n - list_projects",
      "tool": "retrieve_content",
      "arguments": {
        "action": "list_projects"
      },
      "mocks": [
        {
          "operationId": "get_/projects",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/projects"
        }
      }
    },
    {
      "name": "retrieve_n8n - list_tags",
      "tool": "retrieve_content",
      "arguments": {
        "action": "list_tags"
      },
      "mocks": [
        {
          "operationId": "get_/tags",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/tags"
        }
      }
    },
    {
      "name": "retrieve_n8n - get_tag",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_tag",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "get_/tags/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/tags/{{id}}"
        }
      }
    },
    {
      "name": "retrieve_n8n - list_users",
      "tool": "retrieve_content",
      "arguments": {
        "action": "list_users"
      },
      "mocks": [
        {
          "operationId": "get_/users",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/users"
        }
      }
    },
    {
      "name": "retrieve_n8n - get_user",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_user",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "get_/users/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/users/{{id}}"
        }
      }
    },
    {
      "name": "retrieve_n8n - list_variables",
      "tool": "retrieve_content",
      "arguments": {
        "action": "list_variables"
      },
      "mocks": [
        {
          "operationId": "get_/variables",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/variables"
        }
      }
    },
    {
      "name": "retrieve_n8n - list_workflows",
      "tool": "retrieve_content",
      "arguments": {
        "action": "list_workflows"
      },
      "mocks": [
        {
          "operationId": "get_/workflows",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/workflows"
        }
      }
    },
    {
      "name": "retrieve_n8n - get_workflow",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_workflow",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "get_/workflows/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/workflows/{{id}}"
        }
      }
    },
    {
      "name": "retrieve_n8n - get_workflow_version",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_workflow_version",
        "id": "{{id}}",
        "versionId": "{{versionId}}"
      },
      "mocks": [
        {
          "operationId": "get_/workflows/{id}/{versionId}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/workflows/{{id}}/{{versionId}}"
        }
      }
    },
    {
      "name": "retrieve_n8n - get_workflow_tags",
      "tool": "retrieve_content",
      "arguments": {
        "action": "get_workflow_tags",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "get_/workflows/{id}/tags",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "GET",
          "path": "/workflows/{{id}}/tags"
        }
      }
    },
    {
      "name": "modify_n8n - generate_audit",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "generate_audit"
      },
      "mocks": [
        {
          "operationId": "post_/audit",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/audit"
        }
      }
    },
    {
      "name": "modify_n8n - create_credential",
      "tool": "create_content",
      "arguments": {
        "action": "create_credential",
        "name": "{{name}}",
        "type": "{{type}}",
        "data": {
          "token": "secret"
        }
      },
      "mocks": [
        {
          "operationId": "post_/credentials",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/credentials"
        }
      }
    },
    {
      "name": "modify_n8n - update_credential",
      "tool": "update_content",
      "arguments": {
        "action": "update_credential",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "updateCredential",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PATCH",
          "path": "/credentials/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - delete_credential",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_credential",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "deleteCredential",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/credentials/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - transfer_credential",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "transfer_credential",
        "id": "{{id}}",
        "destinationProjectId": "{{destinationProjectId}}"
      },
      "mocks": [
        {
          "operationId": "put_/credentials/{id}/transfer",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/credentials/{{id}}/transfer"
        }
      }
    },
    {
      "name": "modify_n8n - delete_execution",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_execution",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "delete_/executions/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/executions/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - retry_execution",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "retry_execution",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "post_/executions/{id}/retry",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/executions/{{id}}/retry"
        }
      }
    },
    {
      "name": "modify_n8n - create_project",
      "tool": "create_content",
      "arguments": {
        "action": "create_project",
        "name": "{{name}}"
      },
      "mocks": [
        {
          "operationId": "post_/projects",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/projects"
        }
      }
    },
    {
      "name": "modify_n8n - update_project",
      "tool": "update_content",
      "arguments": {
        "action": "update_project",
        "name": "{{name}}",
        "projectId": "{{projectId}}"
      },
      "mocks": [
        {
          "operationId": "put_/projects/{projectId}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/projects/{{projectId}}"
        }
      }
    },
    {
      "name": "modify_n8n - delete_project",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_project",
        "projectId": "{{projectId}}"
      },
      "mocks": [
        {
          "operationId": "delete_/projects/{projectId}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/projects/{{projectId}}"
        }
      }
    },
    {
      "name": "modify_n8n - add_project_users",
      "tool": "create_content",
      "arguments": {
        "action": "add_project_users",
        "projectId": "{{projectId}}",
        "relations": [
          {
            "userId": "{{userId}}",
            "role": "project:viewer"
          }
        ]
      },
      "mocks": [
        {
          "operationId": "post_/projects/{projectId}/users",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/projects/{{projectId}}/users"
        }
      }
    },
    {
      "name": "modify_n8n - remove_project_user",
      "tool": "delete_content",
      "arguments": {
        "action": "remove_project_user",
        "projectId": "{{projectId}}",
        "userId": "{{userId}}"
      },
      "mocks": [
        {
          "operationId": "delete_/projects/{projectId}/users/{userId}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/projects/{{projectId}}/users/{{userId}}"
        }
      }
    },
    {
      "name": "modify_n8n - update_project_user_role",
      "tool": "update_content",
      "arguments": {
        "action": "update_project_user_role",
        "projectId": "{{projectId}}",
        "userId": "{{userId}}",
        "role": "project:viewer"
      },
      "mocks": [
        {
          "operationId": "patch_/projects/{projectId}/users/{userId}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PATCH",
          "path": "/projects/{{projectId}}/users/{{userId}}"
        }
      }
    },
    {
      "name": "modify_n8n - pull_source_control",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "pull_source_control"
      },
      "mocks": [
        {
          "operationId": "post_/source-control/pull",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/source-control/pull"
        }
      }
    },
    {
      "name": "modify_n8n - create_tag",
      "tool": "create_content",
      "arguments": {
        "action": "create_tag",
        "name": "{{name}}"
      },
      "mocks": [
        {
          "operationId": "post_/tags",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/tags"
        }
      }
    },
    {
      "name": "modify_n8n - update_tag",
      "tool": "update_content",
      "arguments": {
        "action": "update_tag",
        "id": "{{id}}",
        "name": "{{name}}"
      },
      "mocks": [
        {
          "operationId": "put_/tags/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/tags/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - delete_tag",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_tag",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "delete_/tags/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/tags/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - create_users",
      "tool": "create_content",
      "arguments": {
        "action": "create_users",
        "users": [
          {
            "email": "user1@example.com",
            "role": "global:member"
          }
        ]
      },
      "mocks": [
        {
          "operationId": "post_/users",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/users"
        }
      }
    },
    {
      "name": "modify_n8n - delete_user",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_user",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "delete_/users/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/users/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - update_user_role",
      "tool": "update_content",
      "arguments": {
        "action": "update_user_role",
        "id": "{{id}}",
        "userId": "{{userId}}",
        "role": "project:viewer",
        "newRoleName": "global:member"
      },
      "mocks": [
        {
          "operationId": "patch_/users/{id}/role",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PATCH",
          "path": "/users/{{id}}/role"
        }
      }
    },
    {
      "name": "modify_n8n - create_variable",
      "tool": "create_content",
      "arguments": {
        "action": "create_variable",
        "key": "{{key}}",
        "value": "{{value}}"
      },
      "mocks": [
        {
          "operationId": "post_/variables",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/variables"
        }
      }
    },
    {
      "name": "modify_n8n - update_variable",
      "tool": "update_content",
      "arguments": {
        "action": "update_variable",
        "id": "{{id}}",
        "key": "{{key}}",
        "value": "{{value}}"
      },
      "mocks": [
        {
          "operationId": "put_/variables/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/variables/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - delete_variable",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_variable",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "delete_/variables/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/variables/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - create_workflow",
      "tool": "create_content",
      "arguments": {
        "action": "create_workflow",
        "name": "{{name}}",
        "nodes": [
          {
            "id": "node-1",
            "name": "Start",
            "type": "n8n-nodes-base.start",
            "typeVersion": 1,
            "position": [
              0,
              0
            ]
          }
        ],
        "connections": {},
        "settings": {
          "timezone": "UTC",
          "executionTimeout": 3600
        }
      },
      "mocks": [
        {
          "operationId": "post_/workflows",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/workflows"
        }
      }
    },
    {
      "name": "modify_n8n - update_workflow",
      "tool": "update_content",
      "arguments": {
        "action": "update_workflow",
        "id": "{{id}}",
        "name": "{{name}}",
        "nodes": [
          {
            "id": "node-1",
            "name": "Start",
            "type": "n8n-nodes-base.start",
            "typeVersion": 1,
            "position": [
              0,
              0
            ]
          }
        ],
        "connections": {},
        "settings": {
          "timezone": "UTC",
          "executionTimeout": 3600
        }
      },
      "mocks": [
        {
          "operationId": "put_/workflows/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/workflows/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - delete_workflow",
      "tool": "delete_content",
      "arguments": {
        "action": "delete_workflow",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "delete_/workflows/{id}",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "DELETE",
          "path": "/workflows/{{id}}"
        }
      }
    },
    {
      "name": "modify_n8n - activate_workflow",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "activate_workflow",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "post_/workflows/{id}/activate",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/workflows/{{id}}/activate"
        }
      }
    },
    {
      "name": "modify_n8n - deactivate_workflow",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "deactivate_workflow",
        "id": "{{id}}"
      },
      "mocks": [
        {
          "operationId": "post_/workflows/{id}/deactivate",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "POST",
          "path": "/workflows/{{id}}/deactivate"
        }
      }
    },
    {
      "name": "modify_n8n - update_workflow_tags",
      "tool": "update_content",
      "arguments": {
        "action": "update_workflow_tags",
        "id": "{{id}}",
        "tag_ids": [
          {
            "id": "{{tagId}}"
          }
        ]
      },
      "mocks": [
        {
          "operationId": "put_/workflows/{id}/tags",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/workflows/{{id}}/tags"
        }
      }
    },
    {
      "name": "modify_n8n - transfer_workflow",
      "tool": "run_n8n_operations",
      "arguments": {
        "action": "transfer_workflow",
        "id": "{{id}}",
        "destinationProjectId": "{{destinationProjectId}}"
      },
      "mocks": [
        {
          "operationId": "put_/workflows/{id}/transfer",
          "response": {
            "body": {}
          }
        }
      ],
      "expect": {
        "success": true,
        "request": {
          "method": "PUT",
          "path": "/workflows/{{id}}/transfer"
        }
      }
    }
  ],
  "coverage": {
    "require_all_actions": true,
    "skip_actions": {},
    "require_request_assertions": true,
    "skip_request_assertions": {}
  }
}
