Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Create, Update, or Delete App Shortcut Preset

apps_save_preset

Add, update, or delete software shortcut presets and optionally persist them to mcp-config.json. Store reusable terminal commands with IDs, categories, and working directories for quick reuse.

Instructions

新增、修改或删除软件快捷操作预设,可选保存到 mcp-config.json。

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": {
      "id": "<id>"
    },
    "name": "apps_save_preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes预设唯一 ID(如 redis-flush)
cwdNo可选固定工作目录
nameNo展示名称(upsert 时必填)
actionNo操作类型:upsert 或 deleteupsert
commandNo执行的终端命令(upsert 时必填)
categoryNo所属分类(如 Redis/Docker/自定义)自定义
saveToFileNo是否同步保存到 mcp-config.json
descriptionNo功能说明

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a meaningful trait beyond the schema: presets can optionally be persisted to mcp-config.json, so the agent knows a write to a config file may occur. It says nothing about irreversibility of delete, upsert idempotency, or behavior when the id does not exist.

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 front-loaded sentence with the operation set stated first and the persistence caveat second; there is no filler. It is arguably too terse for an eight-parameter mutation tool, but nothing in it is wasted.

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

Completeness3/5

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

For a mutating CRUD tool with eight parameters, no annotations, and no output schema, the description covers the what and the optional persistence but omits mutation semantics (delete consequences, upsert overwrite behavior) and any expected result. The rich schema compensates for field-level gaps, so the definition is adequate but thin on behavior.

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 all eight parameters are already documented in the schema, including the upsert/delete enum and the conditional requiredness of name and command. The description adds no meaning beyond that baseline; its mention of saving to mcp-config.json merely echoes saveToFile.

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 names a specific verb set (create/modify/delete) against a specific resource (app shortcut presets), and the optional persistence to mcp-config.json adds a concrete scope detail. It implicitly distinguishes itself from the read/execute siblings (apps_list_presets, apps_run_preset) by being the mutating CRUD entry, though it never names them.

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 explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as apps_list_presets for inspection or apps_run_preset for execution. The only usage-shaped hint is that saving to mcp-config.json is optional, which is really a parameter restatement rather than routing guidance.

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