Skip to main content
Glama

CLI tool scaffold

submit_cli_tool_scaffold
Idempotent

Generate a runnable argparse command-line tool with a subcommand per declared name, a test module and a README. At the start of a CLI project, to get the argument plumbing and tests in place. Do not choose this when you want the subcommand logic implemented, which needs a specification. Example requests: Scaffold a CLI tool with these subcommands. | Generate an argparse entry point for my new command. | Give me a starter Python CLI with tests and a README.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_cli_tool_scaffold"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe amount accepted, exactly as quoted (for example "5.00" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit.

Output Schema

NameRequiredDescriptionDefault
quoteNo
stateYes
job_idYes
artifactsNo
access_tokenNoPer-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.
verificationNoIndependent verification. verification.ok = false means the job failed, not a partial success.
capability_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare the operation is non-read-only, idempotent, non-destructive and closed-world; the description usefully adds that the output is runnable scaffolding rather than working logic. However, it says nothing about the priced-job nature implied by the required quote_id and accepted_price parameters, nor about authorization requirements (authorized_by), which are significant behavioral facts for a submit_* tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The structure is front-loaded and logical: purpose, then timing, then exclusion, then examples. The three example requests largely restate the same intent and could be trimmed, but the body prose is dense and earns its place.

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?

For a scaffold generator with a full output schema and reasonably documented nested inputs, the description covers what is produced and when not to use it. The remaining gap is the submission/authorization flow (quote_id, accepted_price, authorized_by) that the schema requires but the description never explains, which matters for a priced job 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 75% and the nested inputs object documents behaviour, tool_name and subcommands in detail, so the baseline is 3. The description's phrase 'a subcommand per declared name' loosely maps to tool_name/subcommands but adds no format or constraint detail beyond the schema, and the three top-level authorization/pricing parameters go unmentioned.

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 opens with a specific verb and resource — 'Generate a runnable argparse command-line tool' — and enumerates the exact artifacts produced (a subcommand per declared name, a test module, a README). It also draws a boundary against the adjacent capability of implementing subcommand logic, which separates it from siblings like submit_python_utility_module or submit_python_multifile_package.

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?

It gives both a positive trigger ('At the start of a CLI project, to get the argument plumbing and tests in place') and an explicit exclusion ('Do not choose this when you want the subcommand logic implemented, which needs a specification'). What it lacks is naming the concrete sibling to use instead when logic implementation is wanted, so routing is by condition rather than by tool name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources