Skip to main content
Glama

save_snippet

Save code snippets with a title, language, and tags to a personal vault for organized retrieval and reuse.

Instructions

Save a code snippet to your personal vault

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesShort title for the snippet e.g. 'Debounce function'
codeYesThe code to save
languageYesProgramming language e.g. 'typescript', 'python', 'bash'
tagsNoTags for searching later e.g. ['utility', 'async', 'react']
Behavior2/5

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

No annotations are provided, so the description must cover behavioral context. It does not mention idempotency, whether it overwrites, success/failure indicators, or any side effects beyond saving.

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?

Single sentence, front-loaded with action and resource, no filler. Every word earns its place.

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?

Core purpose is clear, but for a tool with no output schema and no annotations, more context would help (e.g., whether existing snippets with same title are overwritten, size limits). Adequate but not rich.

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?

All four parameters have descriptions in the schema, so the description adds no extra meaning. Baseline of 3 is appropriate since schema coverage is 100%.

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?

Description provides a specific verb 'Save', a clear resource 'code snippet', and a location 'personal vault'. It cleanly distinguishes from sibling tools like delete, get, list, and search.

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?

No guidance on when to use this tool versus alternatives (e.g., updating an existing snippet). No conditions or prerequisites mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/officechbusinessservices-creator/snippet-vault'

If you have feedback or need assistance with the MCP directory API, please join our Discord server