@@ -43,16 +43,7 @@ class CreateActionTool(Tool[CreateActionToolSchema]):
43
43
def __init__ (self , port_client : PortClient ):
44
44
super ().__init__ (
45
45
name = "create_action" ,
46
- description = """Create a new self-service action or automation in your Port account.
47
-
48
- IMPORTANT: When providing the invocationMethod, always provide it as a JSON object, NOT as a JSON string.
49
-
50
- Examples of correct invocationMethod formats:
51
- - WEBHOOK: {"type": "WEBHOOK", "url": "https://example.com/webhook", "method": "POST"}
52
- - GITHUB: {"type": "GITHUB", "org": "my-org", "repo": "my-repo", "workflow": "deploy.yml"}
53
- - GITLAB: {"type": "GITLAB", "projectName": "my-project", "groupName": "my-group", "agent": true}
54
-
55
- To learn more about actions and automations, check out the documentation at https://docs.port.io/actions-and-automations/""" ,
46
+ description = "Create a new self-service action." ,
56
47
function = self .create_action ,
57
48
input_schema = CreateActionToolSchema ,
58
49
output_schema = Action ,
@@ -75,4 +66,4 @@ async def create_action(self, props: CreateActionToolSchema) -> dict[str, Any]:
75
66
created_action = await self .port_client .create_action (action_data )
76
67
created_action_dict = created_action .model_dump (exclude_unset = True , exclude_none = True )
77
68
78
- return created_action_dict
69
+ return created_action_dict
0 commit comments