Skip to main content
Glama

Author Script operator

author_script_operator
Destructive

Scaffold a Script CHOP/DAT/SOP/TOP with an onCook stub and optional custom parameters, including the companion callbacks DAT.

Instructions

Scaffold a Script CHOP/DAT/SOP/TOP with a ready-to-edit onCook(scriptOp) stub and optional custom parameters. Creates the Script op plus its companion callbacks DAT, writes a per-family stub (chan/row/point/numpy) — or your on_cook_body — and appends Float/Toggle/Str custom pars inferred from each default's type. Returns {op_path, callbacks_path, params_added, warnings}. Requires TDMCP_RAW_PYTHON=on and TDMCP_BRIDGE_ALLOW_EXEC=1. Note: Script ops only cook when something requests them, so a paused timeline + no downstream consumer means no cook (not a bug).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName for the Script op; TD auto-names when omitted.
familyYesScript op family — selects the operator type and the onCook stub signature.
parent_pathNoParent COMP to create the Script op inside./project1
on_cook_bodyNoOptional body for onCook(scriptOp); injected verbatim. When omitted a per-family no-op stub is used.
custom_paramsNoCustom parameters to append on the Script op's 'Custom' page.
Behavior4/5

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

Annotations already convey that this is a write/creation operation (readOnly=false, destructiveHint=true). The description adds substantial context beyond that: creates companion callbacks DAT, appends custom params based on type, returns a specific dictionary, requires environment variables, and notes the non-cooking behavior when nothing requests the op. It does not explicitly mention overwrite conflicts, but the added context is valuable.

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?

Three well-organized sentences: front-loaded purpose, then mechanism, return value, prerequisites, and a practical cooking caveat. Every sentence contributes meaningful information with no filler, making it easy for an agent to parse quickly.

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 purpose, mechanism, return structure (explicitly lists keys), environment requirements, and a common behavioral pitfall. No output schema exists, so the return dict mention helps. Lacks details on what happens if an existing op has the same name (destructive potential), but overall the description is sufficiently complete for a creation tool.

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 each parameter already explained in detail (e.g., family selects operator type and stub signature, custom_params type inference). The description largely mirrors schema information, adding only minimal extra context such as the per-family stub names (chan/row/point/numpy). Baseline 3 is appropriate because the schema carries the semantic load.

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 uses a specific verb ('Scaffold') with a clear resource ('Script CHOP/DAT/SOP/TOP') and detailed outcome (onCook stub, custom parameters, companion callbacks DAT). It distinguishes from sibling tools like create_python_script and add_custom_parameters by its focus on the full Script op scaffolding workflow.

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 clear context: when to use it (scaffolding a Script op with optional custom parameters and stub generation). Also states critical prerequisites (TDMCP_RAW_PYTHON=on, TDMCP_BRIDGE_ALLOW_EXEC=1) and a behavioral caveat about cooking. However, it does not explicitly name alternatives or conditions where another tool should be used instead, so it misses full when-not guidance.

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