Skip to main content
Glama

scaffold_roles

Generate role table migration, requireRole gate code, and first operator bootstrap for Run402 role-gated functions.

Instructions

Generate a role-table migration + requireRole gate snippet + first-operator bootstrap for Run402 function role gates. Offline and deterministic (no project or network). Inputs: table, user_col, role_col, roles[], cache_ttl.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNoRole table name (unquoted SQL identifier). Default: app_roles.
user_colNoUser-id column — matches the tenant user id (internal.users.id / JWT 'sub'). Default: user_id.
role_colNoRole column. Default: role.
rolesNoAllowed roles. Default: ["operator"].
cache_ttlNoRole-lookup cache seconds (0-600). Default: 60. 0 = instant revocation (fresh DB read per request).
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the tool is offline and deterministic, and lists inputs. However, it does not describe the return value format, side effects, or exactly what is generated (e.g., files vs. console output). This leaves behavioral gaps.

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 concise sentences: first states purpose and outputs, second lists inputs. Efficient and front-loaded, though a bullet list of inputs might improve scannability.

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?

Given the tool generates code snippets and a migration, the description lacks essential details about the output format (e.g., file paths, console output, or return structure). With no output schema, the description should compensate but does not.

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 coverage is 100% with good descriptions per parameter. The description only lists parameter names without adding new meaning beyond the schema. Baseline 3 is appropriate.

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 generates a role-table migration, requireRole gate snippet, and first-operator bootstrap for Run402 function role gates. This specific verb-resource combination and mention of Run402 distinguishes it from all sibling tools, which are unrelated.

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

Usage Guidelines4/5

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

The description explicitly states the tool is offline and deterministic, and the context 'for Run402 function role gates' implies when to use. However, it does not mention when not to use or provide alternatives, though sibling tools offer no similar functionality.

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/kychee-com/run402'

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