Skip to main content
Glama
clearskies-py

clearskies MCP Server

generate_context

Generate a clearskies context configuration that wraps an endpoint, with optional DI classes, modules, and bindings.

Instructions

Generate a clearskies context configuration that wraps an endpoint.

Args:
    context_type: The context type (e.g. "Cli", "WsgiRef", "Wsgi").
    endpoint_code: The endpoint expression to wrap (e.g. output from generate_endpoint).
    classes: List of model class names to register with DI.
    modules: List of module names to register with DI.
    bindings: Dictionary of name → value DI bindings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
classesNo
modulesNo
bindingsNo
context_typeYes
endpoint_codeYes

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 must disclose behavioral traits. It only says 'Generate' without clarifying whether this returns code, writes files, or requires side effects. There is no mention of safety or expected output behavior beyond the configuration.

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 opens with a clear one-sentence purpose followed by a structured Args list. It is appropriately sized for 5 parameters and contains no filler.

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

Completeness4/5

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

The description covers all 5 parameters and provides examples for key ones. Given the output schema exists, return value details are not needed. However, it lacks context on prerequisites (e.g., needing an endpoint first) and how to discover available context types, making it slightly incomplete.

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

Parameters5/5

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

The description includes an Args section that explains every parameter: context_type with examples, endpoint_code referencing generate_endpoint output, classes/modules for DI registration, and bindings as name→value dictionary. This fully compensates for the 0% schema description coverage.

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 'Generate a clearskies context configuration that wraps an endpoint', specifying a verb and resource. This distinguishes it from sibling generation tools like generate_endpoint and generate_model by focusing on context configuration.

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?

The description provides no guidance on when to use this tool versus alternatives such as generate_endpoint_group or scaffold_project. It does not mention prerequisites or exclusion conditions.

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