Skip to main content
Glama
AgentsID-dev

AgentsID Guard

Official
by AgentsID-dev

log_search

Search a log file for a pattern to find matching entries, aiding in troubleshooting and monitoring. Optionally limit the number of results.

Instructions

Search a log file for a pattern. Requires log.read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to log file
linesNoMax results (default: 50)
patternYesSearch pattern (case-insensitive)
Behavior2/5

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

There are no annotations, so the description carries the full burden of behavioral disclosure. It only adds a permission requirement ('Requires log.read') and does not explain result format, search semantics, pagination, or error behavior.

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

Conciseness5/5

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

The description is two short sentences, front-loaded with the primary action and a permission note. Every word earns its place with no redundancy.

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

Completeness3/5

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

For a simple tool with fully documented parameters, the core action is clear. However, the lack of an output schema and missing usage/behavioral guidance means the agent must infer return values and appropriate use cases.

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?

All three parameters are described in the schema with clear meanings (e.g., 'Search pattern (case-insensitive)', 'Max results (default: 50)'), giving 100% schema coverage. The description adds no additional parameter-level detail.

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 uses a specific verb+resource pair ('search a log file for a pattern'), making the tool's purpose clear. It is distinct from generic file reads or shell commands by focusing on pattern search within a log file.

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?

The description provides no guidance on when to use this tool versus alternatives like log_read, file_read, or shell_run. The only contextual hint is the permission requirement, which is not a usage guideline.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentsID-dev/shell-guard'

If you have feedback or need assistance with the MCP directory API, please join our Discord server