Skip to main content
Glama
FrontForge

FrontForge

by quardianwolf

setup_query_provider

Creates and wires a QueryProvider into the root layout, plus utility files like cn() for web and theme.ts for mobile to support React Query setup.

Instructions

Create QueryProvider and wire it into the root layout. Also creates utility files (cn() for web, theme.ts for mobile).

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": {
      "cwd": "<cwd>"
    },
    "name": "setup_query_provider"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesProject root directory path
platformNoauto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose real behavioral traits: the tool mutates the root layout file and generates extra utility files. However, it is silent on overwrite/idempotency behavior (what happens if a QueryProvider is already wired in, or if cn()/theme.ts already exist) and on whether the layout edit is reversible.

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?

Two short sentences, front-loaded with the primary action and followed by the secondary side effects. No filler; the only mild weakness is that the parenthetical artifact list reads as an aside rather than structured detail.

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 mutating scaffolding tool with no annotations and no output schema, the description covers the what but not the safety envelope: no statement of which files are touched beyond 'root layout', no failure modes, no return information. It is adequate to attempt a call but incomplete for calling it confidently on an existing project.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: cwd is documented in the schema, but the platform enum (nextjs/expo/auto) has no schema description. The parenthetical 'cn() for web, theme.ts for mobile' hints at platform-dependent output but never maps enum values to outcomes or explains what 'auto' does, so the unclear half of the schema stays unclear.

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 ('Create QueryProvider') plus the key side effect ('wire it into the root layout') and the auxiliary artifacts (cn() for web, theme.ts for mobile). It is clearly distinguishable from create_query_hook and scaffold_project by the layout-wiring detail, though it never names those siblings explicitly.

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 or when-not-to-use guidance. Nothing says whether this is a one-time bootstrap step, whether it should precede create_query_hook or create_component, or how it relates to scaffold_project. The agent must infer the ordering and preconditions.

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