Skip to main content
Glama

ljs_read

Retrieves the complete usage guide for a specific LJS Vue3 plugin, including installation, examples, and known pitfalls to avoid writing code that compiles but runs incorrectly.

Instructions

读取某个 LJS 插件的完整使用指南(何时用/不用、安装、可复制示例、典型错误对照、已知坑)。确定要用某个包后调它,一次拿到全部用法。特别注意「已知坑」章节:里面是作者在生产中踩过的坑(如某些组件 data 为空时跳过列宽计算、导出有 1s 内部延时),跳过会写出能编译但运行不对的代码。

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": {
      "plugin": "<plugin>"
    },
    "name": "ljs_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
pluginYesnpm 包名,如 moving-numbers-vue3
sectionNo可选:只看某个章节,如「安装与引入」「典型错误对照」

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden; it does usefully disclose what the response contains and flags that the 'known pitfalls' section holds production hazards that produce code that compiles but runs incorrectly. It says nothing about failure behavior for unknown plugins, the freshness or versioning of the content, or response size, which matters because the guide is said to be complete.

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?

The description is front-loaded with what the tool returns, followed by when to call it and then a warning about the pitfalls section. The parenthetical examples (byte-width calculation skipping when data is empty, a 1-second internal delay in export) are illustrative rather than wasteful, though they make the third sentence heavier than needed.

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 read tool with no output schema, the description adequately conveys what comes back and why it matters. The main gap is relative to the siblings: an agent must decide between this and ljs_api, and the definition does not explain that boundary.

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, and the schema even gives example values for `section`. The description's enumeration of chapters (何时用/不用、安装、可复制示例、典型错误对照、已知坑) slightly enriches the plausible values for `section` beyond the schema's two examples, but adds little else about parameter meaning.

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 concrete verb and resource — reading a complete usage guide for a specified LJS plugin — and lists its contents (when to use and when not to, installation, copyable examples, typical error reference, known pitfalls). It also indicates the position in the workflow ("确定要用某个包后调它"), which distinguishes it from the discovery-oriented ljs_search, though no sibling is named explicitly.

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?

The description clearly says when to call it: after you have decided to use a package, and in one call to obtain all of its usage information. It does not state when not to use it, however, nor does it distinguish this tool from ljs_api, the other sibling that may also answer usage questions.

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