Skip to main content
Glama

generate_redux_toolkit_slice

Generate a Redux Toolkit slice with createSlice, async thunks, selectors, and RTK Query integration

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": {
      "sliceName": "<sliceName>",
      "stateFields": "<stateFields>"
    },
    "name": "generate_redux_toolkit_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
sliceNameYesSlice name (e.g. auth, products, cart)
apiBaseUrlNoBase URL for RTK Query API
stateFieldsYesComma-separated state field names
withRtkQueryNoInclude RTK Query API slice
withAsyncThunkNoInclude createAsyncThunk for API calls
withEntityAdapterNoUse createEntityAdapter for normalized state

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, yet it says nothing about whether generated code is written to disk or returned as a string, whether existing files are overwritten, or what side effects occur. For a code-generation tool with zero annotation coverage these are material omissions.

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 no filler or redundancy. Every clause maps to an artifact the tool produces, so nothing needs trimming.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, no annotations, and no output schema, the description should explain what the generator actually returns or writes and any dependencies. Instead it stops at a feature list, leaving the agent unable to predict the result of a call.

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 six parameters are already documented in the schema (sliceName, stateFields, apiBaseUrl, withRtkQuery, withAsyncThunk, withEntityAdapter). The description merely names features that map loosely to the boolean flags, adding no format, constraint, or interaction detail 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?

The description names a specific verb and artifact: 'Generate a Redux Toolkit slice' with the exact constructs produced (createSlice, async thunks, selectors, RTK Query integration). That is concrete enough to distinguish it from unrelated generators in the sibling list, though it never explicitly contrasts itself with any neighboring code-generation tool.

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 use this versus alternatives, no prerequisites (e.g., whether Redux Toolkit must already be installed), and no exclusions. The agent must infer all usage conditions from the one-line purpose statement.

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.