Skip to main content
Glama

list_snippets

Lists saved command snippets in your workspace, with masked secrets and required variables, so you can find a command to reuse instead of retyping it. Filter by tag or query.

Instructions

Lists the snippets in this client's workspace: single commands the user saved in ShellVibe, each with its command text (secrets masked) and the variables it asks for, described as in list_runbooks. Prefer a snippet to retyping the same command with run_command. To run one on hosts, call run_snippet, which always asks the user.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_snippets"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOnly snippets carrying exactly this tag.
queryNoOnly snippets whose title, tags or command contain this, ignoring case.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses that command text is returned with secrets masked, that variables are included, that scope is limited to the current client's workspace, and that the execution sibling prompts for confirmation. It does not mention pagination, result caps, or permissions needed to see snippets, which is the remaining gap for a read tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with what the tool is and what it returns, then the usage steer and the execution alternative. No sentence is filler; even the parenthetical about masked secrets is load-bearing information.

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-optional-parameter list tool with no annotations and no output schema, the description supplies the return shape (command text, masked secrets, variables) and the sibling relationships an agent needs. Only paging/volume behavior is unaddressed, a minor omission rather than a blocking one.

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%, with both tag and query fully documented in the schema, including case-insensitivity and exact-tag matching. The description adds no filtering semantics of its own, so the baseline 3 applies — the schema does the heavy lifting.

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 ("Lists the snippets in this client's workspace") and then defines what a snippet actually is: a saved single command with masked command text and declared variables. That definition is what lets an agent distinguish this from list_runbooks and from command execution tools without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: prefer a snippet over retyping a command with run_command, and call run_snippet to execute one on hosts. It also flags the side effect of that alternative ("always asks the user"), so the choice between listing and running is fully determined by the description.

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