Skip to main content
Glama

manage_mock

Manage mock endpoints for HTTP, WebSocket, GraphQL, gRPC, SOAP, MQTT, and OAuth protocols. Perform CRUD operations, toggle enabled status, and filter mock endpoints by type or status.

Instructions

Create, retrieve, update, delete, list, or toggle mock endpoints. Use 'action' to specify the operation. For list, optionally filter by type or enabled status. For get/update/delete/toggle, provide the mock ID. For create, provide type and protocol-specific configuration.

Examples: List: {"action":"list","type":"http"} Get: {"action":"get","id":"http_060bff782a1de15f"} Create: {"action":"create","type":"http","http":{"matcher":{"method":"GET","path":"/api/hello"},"response":{"statusCode":200,"body":"{"msg":"hello"}"}}} Update: {"action":"update","id":"http_060bff782a1de15f","http":{"response":{"statusCode":201}}} Delete: {"action":"delete","id":"http_060bff782a1de15f"} Toggle: {"action":"toggle","id":"http_060bff782a1de15f","enabled":false}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesOperation to perform
enabledNoFor toggle: set specific state. For list: filter by enabled status.
graphqlNoGraphQL config (create/update)
grpcNogRPC config (create/update)
httpNoHTTP mock spec (required when type=http)
idNoMock ID (required for get/update/delete/toggle)
mqttNoMQTT config (create/update)
nameNoMock name (create/update)
oauthNoOAuth config (create/update)
soapNoSOAP config (create/update)
typeNoProtocol type for create or list filter
websocketNoWebSocket config (create/update)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/getmockd/mockd'

If you have feedback or need assistance with the MCP directory API, please join our Discord server