Skip to main content
Glama

generate_svelte_store

Generate Svelte stores (writable, readable, derived) with TypeScript types and custom store patterns

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": {
      "storeName": "<storeName>",
      "storeType": "<storeType>",
      "stateFields": "<stateFields>"
    },
    "name": "generate_svelte_store"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNameYesStore name (e.g. userStore, themeStore)
storeTypeYesSvelte store type
stateFieldsYesComma-separated state field names
withContextNoUse setContext/getContext pattern
withLocalStorageNoPersist to localStorage

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses only that output includes TypeScript types and custom store patterns; it says nothing about what artifact is produced (file written vs. code string), whether existing files are overwritten, or what the caller receives back.

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 front-loaded sentence with the resource first, the supported variants second, and the output characteristics last. No filler, no redundant restatement of the tool name.

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 schema is fully self-documenting and the purpose is unambiguous, which covers most of what an agent needs. However, for a code-generating tool with no annotations and no output schema, the description should clarify the shape of the result (file path vs. code text) and any overwrite behavior, and it does not.

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 five parameters including the storeType enum and the withContext/withLocalStorage flags are already documented. The description adds only the notion that generated stores carry TypeScript types, which does not extend the meaning of any specific parameter.

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?

States a specific verb and resource ('Generate Svelte stores') and enumerates the supported store kinds (writable, readable, derived) plus the TypeScript-typing and custom-pattern angle. An agent can tell this apart from a generic code generator, though it never names its closest siblings (generate_pinia_store, generate_zustand_store) explicitly.

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

Usage Guidelines3/5

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

The Svelte framing implies the right context versus the Pinia/Zustand generators, but that routing is left to inference. There is no explicit when-to-use statement, no prerequisites, and no exclusion of edge cases such as when a plain component generator would be preferable.

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.