Skip to main content
Glama

add_snippet

Add or replace a dictation snippet so saying a cue inserts the associated text.

Instructions

Add or replace a snippet: saying cue inserts text.

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": {
      "cue": "<cue>",
      "text": "<text>"
    },
    "name": "add_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
cueYes
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered; the description's real contribution is the cue→text expansion mechanism, which is genuine behavioral context. However, it does not say what happens to the previous `text` when an existing `cue` is replaced, whether snippets are global or workspace-scoped, or whether cues are case-sensitive. There is also mild tension between 'add or replace' (normally idempotent) and idempotentHint=false, though this is not a direct contradiction.

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?

A single short sentence, front-loaded with the verb and resource, that spends its remaining words on the one thing the schema cannot convey. Nothing redundant and nothing padded.

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?

The tool is simple (two required string params, annotations present, no output schema), so the description does not need to explain return values. But for a mutation that overwrites data it stays silent on scope, on the fate of the replaced text, and on any success/failure behavior, leaving gaps an agent would notice when replacing an existing cue.

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 description coverage is 0%, so the burden falls entirely on the description, and it delivers the key semantic mapping: `cue` is the spoken trigger and `text` is what gets inserted. That is real meaning beyond two bare string fields. It still omits the length bounds' practical implications and any format rules for the cue, so it is not exhaustive.

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 gives a specific verb pair ('add or replace') plus the resource ('snippet'), and goes further by explaining the operating model: saying the `cue` inserts the `text`. That is enough to separate it from remove_snippet and from the dictionary tools by resource name, though it never explicitly contrasts itself with add_dictionary_term.

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 when-to-use or when-not-to-use guidance, and no named alternative. An agent gets no help deciding between a snippet and a dictionary term, or between this tool and remove_snippet when it wants to change an existing cue. Only the implicit 'add or replace' upsert semantics hint at usage.

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