Skip to main content
Glama

create_mock

Create a new mock response file on the Mockery server, generating missing directories and auto-committing in Git mode.

Instructions

Create a new mock file on the Mockery server. Creates directories if they don't exist. In Git mode, the file is automatically committed and pushed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "create_mock"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath including filename (e.g., "weather/prod/success.json", "Products/newItem.json").
contentYesFile content (JSON, HTML, XML, text, etc.).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses two side effects: implicit directory creation and, in Git mode, automatic commit and push to the remote — a meaningful remote mutation. However, it never states what happens when the target path already exists (overwrite, error, or version bump), nor any permission/auth requirements, which is a notable gap for a create operation.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action and followed by the two side effects that matter most. No filler or redundant restatement of the name.

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 two-parameter create tool with no annotations and no output schema, the description covers the key operational surprises — directory creation and Git commit/push. The main omission is conflict/overwrite behavior when the file already exists, which an agent would want to know before calling.

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 both parameters are already documented in the schema, including path examples and accepted content types. The description adds no format or constraint detail beyond that, so the baseline 3 applies.

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

Purpose4/5

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

The description states a specific verb and resource — 'Create a new mock file on the Mockery server' — which is unambiguous and clearly distinct from the delete/get/list siblings. It doesn't explicitly name or contrast those siblings, but the create action leaves no real ambiguity.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no mention of alternatives such as updating or overwriting an existing mock. The only implied usage is that this is the write path for a new mock file.

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

Deploy Server

Other Tools