Skip to main content
Glama

ai_shell

Read-only

Plain English to shell command — Turn a task described in plain English into one shell command (bash, zsh, fish, PowerShell or cmd) with a short explanation and a rule-based risk rating: SAFE, NETWORK, ELEVATED or DESTRUCTIVE, with flags such as recursive delete, raw disk write or piping a download into a shell. Params: q (required), shell (default bash), os (linux|macos|windows). Llama 3.3 70B on Workers AI. Price: $0.006 USDC (Base, via x402).

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": {
      "q": "<q>"
    },
    "name": "ai_shell"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesfind files larger than 100MB in my home folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description is consistent with generation-only behavior: it returns a command with an explanation and a rule-based risk tier (SAFE/NETWORK/ELEVATED/DESTRUCTIVE) plus flagged constructs. It also goes beyond annotations by naming the backing model and the price, though it never explicitly says the command is not executed on the caller's behalf.

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 core purpose is front-loaded and the enumeration of risk tiers and flagged constructs is informative rather than filler. It is dense — model name and pricing sit in the same breath as the functional spec — but no sentence is wasted.

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?

With no output schema, the description carries the return-value burden and does so: command, short explanation, and a risk rating with named flags. The gap is the unstated execution semantics (generate-only vs run) and the shell/os parameters that are described but absent from the schema.

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 nominally 100%, but the single documented property 'q' only carries an example string, not a definition. The description compensates by naming q as required and adding shell (default bash) and os (linux|macos|windows), yet those two parameters do not actually appear in the input schema — useful meaning, but with an inconsistency that could mislead an agent.

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+resource pair ('Turn a task described in plain English into one shell command') and narrows the scope to bash, zsh, fish, PowerShell or cmd. It also states the outputs (explanation + risk rating), which distinguishes it from generic siblings like ai_explain_code or ai_chat.

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 use case (natural language → a single shell command) is clearly implied, but there is no explicit 'use this when...' framing, no exclusions, and no named alternatives. An agent can infer the right context but must do the routing work itself.

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