Skip to main content
Glama
finch-shell-mcp
by hlint

Start a job

exec

Runs a program or shell script in a chosen working directory, optionally feeding stdin and enforcing time, CPU, and memory limits. Returns the last 4096 characters of output.

Instructions

mode is required. argv uses program and args. shell uses script and interpreter. The default wait is 10 seconds and does not kill the job. The response is the last 4096 characters.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNocwd
envNoenv
argsNoargs
modeNomode
nameNoname
tagsNoString keys and values. At most 16 pairs. Keys up to 32 characters, values up to 128.
stdinNostdin
scriptNoscript
ttl_msNottl_ms
programNoprogram
timeoutNotimeout
env_modeNoenv_mode
grace_msNograce_ms
close_stdinNoclose_stdin
interpreterNointerpreter
cpu_limit_msNocpu_limit_ms
mem_limit_mbNomem_limit_mb

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description must carry the whole behavioral burden, and it does disclose two genuinely useful traits: the 10-second default wait does not terminate the job, and the response is truncated to the last 4096 characters. However, it omits that this executes arbitrary programs (a major side-effect profile), that the job persists and must be managed through siblings, and that output before the final 4096 characters is lost.

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?

Five short sentences, the hard requirement ('mode is required') front-loaded, and no filler. The telegraphic fragment style costs a little readability but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter tool with no annotations and no output schema, the description covers only the mode split, the wait default, and output truncation. The lifecycle relationship to job_read/job_kill/job_send, the distinction between timeout and ttl_ms, resource limits, and stdin handling are all left unspecified.

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 reads 100%, but every schema description is a bare restatement of the property name ('cwd', 'env', 'args'), so the description is doing real work when it explains that mode is required and that argv mode consumes program/args while shell mode consumes script/interpreter. That said, 13 of the 17 parameters (timeout vs ttl_ms, grace_ms, cpu_limit_ms, mem_limit_mb, stdin, close_stdin, env_mode, name, tags) receive no explanation anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states outright that this launches a process/command and returns a job handle; the agent has to infer that from fragments like 'argv uses program and args' and 'shell uses script and interpreter'. The title 'Start a job' carries most of the semantic weight, and the two execution modes are only implied rather than named as the tool's function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus job_read, job_kill, job_send, or job_list, even though the 'default wait ... does not kill the job' sentence strongly implies a follow-up interaction with those siblings. No preconditions, no alternatives, no when-not guidance are given.

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