Skip to main content
Glama

get_byos_config

Generate configuration for custom cloud storage in UploadKit Next.js handlers. Set up environment variables and TypeScript code for AWS S3, Cloudflare R2, Google Cloud Storage, or Backblaze B2 to meet compliance requirements or use existing infrastructure.

Instructions

Generate Bring-Your-Own-Storage (BYOS) configuration for an UploadKit Next.js handler — environment variables, handler code, and setup notes for a specific storage provider.

When to use: the user wants to store uploads in their own cloud bucket instead of UploadKit's managed R2. Typical triggers: compliance/data-residency requirements, existing bucket infra, desire to avoid vendor lock-in.

Returns: a plain-text string with three sections — provider-specific notes, the .env variable block, and the TypeScript handler code. Credentials are always server-side; the browser never sees them. Read-only, deterministic. No network calls, no secrets exposed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesThe storage provider to configure. "s3" = AWS S3 (watch egress costs). "r2" = Cloudflare R2 (recommended — zero egress fees). "gcs" = Google Cloud Storage via HMAC interop. "b2" = Backblaze B2 (S3-compatible, cheap egress). Choose based on where the user's bucket already lives.
Behavior4/5

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

With no annotations provided, the description carries full burden and does so well. It discloses important behavioral traits: 'Returns: a plain-text string with three sections,' 'Credentials are always server-side; the browser never sees them,' 'Read-only, deterministic,' and 'No network calls, no secrets exposed.' This provides comprehensive behavioral context beyond what a schema would indicate.

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?

The description is well-structured and front-loaded with the core purpose. Each sentence earns its place: purpose statement, usage guidelines, return format, and security/behavioral notes. No wasted words while maintaining comprehensive coverage.

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?

Given the tool's complexity (configuration generation with security implications) and lack of annotations/output schema, the description provides complete context. It covers purpose, usage scenarios, return format, security model (server-side credentials), and behavioral characteristics (deterministic, no network calls). This is sufficient for an agent to understand and use the tool correctly.

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% with detailed provider descriptions in the enum. The description doesn't add parameter semantics beyond what's already in the schema (which thoroughly explains each provider option). The baseline of 3 is appropriate since the schema does the heavy lifting for parameter documentation.

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: 'Generate Bring-Your-Own-Storage (BYOS) configuration for an UploadKit Next.js handler' with specific outputs (environment variables, handler code, setup notes). It distinguishes from siblings by focusing on BYOS configuration rather than components, docs, or scaffolding.

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?

The description explicitly provides 'When to use' guidance with specific triggers (compliance/data-residency requirements, existing bucket infra, avoiding vendor lock-in). It clearly differentiates this tool's use case from alternatives by specifying it's for users wanting to store uploads in their own cloud bucket instead of UploadKit's managed R2.

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