Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,18 @@ mcp = FastMCP("Jobicy Canada Remote Jobs Agent")
|
|
| 11 |
|
| 12 |
@mcp.tool(name="search_jobs")
|
| 13 |
def search_jobs_tool(query: str = "", location: str = "", limit: int = 20) -> dict:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
base_url = "https://jobicy.com/api/v2/remote-jobs"
|
| 15 |
params = {}
|
| 16 |
|
|
|
|
| 11 |
|
| 12 |
@mcp.tool(name="search_jobs")
|
| 13 |
def search_jobs_tool(query: str = "", location: str = "", limit: int = 20) -> dict:
|
| 14 |
+
"""
|
| 15 |
+
Search for remote jobs using the Jobicy API.
|
| 16 |
+
|
| 17 |
+
Args:
|
| 18 |
+
query (str): Optional job title or keyword to filter results.
|
| 19 |
+
location (str): Optional country or location (e.g., "canada", "united states").
|
| 20 |
+
Use "Anywhere" or leave blank for global search.
|
| 21 |
+
limit (int): Maximum number of job results to return (1–50).
|
| 22 |
+
|
| 23 |
+
Returns:
|
| 24 |
+
dict: A dictionary with either a list of jobs (under "jobs") or an "error" message.
|
| 25 |
+
"""
|
| 26 |
base_url = "https://jobicy.com/api/v2/remote-jobs"
|
| 27 |
params = {}
|
| 28 |
|