Skip to main content
Glama
Sanjit-K

FTC Toolchain

by Sanjit-K

Get FTC sample OpMode source

get_sample

Obtain the complete Java source of any official FTC sample OpMode by name. Use this to access sample code directly from the FTC SDK.

Instructions

Return the full Java source of an official FTC sample OpMode by name (from list_samples).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSample name, e.g. BasicOmniOpMode_Linear
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It indicates a read operation but does not mention side effects, permissions, error handling, or what happens on invalid input. Lacks depth for a tool with no annotations.

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?

One sentence, no redundancy, front-loaded with key information. Every word serves a purpose.

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?

Given the tool's simplicity (1 param, no output schema, no annotations), the description covers the essential purpose and usage. It does not mention return format or errors, but for a straightforward retrieval tool it is sufficiently 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 coverage is 100% but the description adds value by linking the parameter to list_samples and providing an example. This goes beyond the schema description which only gives an example without the relational context.

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?

Description clearly states the verb 'return', the resource 'full Java source of an official FTC sample OpMode', and specifies the source of names 'by name (from list_samples)'. It distinguishes itself from siblings like list_samples and other tools.

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 mentions 'from list_samples' implying a prerequisite step, but does not explicitly state when to use this tool versus alternatives or provide exclusions. Given the number of siblings, more guidance would be beneficial.

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