Skip to main content
Glama

Scaffold extension class

scaffold_extension

Create a Python extension class for a COMP, wire it into a slot, optionally promote members, and reinitialize. Supports method stubs and pairs with other tools for reusable networks.

Instructions

Give a COMP a Python extension class: create a Text DAT holding the class (with optional method stubs), wire it into an extension slot, optionally promote it (so members are callable directly on the COMP), and reinitialize. The other half of making a generated network reusable — pair with add_custom_parameters (knobs) and manage_component (save as .tox).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comp_pathYesThe COMP to give a Python extension class.
class_nameYesExtension class name, e.g. 'WidgetExt' (capitalized to a valid identifier; must already be identifier-safe).
methodsNoOptional method-name stubs to add to the class (each takes only `self`).
promoteNoPromote the extension so its members are callable directly on the COMP (op.Method()).
slotNoExtension slot (1–8) — a COMP can hold several extensions.
Behavior4/5

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

Description details the creation process (Text DAT, wire slot, promote, reinitialize) beyond annotations. Annotations already indicate non-read-only and non-destructive; description adds behavioral context but does not mention whether it overwrites existing extension or potential side effects of reinitialization.

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?

Two sentences, no fluff, front-loaded with verb and resource, efficiently covers how and when to use the tool.

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?

Covers the main steps and pairing advice. Lacks postconditions like return value and preconditions beyond required params. Overall sufficient given moderate complexity and good schema/annotations.

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 descriptions for each parameter; the tool description adds overall workflow context but does not significantly enhance parameter understanding beyond what the schema already provides.

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?

Clearly states it gives a COMP a Python extension class, describes the steps (create Text DAT, wire into slot, promote, reinitialize), and distinguishes from siblings by mentioning pairing with add_custom_parameters and manage_component.

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?

Provides context that this is 'the other half of making a generated network reusable' and explicitly name two sibling tools to pair with, giving guidance on when to use. Lacks explicit when-not-to-use scenarios but adequate.

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/Pantani/tdmcp'

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