Skip to main content
Glama

Loutre

create_mock

Create a hosted mock from an OpenAPI 3.0/3.1 or Swagger 2.0 document (YAML or JSON), from TypeScript types (interfaces, types, enums: CRUD routes derived, or a route map type keyed like "GET /users") or from a Postman v2 collection, an Insomnia export (v4 JSON or v5 YAML), a Bruno collection (JSON export, or .bru files one after the other), a HAR file (headers and cookies are dropped, data is generated), a json-server db.json (records served as they are), curl commands, or a GraphQL schema (SDL or introspection JSON; Pro plan: queries, mutations and introspection answered on POST /graphql). OpenAPI 3.2 is read too. Give the document in spec, or its public address in url (then the mock re-reads it every six hours and follows changes). Returns the URL, the route list and an ownerToken to keep for later changes. Data is realistic and coherent, generated once. Without an account the mock lives seven days.

Input Schema

NameRequiredDescriptionDefault
urlNoPublic URL of the document, instead of spec
autoNoWith url: re-read every six hours (default true)
seedNoData seed, for reproducible data sets
slugNoDesired subdomain (Pro plan)
specNoThe full document, verbatim: OpenAPI, Swagger, TypeScript types, a Postman, Insomnia or Bruno collection, a HAR file, a db.json or curl commands
localeNoLanguage of names, addresses, texts and error messages (default: the request's language, else English)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Language of names, addresses, texts and error messages (default: the request's language, else English)",
      +  "enum": [
      +    "en",
      +    "fr"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the return payload (URL, route list, ownerToken), the seven-day lifetime without an account, the six-hour re-read for URL sources, and format-specific data handling (HAR headers/cookies dropped, db.json records served as-is, generated data coherent and generated once). Gaps remain around failure modes for invalid documents, auth requirements, and rate limits, which keeps it below a 5.

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

Conciseness3/5

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

The core action is front-loaded, which is good, but the format enumeration is a single sprawling sentence with deeply nested parentheses that is hard to parse and could be compressed or bulleted. The trailing sentences about return value, data generation and lifetime are tight and earn their place, partially offsetting the bloat.

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

Completeness4/5

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

For a six-parameter tool with no output schema, the description compensates well by describing the return value, the mock lifetime, and the refresh behavior of URL-sourced mocks. The notable omission is that all six parameters are optional and the description never states that at least one of `spec` or `url` must be supplied, nor what happens when neither is given.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented in the schema, and the description largely restates those semantics (spec vs url, auto re-read, slug being Pro-only, locale). The one addition of value is the six-hour refresh cadence tied to `url`, but that is behavioral rather than parameter-level meaning, so the baseline of 3 applies.

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?

Opens with a specific verb and resource ('Create a hosted mock') and immediately enumerates the accepted source formats, so the agent knows exactly what the tool produces. It is unmistakably distinct from siblings like get_mock, list_mocks, regenerate_mock or sync_mock, which operate on already-existing mocks.

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

Usage Guidelines3/5

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

Usage is implied by the creation verb and by the explicit spec-vs-url fork ('Give the document in `spec`, or its public address in `url`'), which is genuine routing guidance. However, no sibling is named as an alternative and no exclusion is stated (e.g., when to use regenerate_mock or sync_mock instead of creating a new mock), so the agent must infer that this is the entry point.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources