Skip to main content
Glama
Sanjit-K

FTC Toolchain

by Sanjit-K

Create a subsystem

create_subsystem

Scaffolds an FTC subsystem class with hardware fields, config constants, action methods, and a safety stop. Optionally generates a bench-test TeleOp and documentation.

Instructions

Scaffold a plain FTC subsystem class (constructor takes HardwareMap; hardware fields, config-name constants, action methods, and a safety stop()). Also writes a bench-test TeleOp and a markdown doc in docs/. This is the recommended way to structure robot code — one class per mechanism (intake, spindexer, turret...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSubsystem class name, e.g. RollingIntake
groupNoLowercase package group / folder, e.g. 'shooting' -> teamcode.shooting (default: subsystems)
dryRunNoValidate and preview all generated files without writing them
motorsNo
servosNo
methodsNoAction method names to stub, e.g. ['spinIn','spitOut']
sensorsNo
crServosNo
constantsNoNamed constants (PID gains, servo positions, RPM setpoints). Tunable ones are live-editable while the robot runs.
dashboardNoLive-tuning system for tunable constants (default: panels, matching install_pedro's Panels)
overwriteNo
testOpModeNoAlso generate a bench-test TeleOp (default true)
descriptionNo
projectPathNoPath to the FtcRobotController SDK project. Defaults to $FTC_TOOLCHAIN_PROJECT_DIR, then the workspace clone made by create_project.
dependenciesNoOther subsystems this one needs, injected into the constructor (must already exist)
Behavior3/5

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

With no annotations, the description must carry the full burden. It mentions file creation but does not disclose overwrite behavior, error handling, or prerequisites like project path. Basic disclosure is present but lacks depth.

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: first explains action and outputs, second gives recommendation. No fluff, front-loaded, every sentence earns its place.

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?

Given 15 parameters and complexity, the description is brief. It does not explain how to use after creation or prerequisites like project existence. Adequate for selection but incomplete for full understanding.

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

Parameters2/5

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

Schema description coverage is 60% (moderate). The description adds no parameter-level explanations, relying entirely on schema. Since it does not compensate for uncovered parameters, score is low.

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 action ('Scaffold a plain FTC subsystem class') and the resource (subsystem class, bench-test TeleOp, markdown doc). It distinguishes from siblings like create_opmode and create_teleop by specifying subsystem scaffolding.

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 provides context: 'This is the recommended way to structure robot code — one class per mechanism.' It implies when to use (for individual mechanisms) but does not explicitly state when not to use or list alternatives.

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/Sanjit-K/ftc-toolchain'

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