Skip to main content
Glama

wop_api_detail

Retrieve detailed API definitions from WOP by path, Chinese name, or .md URL. Returns markdown with parameters and examples for integration.

Instructions

获取万联易达开放平台(WOP)指定 API 接口的详细定义。

支持三种入参形态(按优先级):
1. API 路径:如 /staffing/open/v1/invoice/apply(可带 POST/GET 前缀,
   支持省略业务域前缀的后缀匹配)
2. 接口中文名:如 转账提交
3. 完整 .md URL:直通下载

匹配到多个接口时返回候选列表,请用更精确的路径或 URL 重试。

Args:
    api: str - API 路径、接口中文名或完整 .md URL

Returns:
    str: API 接口详情(markdown 格式:基本信息、请求参数、响应参数、示例等)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description must carry behavioral burden, and it does disclose suffix matching, optional POST/GET prefixes, direct-download behavior for URLs, and the ambiguous-match candidate-list outcome. It omits auth/rate-limit context, but the matching semantics are well covered.

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?

Front-loaded with the purpose, then a numbered list for the input forms, then Args/Returns. The docstring-style Args/Returns block is somewhat redundant given the schema and output schema, but the overall structure is efficient and scannable.

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?

An output schema exists so return values need not be explained, yet the description still characterizes the markdown content. Combined with the matching-failure guidance, an agent has enough to call this correctly; only auth and error-code behavior are unaddressed.

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

Parameters4/5

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

Schema coverage is 0% and there is one parameter, so the description must define it — and it does, enumerating three accepted value forms and how prefix/suffix matching resolves. This goes well beyond the empty schema entry.

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?

States a specific verb and resource: retrieve the full definition of a named WOP API interface. It also delineates scope against siblings (wop_overview, wop_link_detail) by being explicitly about a single interface's detail definition.

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

Usage Guidelines4/5

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

Gives three ranked input forms with concrete examples and priority ordering, plus the recovery action when multiple interfaces match. It lacks explicit 'use this instead of X' routing to siblings, but the form guidance is unusually actionable.

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