Skip to main content
Glama

generate_pinia_store

Generate a Pinia store (Composition API style) with state, getters, actions, and optional persistence

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>",
      "stateFields": "<stateFields>"
    },
    "name": "generate_pinia_store"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNameYesStore name (e.g. useUserStore, useCartStore)
apiBaseUrlNoBase URL for API calls in actions
stateFieldsYesComma-separated state field names
withActionsNoInclude async API action examples
withPersistNoAdd pinia-plugin-persistedstate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/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 never says whether the generated code is returned as a string, written to a file, or where it lands, nor whether existing files are overwritten — critical for a code-generation tool. The enumeration of generated sections is the only behavioral signal.

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?

A single front-loaded sentence with no filler; the core verb and output artifacts come first. It is efficient, though it stops short of the length that would let it cover behavior.

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 five-parameter generator with no annotations and no output schema, the description should clarify the return form (code text vs. file path) and any overwrite behavior. It covers what is generated but not how the result is delivered, leaving a meaningful gap.

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 are already documented in the schema, establishing a baseline of 3. The description adds only a light mapping ('optional persistence' to withPersist, 'actions' to withActions) and no format or interaction details beyond the schema.

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 a Pinia store') plus the concrete artifacts produced (state, getters, actions, optional persistence) and the style variant (Composition API). It does not distinguish itself from framework siblings like generate_svelte_store or generate_zustand_store, but the framework is unambiguous from the name and 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 guidance on when to choose this over the sibling store generators, no prerequisites, and no exclusions. The agent must infer usage purely from the tool name and the Pinia framework reference.

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.