Skip to main content
Glama

set_filter

Apply or update a live keyword filter on a serial terminal window to isolate matching device log lines; supports regex and enable/disable per port.

Instructions

Set the live filter of a window.

Input Schema

NameRequiredDescriptionDefault
portYes
enableNo
keywordYes
is_regexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing: it does not say whether setting a filter replaces or augments existing filters, whether enable=false clears it, whether filtering applies to already-buffered data, or what the tool returns. The single word "live" is the only hint that filtering affects incoming data rather than history.

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

Conciseness2/5

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

A single short sentence with no padding, but this is under-specification rather than conciseness; the space saved is space an agent needs in order to call the tool correctly.

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

Completeness1/5

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

For a four-parameter mutation tool with zero annotation coverage, no output schema, and undocumented parameters, the description is far short of what an agent needs. Nothing about the return value, error behavior on unknown port, or effect on existing filter state is present.

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

Parameters1/5

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

Schema description coverage is 0% across four parameters (port, keyword, enable, is_regex), and the description supplies no meaning for any of them — no example keyword syntax, no explanation of what is_regex changes, no clarification of enable's semantics relative to keyword.

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

Purpose3/5

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

States a verb ("Set") and an object ("the live filter of a window"), so it is more than a restatement of the name, but the purpose is vague: "window" and "live filter" are undefined in a toolset otherwise about serial ports, and nothing distinguishes it from siblings like read_filtered_data or clear_data_buffers.

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?

There is no guidance on when to call this versus alternatives, no prerequisites (must a port be connected first?), and no indication of how it relates to read_filtered_data or clear_data_buffers, which plainly touch the same filter concept.

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