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)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It explains the multi-operation nature and provides examples, but doesn't mention permissions needed, rate limits, whether operations are atomic/reversible, or what happens on errors. The examples help but don't fully compensate for missing behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening sentence stating the purpose, followed by action-specific guidance, and comprehensive examples. While slightly longer due to examples, every sentence earns its place by providing essential operational guidance. The examples are valuable but make it less concise than a minimal description could be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 12 parameters, nested objects, no annotations, and no output schema, the description provides good operational guidance but has gaps. It explains parameter usage well but doesn't cover return values, error conditions, or system behavior during operations. The examples help but don't fully compensate for the lack of output schema and behavioral context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds significant value by explaining parameter dependencies and usage patterns beyond the schema: it clarifies which parameters are needed for which actions (e.g., 'For get/update/delete/toggle, provide the mock ID'), provides concrete examples showing how parameters combine, and explains filtering logic for the list action.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs (create, retrieve, update, delete, list, toggle) and resource (mock endpoints). It distinguishes itself from siblings like get_mock_invocations or verify_mock by covering comprehensive CRUD operations rather than specific monitoring or verification functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use different actions (e.g., 'For list, optionally filter by type or enabled status'), but doesn't explicitly state when to choose this tool over alternatives like import_mocks or export_mocks. It gives operational guidance but lacks comparative usage context with siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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