Skip to main content
Glama

get_mock

Retrieve mock content by ID from the Mockery server, returning file content with content-type and status code. Supports comma-separated IDs for random selection.

Instructions

Retrieve mock content from the Mockery server. Returns the mock file content with its content-type and status code.

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": {
      "mockId": "<mockId>"
    },
    "name": "get_mock"
  }
}

Input Schema

NameRequiredDescriptionDefault
mockIdYesThe mock ID in format "ServiceName/FileId" (e.g., "FooBar/1234", "Products/hydrate"). For multiple mock IDs with random selection, use comma-separated values (e.g., "FooBar/1234,FooBar/5678").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add genuine context about the response ('mock file content with its content-type and status code'), which helps the agent interpret results, but says nothing about behavior when a mock ID is missing, whether multi-ID lookups are random/non-deterministic in cost, or any auth/rate constraints.

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?

Two short sentences, zero filler, and the purpose is front-loaded before the return-value note. Every clause earns its place.

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 simple one-parameter read tool with no output schema, the description is nearly sufficient: it establishes what is fetched and what comes back. The remaining gap is error/not-found behavior, which is minor given the tool's low complexity.

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 coverage is 100% and the single mockId parameter is already thoroughly documented in the schema, including the 'ServiceName/FileId' format and comma-separated multi-ID selection. The description adds no parameter meaning beyond that, so the baseline of 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?

States a specific verb ('Retrieve') and resource ('mock content') and names the source system (Mockery server). It implicitly separates itself from list_mocks/create_mock/delete_mock by being the content-fetch operation, though it never names a sibling explicitly.

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?

There is no explicit when-to-use or when-not-to-use statement. The required mockId and the word 'Retrieve' imply this is the tool for fetching an existing mock's content by ID rather than enumerating or mutating mocks, but the agent must infer that contrast with list_mocks.

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