Skip to main content
Glama

grep_tmp

Read-only

Search an agent's forwarded /tmp using the host's real grep binary via argv (no shell); select cwd or file path and get exit code, stdout, and stderr.

Instructions

Proxy a call to the host's real grep binary against an agent's forwarded /tmp. args is passed as an argv array with no shell. cwd selects a directory under tmp; path optionally appends a file (relative to cwd) to grep. Use relative paths, e.g. args=['-rn', 'pattern', '.'] or args=['-n', 'pattern'] with path='file.txt'. Returns exit code, stdout, and stderr.

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": {
      "agent_id": "<agent_id>",
      "args": "<args>"
    },
    "name": "grep_tmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
argsYes
pathNo
agent_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds meaningful behavior beyond that by noting the argv array is passed with no shell (so no globbing/quoting/pipe semantics) and that it runs the host's real grep binary against the forwarded filesystem. It does not cover failure modes such as a non-zero exit on no match or what happens with an invalid agent_id, which is a modest gap.

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?

Dense and front-loaded: identity, argv mechanics, path composition, and examples in four sentences with no filler. The closing sentence about returning exit code, stdout, and stderr is slightly redundant given an output schema exists, but it is one clause.

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 proxied shell-argv tool the critical details — no shell interpretation, how cwd and path combine, relative-path requirement — are all present, and return values are backed by an output schema. Minor omissions are the meaning of an empty default cwd and any agent connectivity requirement.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the burden and mostly does: it explains args as an argv array without shell interpretation, cwd as a directory under tmp, and path as a file relative to cwd appended to the argv. Only agent_id is left unexplained, and the worked examples make the cwd/path interaction concrete.

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

Purpose4/5

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

The description states a specific verb and resource plus a distinguishing scope: it proxies the host's real grep against an agent's forwarded /tmp, so it is clearly the remote-filesystem counterpart to a local grep. It stops short of naming the sibling `grep` or explicitly contrasting the two, so an agent must infer the division of labor from the '/tmp' scoping.

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?

Usage guidance is limited to invocation mechanics — use relative paths, and examples showing args with and without a path. There is no statement of when to choose this over `grep`, `read_tmp`, or `list_tmp`, and no exclusions or prerequisites (e.g. whether the agent must be connected first).

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