Skip to main content
Glama

snippet-create

Create a new snippet in the Extension Toolkit (reusable prompts, code, emails, notes, etc.).

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": {
      "title": "<title>",
      "content": "<content>",
      "category": "<category>"
    },
    "name": "snippet-create"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesSnippet title (max 200 chars)
contentYesSnippet content (max 50000 chars)
categoryYesCategory: prompt, code, template, text, response, query, email, message, note, draft, boilerplate, documentation, meeting, proposal, report, announcement, or other
isPublicNoWhether the snippet is public (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile of this create operation is covered externally. The description adds only domain flavor (that snippets are reusable prompts/code/emails/notes) and says nothing about permissions, duplicates, or title uniqueness. That is a modest addition beyond the annotations, consistent with a 3.

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?

It is a single front-loaded sentence with the verb and resource first, and no redundant restatement of the title. The trailing 'etc.' is mild filler, keeping it just short of a fully earning-every-word 5.

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 4-parameter create tool with fully covered schema and no output schema, the description is adequate but silent on what the call yields (e.g., the created snippet's identifier) and on any prerequisites. It is complete enough to invoke correctly, but not to predict the result.

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 four parameters (title, content, category, isPublic) are already documented with limits and the full category list. The description's examples of snippet types loosely gesture at the category field but add no syntax or format detail beyond the schema, making the baseline 3 appropriate.

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 and resource ('Create a new snippet') and disambiguates what a snippet is with a parenthetical list of examples ('reusable prompts, code, emails, notes, etc.'). It does not explicitly contrast with snippet-list or snippet-update, but the operation is unambiguous from the name plus description.

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 guidance, no prerequisites, and no mention of alternatives such as snippet-update for existing items. The usage is implied by the verb 'Create', but an agent gets no explicit conditions or exclusions from the text.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources