Skip to main content
Glama
BBSRGUY
by BBSRGUY

benchmark

Compile C source code once, run the program multiple times, and report min, max, and average execution time in milliseconds to compare algorithm variants.

Instructions

Compile once, then run the program N times (default 5) and report min/max/avg execution time in milliseconds. Useful for comparing algorithm variants on the real DOS runtime.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesC source code.
runsNoNumber of runs (1–50, default 5).
stdinNoOptional stdin fed to each run.
filenameNoOptional file name; normalized to DOS 8.3 (.C). Default MAIN.C.
extraCompilerArgsNoOptional extra Turbo C flags, e.g. ['-ms','-w-','-O'].
Behavior4/5

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

With no annotations, the description carries the transparency burden. It explains the compilation-once-then-multiple-runs behavior and the output metrics. However, it does not describe error handling (e.g., compilation failure) or the exact format of the report, leaving some gaps.

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 that efficiently convey the core workflow, default behavior, and use case. No filler or redundant information. Front-loaded with the key action (compile once, run N times).

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 tool is fairly simple: compile, run, report. The description covers the main workflow and output. However, it lacks details on error behavior (compile errors) and the exact structure of the reported numbers. With no output schema, more explicit output description would improve completeness.

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%, so all parameter descriptions are present. The description adds only a default for runs (already in schema) and mentions filename normalization (also in schema). No additional semantic value beyond what the schema 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?

The description clearly states the tool compiles once, runs N times, and reports min/max/avg execution time. The verb 'benchmark' is specific to repeated timing, and the description distinguishes it from siblings like compile_and_run by emphasizing multiple runs and statistics.

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 explicitly says 'Useful for comparing algorithm variants on the real DOS runtime,' which gives clear guidance on when to use it. It does not mention alternative tools or when not to use, but the context with siblings makes the use case sufficiently clear.

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/BBSRGUY/turboc-mcp-server'

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