Skip to main content
Glama
clearskies-py

clearskies MCP Server

scaffold_restful_api

Generate a complete runnable clearskies REST API for a single model, bundling model, endpoint, and context into one file.

Instructions

Generate a complete, runnable clearskies REST API application for a single model.

This is a convenience tool that generates a model, a RestfulApi endpoint, and a context
in a single file ready to run.

Args:
    model_name: Model class name in PascalCase (e.g. "User").
    columns: List of column definitions. Each dict has:
        - name (str): Column name
        - type (str): Column type
        - options (dict, optional): Column constructor options
    url: URL path (default: auto-generated from model name).
    backend_type: Backend type (default: "MemoryBackend").
    backend_options: Backend constructor options.
    authentication: Authentication expression.
    context_type: Context type (default: "WsgiRef").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
columnsYes
model_nameYes
backend_typeNoMemoryBackend
context_typeNoWsgiRef
authenticationNo
backend_optionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does not state whether the tool writes to disk, returns code as a string, or has side effects like overwriting files. It also lacks details on authentication handling or backend options beyond passing them through. This is a significant gap for a scaffold tool that presumably creates files.

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?

The description starts with the core purpose, then enumerates parameters in a clean Args list. Each line serves a purpose, and the structure is scannable. It is slightly longer due to the parameter documentation, but that is necessary given the schema coverage gap.

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?

The description provides good parameter-level detail and specifies the generated artifacts (model, endpoint, context). However, it omits usage guidance, behavioral side effects, and any prerequisites or dependencies. With an output schema present, return values need not be explained, but the missing operational context keeps it from being fully complete.

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?

Schema description coverage is 0%, so the description fully compensates by documenting all seven parameters in the Args block. It details the nested structure of 'columns' (name, type, options), explains the auto-generation of 'url', and lists defaults for backend_type and context_type. This adds substantial meaning beyond the bare 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 opens with 'Generate a complete, runnable clearskies REST API application for a single model,' which is a specific verb+resource+scope. It clearly distinguishes itself from sibling tools like generate_model, generate_endpoint, and generate_context by emphasizing it produces all three components in one file.

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

Usage Guidelines3/5

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

The description implies usage via 'This is a convenience tool that generates a model, a RestfulApi endpoint, and a context in a single file ready to run.' It establishes the aggregate nature but does not explicitly state when to prefer this over individual generators or mention exclusions. The sibling list makes the contrast obvious, but the description itself leaves the guidance implicit.

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/clearskies-py/mcp-server'

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