Skip to main content
Glama

search_commands

Discover configured fire commands for a project or list all available commands by query. Use it before writing build, test, run, or deploy commands to avoid guessing.

Instructions

Discover the user's configured fire commands. Pass your working directory as cwd to see that project's local commands; omit it to use the server's directory. path is the exact command to run. Omit query or pass an empty string to list everything; otherwise it is a case-insensitive substring over paths, descriptions, and exec/eval templates. Underlying templates are hidden by default; request include_exec only for context, and never copy or run them directly. Use this first when the user names an app, service or task you don't recognize, and before writing your own build/test/run/deploy commands.

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": "search_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory whose local commands should be discovered. Defaults to the server's cwd.
queryNoOptional case-insensitive substring to match against command paths, descriptions, and exec/eval templates. Omit or pass an empty string to list every command.
include_execNoInclude underlying exec/eval templates for context. Never run these directly; run `path`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that exec/eval templates are hidden by default, that they must never be copied or executed, and how query matching works. It does not describe the return shape or what happens when nothing matches, which are the remaining gaps for a no-annotation 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?

Front-loaded with the purpose and the primary routing instruction, and each subsequent sentence addresses a distinct concern (cwd scope, query matching, template hiding). It is slightly dense and repeats some schema wording, but there is little waste.

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 three-optional-parameter discovery tool with no annotations and no output schema, the description covers scope, defaults, matching behavior, and the template-safety rule. The main omission is any indication of what a result entry looks like (path, description, template), which the absent output schema would otherwise supply.

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 100%, so the schema already documents all three optional parameters, and the description largely restates them (cwd default, query substring behavior). The one genuine addition is the warning that `include_exec` output is for context only and must not be executed, but that is safety framing rather than new parameter semantics.

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?

Opens with a specific verb and resource: "Discover the user's configured `fire` commands." It also implicitly separates discovery from execution by noting the returned `path` is what you run, which keeps it distinct from the execution-oriented siblings like run_command/start_session.

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

Usage Guidelines5/5

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

Gives explicit when-to-use guidance: "Use this first when the user names an app, service or task you don't recognize, and before writing your own build/test/run/deploy commands." It also states defaults (omit `cwd` to use the server directory) and a clear constraint on `include_exec` (context only, never copy or run).

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