Skip to content

Commit 3e86c06

Browse files
authored
Merge pull request #56 from kellyaa/slack_tool
Minor fixes
2 parents d83432f + 676722e commit 3e86c06

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mcp/slack_tool/slack_tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def get_slack_client(access_token = None):
5555
@mcp.tool()
5656
def get_channels() -> List[Dict[str, Any]]:
5757
"""
58-
Lists all public and private channels the bot has access to.
59-
The docstring is crucial as it becomes the tool's description for the LLM.
58+
Lists all public and private slack channels you have access to.
6059
"""
6160
logger.debug(f"Called get_channels tool")
6261

@@ -101,7 +100,8 @@ def get_channel_history(channel_id: str, limit: int = 20) -> List:
101100
try:
102101
# Call the Slack API to list conversations the bot is part of.
103102
response = slack_client.conversations_history(
104-
channel=channel_id
103+
channel=channel_id,
104+
limit=limit
105105
)
106106
logger.debug(f"Successful get_channel_history call: {response}")
107107
return response.get("messages",)

0 commit comments

Comments
 (0)