Skip to main content
Glama

serial_search

Read-onlyIdempotent

Search captured serial-port logs with regular expressions to isolate errors like HardFault within a recent time window.

Instructions

Regex-search the full captured history (daily log files) — e.g. find every HardFault in the past hour.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoSerial port name, e.g. COM5 or /dev/ttyUSB0
limitNoMax matches (default 200)
eventsNoEvent presets to search for
patternNoRegular expression
since_minutesNoOnly search logs newer than this

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful scope context — it searches 'captured history (daily log files)' rather than a live buffer — but it does not disclose details like result limiting, regex flavor, or whether matching is case-sensitive. This is comparable to a filtered-list tool where annotations carry the safety burden.

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?

One focused sentence with an example. The core action 'Regex-search' is front-loaded, and there is no filler or repetition of schema fields.

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?

All five parameters are documented by the schema, annotations cover safety, and the description gives the key scope ('full captured history'). There is no output schema, so a little more detail about return shape would be helpful, and the description does not mention how the events preset parameter relates to pattern. Still, an agent has enough to invoke the tool correctly.

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 baseline is 3. The description's example hints at using pattern and since_minutes together, but it does not add parameter-level meaning beyond what the input schema already provides.

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 states a specific verb and resource: 'Regex-search the full captured history (daily log files)'. The example 'find every HardFault in the past hour' makes the purpose concrete and distinguishes it from sibling serial_get_recent and serial_get_log tools, which are about retrieving logs rather than regex-searching captured history.

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

Usage Guidelines4/5

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

The description clearly implies when to use it: when the agent needs to pattern-match across persisted log history rather than inspect live or recent serial output. However, it does not explicitly name alternatives or state when not to use it, so it falls short of a full usage guide.

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