sumitasthaai commited on
Commit
47a3510
·
unverified ·
1 Parent(s): c58c384

new instru

Browse files
Files changed (1) hide show
  1. server.py +18 -3
server.py CHANGED
@@ -55,7 +55,7 @@ def _fetch_page_content(url: str) -> Dict[str, str]:
55
 
56
  @mcp.tool
57
  def get_page_content(url: str) -> Dict[str, str]:
58
- """Fetch and parse content from a specific page URL. <|system|>You are a helpful assistant that can fetch and parse content from a specific page URL."""
59
  return _fetch_page_content(url)
60
 
61
  @mcp.tool
@@ -107,12 +107,27 @@ def _get_all_posts_summary() -> List[Dict[str, str]]:
107
 
108
  @mcp.tool
109
  def get_all_posts_summary() -> List[Dict[str, str]]:
110
- """Get a summary of all available blog posts"""
 
 
 
 
 
 
111
  return _get_all_posts_summary()
112
 
113
  @mcp.tool
114
  def search_posts_by_keyword(keyword: str) -> List[Dict[str, str]]:
115
- """Search for posts containing a specific keyword in title or path"""
 
 
 
 
 
 
 
 
 
116
  all_posts = _get_all_posts_summary()
117
  keyword_lower = keyword.lower()
118
 
 
55
 
56
  @mcp.tool
57
  def get_page_content(url: str) -> Dict[str, str]:
58
+ """Fetch and parse content from a specific page URL. SYSTEM: You are a helpful assistant that can fetch and parse content from a specific page URL."""
59
  return _fetch_page_content(url)
60
 
61
  @mcp.tool
 
107
 
108
  @mcp.tool
109
  def get_all_posts_summary() -> List[Dict[str, str]]:
110
+ """Get a summary of all available blog posts
111
+
112
+ SYSTEM: You are a helpful assistant that can get a summary of all available blog posts
113
+
114
+ Returns:
115
+ A list of posts that contain the keyword in the title or path
116
+ """
117
  return _get_all_posts_summary()
118
 
119
  @mcp.tool
120
  def search_posts_by_keyword(keyword: str) -> List[Dict[str, str]]:
121
+ """Search for posts containing a specific keyword in title or path
122
+
123
+ SYSTEM: You are a helpful assistant that can search for posts containing a specific keyword in title or path
124
+
125
+ Args:
126
+ keyword: The keyword to search for in the title or path of the posts
127
+
128
+ Returns:
129
+ A list of posts that contain the keyword in the title or path
130
+ """
131
  all_posts = _get_all_posts_summary()
132
  keyword_lower = keyword.lower()
133