Skip to main content
Glama

scaffold_provider

Wrap Next.js root layout with UploadKitProvider to enable React components to communicate with the upload route handler. Use after scaffold_route_handler to complete setup.

Instructions

Return a ready-to-paste snippet that wraps the Next.js root layout with <UploadKitProvider> so React components can talk to the upload route handler.

When to use: right after scaffold_route_handler, to complete the wiring. The snippet goes in app/layout.tsx. Without the provider, UploadKit React components throw at runtime.

Returns: a plain-text string containing a short explanatory note followed by a fenced tsx code block. Takes no parameters — the endpoint path is always /api/uploadkit since that is what scaffold_route_handler produces. Read-only, deterministic, idempotent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries full burden and provides comprehensive behavioral disclosure. It explicitly states 'Read-only, deterministic, idempotent' which are crucial behavioral traits. It also describes the output format ('plain-text string containing a short explanatory note followed by a fenced tsx code block') and explains the fixed endpoint path logic.

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?

Perfectly front-loaded with the core purpose in the first sentence. Every sentence earns its place by providing essential information: purpose, usage timing, location, consequences, output format, parameter rationale, and behavioral traits. No wasted words while maintaining complete clarity.

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

Completeness5/5

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

For a 0-parameter tool with no annotations and no output schema, the description provides complete context. It explains the tool's purpose, when and where to use it, what it returns, why it has no parameters, and key behavioral traits. This gives the agent everything needed to correctly select and invoke this tool.

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

Parameters4/5

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

The tool has 0 parameters with 100% schema coverage, so baseline would be 4. The description adds valuable context by explaining why there are no parameters ('Takes no parameters — the endpoint path is always /api/uploadkit since that is what scaffold_route_handler produces'), which provides semantic understanding beyond the empty schema.

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?

The description clearly states the tool's purpose with specific verb ('Return') and resource ('ready-to-paste snippet'), and distinguishes it from siblings by mentioning its relationship to scaffold_route_handler. It specifies exactly what the snippet does (wraps Next.js root layout with <UploadKitProvider>) and why (so React components can talk to upload route handler).

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

Usage Guidelines5/5

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

Explicitly states when to use ('right after scaffold_route_handler, to complete the wiring'), where to use ('in app/layout.tsx'), and consequences of not using it ('Without the provider, UploadKit React components throw at runtime'). It also distinguishes from alternatives by explaining this completes the wiring started by scaffold_route_handler.

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/drumst0ck/uploadkit'

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