Get mock servers (filter by workspace or team)
getMocksRetrieve active mock servers from Postman. Scope results by workspace ID or team ID; use workspace when known, otherwise provide team ID.
Instructions
Gets all active mock servers. By default, returns only mock servers you created across all workspaces.
Always pass either the `workspace` or `teamId` query to scope results. Prefer `workspace` when known.
If you need team-scoped results, set `teamId` from the current user: call GET `/me` and use `me.teamId`.
If both `teamId` and `workspace` are passed, only `workspace` is used.
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": "getMocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | No | Return only results that belong to the given team ID. - For team-scoped requests, set this from GET `/me` (`me.teamId`). | |
| workspace | No | Return only results found in the given workspace ID. - Prefer this parameter when the user mentions a specific workspace. |