Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Test Log Parsing Rule

test_log_parsing_rule

Validate log parsing rules by testing them against sample logs; automatically generates a grok pattern when none is provided.

Instructions

Test a log parsing rule against sample logs. If no grok_pattern is provided, it will generate one automatically.

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": {
      "log_samples": "<log_samples>"
    },
    "name": "test_log_parsing_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idNo
log_samplesYes
grok_patternNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.3.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / account_id / title
      Removed value: -"Account Id"
    • removedInput schema / properties / grok_pattern / title
      Removed value: -"Grok Pattern"
    • removedInput schema / properties / log_samples / title
      Removed value: -"Log Samples"
    • removedInput schema / title
      Removed value: -"test_log_parsing_ruleArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"test_log_parsing_ruleOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"test_log_parsing_ruleArguments"
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose a genuine behavioral trait beyond the schema, namely auto-generation of a missing grok_pattern, but it does not say whether the generated pattern is persisted, whether the operation is side-effect free, or what happens when samples fail to match.

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?

Two short sentences, with the core action front-loaded and the optional-parameter behavior immediately after. No filler, though the second sentence could have been folded into the first without loss.

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?

An output schema exists, so return values need not be explained. However, for a three-parameter tool with zero schema documentation and no annotations, the description leaves account_id and sample format unexplained, so an agent still has gaps before calling it.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate. It only clarifies that grok_pattern is optional and that samples are involved; account_id is never mentioned and log_samples format is not described, leaving a meaningful gap.

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: testing a log parsing rule against sample logs. That is clear enough to distinguish it from list/create/update/delete siblings, but it never explicitly contrasts with generate_log_parsing_rule, the sibling it is most likely to be confused with.

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?

It gives one useful usage condition: if no grok_pattern is supplied, one is generated automatically. It does not say when to test rather than call generate_log_parsing_rule directly, nor whether testing is a prerequisite to creating a rule.

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