Skip to main content
Glama

apiexplorer__ShowMockData

Retrieves mock API response data from YAML-defined examples by product, API name, and status code, so you can test and validate responses without live calls.

Instructions

[APIEXPLORER] 根据Yaml中API返回的示例获取模拟数据

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": {
      "api_name": "<api_name>",
      "product_short": "<product_short>",
      "status_code": "<status_code>"
    },
    "name": "apiexplorer__ShowMockData"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberNo该状态码的第几个示例
versionNoapi版本号
api_nameYesapi名称
region_idNoregion信息
status_codeYes状态码
product_shortYesapi产品短名

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of describing behavior, and it discloses almost nothing. It doesn't say whether the call is read-only, what happens when a status_code has fewer examples than the requested 'number', whether real credentials or region access are needed, or what the returned mock payload looks like.

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?

A single short sentence with a bracketed product tag and no filler, front-loaded with the action. It is efficient but borders on under-specified rather than well-structured.

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

Completeness2/5

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

This is a six-parameter tool with three required path/query identifiers, no annotations, and no output schema, so the description had to explain selection semantics and return shape — and it explains neither. An agent can guess the gist but cannot confidently predict the response or error cases.

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 one of the six parameters is already documented in the schema, which justifies a baseline 3. The description adds no extra meaning — it does not explain how api_name, product_short, status_code and number combine to select a specific example.

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 sentence names a specific verb and resource (获取模拟数据 — get mock data) and adds the source mechanism (examples of API responses defined in the YAML). That is enough for an agent to know the tool returns sample payloads rather than live data, though nothing distinguishes it from siblings such as apiexplorer__ShowApi, which also sounds like it surfaces API content.

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 statement of when to use this tool versus apiexplorer__ShowApi or the List* siblings, and no prerequisites (e.g. that the API must already be defined with example responses). Usage must be inferred from the name alone.

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