Skip to main content
Glama

test_tuning

Apply one structured Snort 3 tuning change to a copied detection, re-run the same pcap, and compare before/after alert counts per SID to validate the decision.

Instructions

Apply one structured change to a copy, re-run the same pcap, and return before/after counts per SID. Records a decision. change.kind is one of: suppress: {kind, sid, track:'by_src'|'by_dst', ip} event_filter: {kind, sid, type:'limit'|'threshold'|'both', track, count, seconds} rate_filter: {kind, sid, track, count, seconds, new_action, timeout} rule_edit: {kind, sid, rule:''} Example: test_tuning(before_run_id="r-0002", change={"kind":"suppress","sid":1000042,"track":"by_src","ip":"10.0.4.20"}, reason="known scanner")

Input Schema

NameRequiredDescriptionDefault
changeYes
reasonYes
before_run_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose valuable traits: the change is applied to a copy (live ruleset untouched), the pcap is re-run (costly operation), before/after per-SID counts are returned, and a decision record is persisted. It omits failure modes, whether before_run_id must reference an existing run, and whether repeated calls are idempotent.

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?

Purpose sentence is front-loaded, followed by the variant specs and a single worked example that exercises all three parameters. No filler; every line is load-bearing for correct invocation.

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?

Given a nested object with zero schema descriptions, no annotations, and no output schema, the description covers the hard part (change variants) and states the return shape. The remaining gap is the provenance of before_run_id and what happens when the change is invalid or the run id is unknown.

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% and the `change` object is opaque (additionalProperties: true), so the description must compensate — and it does, enumerating the exact required fields for all four change.kind variants. before_run_id and reason are only illustrated by the trailing example, not defined (e.g. where the run id comes from, why reason is required).

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?

States a precise action chain: apply one structured change to a copy, re-run the same pcap, return before/after counts per SID. The "to a copy" phrasing implicitly separates it from write_rules_file, but no sibling is named explicitly, so the differentiation is left to inference.

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?

The description implies a hypothesis-testing workflow (test a suppression/filter/rule edit before committing) and says it "Records a decision", but never states when to prefer this over run_pcap, diff_runs, or write_rules_file. Usage is inferable from the workflow rather than declared.

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