get_employees
Retrieve employee records from the MCP Employee API Server to access and manage workforce data through REST API operations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_employees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:43-47 (handler)The handler function for the 'get_employees' tool. It is decorated with @mcp.tool() which registers it, and it makes a GET request to the /employees endpoint using the shared make_request helper.
@mcp.tool() async def get_employees() -> dict: url = f"{URL_BASE}/employees" response = await make_request(url) return response