Things to ask
Ask in plain language and refer to projects and mocks by name. The assistant looks up the IDs itself.
Examples
Section titled “Examples”- List my MockHub projects.
- What mocks does the Payments project have? Show only the inactive ones.
- In Orders API, create an inactive mock for
POST /ordersthat returns 201 with{"id": 42}. - Change the Create order mock to return 503 with a JSON error, and keep it active.
- Show the requests Payments received that no mock matched, and turn the
GET /healthone into a mock. - Clear the request logs for the Create order mock.
- Rename the project Blog to Blog posts.
- Create a project called Payments API on the subdomain
payments-api. - In Orders API, make
POST /orderssave the order it returns in the data store,GET /orders/{id}answer with the saved order, and the same path answer 404 for an order nobody created. - What does the Orders API data store hold? Clear its
orderscollection. - In Orders API, add three orders to the
orderscollection for my test, then mark ordero-2as shipped without touching its other fields. - Scaffold a
productsresource at/productsin Orders API that lists with filters oncategoryandstatus, and show me the preview before you create it. - Set up a Keycloak identity provider in Orders API for the realm
shop, show me the preview, then create it and activate its mocks. - Check the last
GET /orders/42that Orders API forwarded to its upstream against the contract, and tell me what does not match. - Which active mocks in Orders API has nobody called this month? Deactivate them.
- Tag every mock under
/ordersin Orders API withorders. - List the Orders API mocks tagged
v1, and move them tov2. - Why did my last request to
/ordersin Orders API return 404? - Show me the headers and body of the last request Payments answered with 500, and which of the mock’s responses it got.
- Is Log requests no mock answered on in Orders API? Turn it on if not.
- In Orders API, create a
checkoutscenario with the statepaid, and makeGET /orders/42answer 402 until it reachespaidand 200 after. - Undo my last change to the Create order mock.
- Check the last 10 requests Orders API forwarded to its upstream against revisions 4 and 5 of the contract, and tell me which revision 5 would fail.
- Which operations of the Orders API contract have no checked traffic?
- Import the OpenAPI document in
openapi.yamlinto Orders API, then activate theGET /ordersmock it creates. - Copy Orders API into a throwaway environment called
pr-482, check thatGET /ordersanswers there, then delete the environment. - Reset the Orders API data to its
populatedfixture. - When does each webhook in Orders API fire next?
- Make the Nightly report webhook in Orders API fire at 09:00 on weekdays, Warsaw time, instead of every hour. Show me the preview before you apply it.
- What can this token do in MockHub?
-
Say “inactive” when you want to review a mock before it answers. A new mock is Active by default, and an active mock answers real requests straight away.
-
Changing a mock’s request, its responses or which response answers replaces that whole part. Good assistants read the mock first; to be sure, say read the mock first and only change the status code of its default response.
-
A mock can hold several named responses. Ask for them by name, such as add a
not-foundresponse with status 404 toGET /orders/{id}and keep the default; see Choose the response that answers. -
A change to a mock can be undone. With a personal token, the assistant can restore the mock as it was before the change; the restore is kept as a version too. Your plan decides how many versions each mock keeps; see Compare and restore versions.
-
To delete a project, the assistant must repeat its exact name. Check it is the project you mean before you approve.
-
The assistant sees requests that were logged. Log requests no mock answered is on for a new project; if it was turned off in the project settings, unmatched requests are not there to find. An assistant with an Admin personal token can switch it back on.
-
The assistant tags up to 100 mocks at a time, named one by one. To tag every mock a filter finds at once, use Select all … matching in the app; see Organise mocks with tags.
For a throwaway copy, the assistant can use create_environment_from_project in the ci toolset. It creates an automatically expiring environment in one call; see the copy workflow.
If the assistant says a tool is missing, ask it to check whoami.toolsets and get_tool_definition before it treats the tool as forbidden. The assistant reads a large mock as a summary and its body in parts, and must not send those back as the whole mock; see reading large mocks.
Finding IDs
Section titled “Finding IDs”You rarely need one, but when you do:
| ID | Where to find it |
|---|---|
| Workspace | Ask the assistant to run whoami; the answer includes workspace.id. |
| Project | Open the project in MockHub: the address bar shows https://mockhub.io/projects/<project ID>/mocks. |
| Mock | Open the mock: the address bar shows https://mockhub.io/projects/<project ID>/mocks/<mock ID>. |
| Logged request | Ask the assistant to list the project’s requests; each has an id. |
What the assistant cannot do
Section titled “What the assistant cannot do”Use the MockHub app for these; the assistant can read some of them through a mock’s definition but not change them:
- changing or deleting a chaos profile. An Admin can have it create one, such as “a profile that delays every answer by 2 seconds and fails one call in ten with 503”, and start or stop it; a mock’s own delay, its responses and its response sequence can be asked for too, such as “make GET /orders answer after 800 ms” or “fail twice with 503, then answer 200”;
- creating a webhook, or changing its target or body. The assistant can read a webhook’s schedule, send it and read its deliveries, and an Admin can have it change the schedule in the project’s configuration document (see MCP workflows);
- alert rules, captures and insights;
- custom domains, members, invitations, tokens and billing;
- the project’s OpenAPI contract beyond imports: listing and comparing its revisions, dynamic values and background checks, and checks of a mock’s own responses. It can preview and apply an import, including one that restores a retained revision through
from_revision, link a mock to an operation or unlink it, check request logs against one or two revisions and read the contract’s coverage.