Skip to main content
Glama
JMComic AI

JMComic AI

by hect0x7

update_option

Updates JMComic configuration and saves changes to file, enabling nested adjustments to auth, client, download, directory rules, and plugins.

Instructions

更新 JMComic 配置并保存到文件。

重要提示:此工具仅执行有限的验证。 在调用此工具之前,建议先查看以下资源了解 JmOption 语法:

  • jmcomic://option/schema: 参数类型和结构约束。

  • jmcomic://option/reference: 字段详细说明和示例。

参数: option_updates: 要合并的配置更新字典。 支持对 auth、client、download、dir_rule、plugins 等进行嵌套更新。

返回: 包含文件路径的成功消息,或错误消息。

示例: option_updates = { "client": {"impl": "api"}, "download": {"threading": {"image": 50}} }

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": {
      "option_updates": "<option_updates>"
    },
    "name": "update_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
option_updatesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

No annotations, so the description carries full burden; it does disclose that updates are merged rather than replacing the file, that validation is weak, and that the result is a success message with a file path or an error. It omits whether changes require a restart, how invalid keys are handled, and whether writing to disk can fail destructively.

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 the warning, then parameters, return, and a concrete example. The labeled sections are easy to scan; a few lines (e.g. the explicit '返回' block despite an output schema) could be trimmed without loss.

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 tool whose only input is an unconstrained nested dict, the description supplies the merge behavior, an example, and pointers to authoritative resource docs for the grammar. Residual gaps are how the write interacts with a running session and what happens on partial validation failure; an output schema exists, so return shape need not be spelled out.

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 the lone parameter is a free-form object with additionalProperties, so the description must compensate — and it does, by naming the supported top-level sections, stating the merge semantics, giving a nested example, and pointing to the schema/reference resources for the full field syntax.

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 and resource: update the JMComic configuration and persist it to a file, with the merged sections (auth, client, download, dir_rule, plugins) named. No sibling tool is config-editing, so it is distinguishable, though the overlap with `login` for auth settings is not addressed.

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?

Gives a real prerequisite ('this tool performs only limited validation', consult jmcomic://option/schema and jmcomic://option/reference first), which is useful context for calling it. However, it never says when to prefer this over alternatives such as `login` when the update touches auth, and no exclusions are stated.

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