Skip to main content
Glama

import_mocks

Import mock definitions from various formats including OpenAPI, Postman, HAR, WireMock, cURL, and mockd formats. Automatically detects formats and allows previewing imports before applying them to your mock server.

Instructions

Import mocks from inline content. Supports OpenAPI, Postman, HAR, WireMock, cURL, and mockd YAML/JSON formats. Format is auto-detected if not specified. Use dryRun=true to preview without applying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesMock definition content (YAML, JSON, OpenAPI spec, Postman collection, HAR, WireMock, or cURL)
dryRunNoParse and validate without applying. Returns a summary of what would be imported.
formatNoFormat hint for parsingauto
replaceNoReplace all existing mocks (true) or merge with existing (false)

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