Skip to content

Commit e908874

Browse files
authored
Update create_action.py
1 parent a86dd1c commit e908874

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/tools/action/create_action.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,7 @@ class CreateActionTool(Tool[CreateActionToolSchema]):
4343
def __init__(self, port_client: PortClient):
4444
super().__init__(
4545
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.",
5647
function=self.create_action,
5748
input_schema=CreateActionToolSchema,
5849
output_schema=Action,
@@ -75,4 +66,4 @@ async def create_action(self, props: CreateActionToolSchema) -> dict[str, Any]:
7566
created_action = await self.port_client.create_action(action_data)
7667
created_action_dict = created_action.model_dump(exclude_unset=True, exclude_none=True)
7768

78-
return created_action_dict
69+
return created_action_dict

0 commit comments

Comments
 (0)