Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Update Log Parsing Rule

update_log_parsing_rule

Modify an existing New Relic log parsing rule's Grok, NRQL, or Lucene patterns and settings to correct parsing without creating a new rule.

Instructions

Update an existing log parsing rule

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": {
      "rule_id": "<rule_id>"
    },
    "name": "update_log_parsing_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
grokNo
nrqlNo
luceneNo
enabledNo
rule_idYes
account_idNo
descriptionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv1.3.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / account_id / title
      Removed value: -"Account Id"
    • removedInput schema / properties / description / title
      Removed value: -"Description"
    • removedInput schema / properties / enabled / title
      Removed value: -"Enabled"
    • removedInput schema / properties / grok / title
      Removed value: -"Grok"
    • removedInput schema / properties / lucene / title
      Removed value: -"Lucene"
    • removedInput schema / properties / nrql / title
      Removed value: -"Nrql"
    • removedInput schema / properties / rule_id / title
      Removed value: -"Rule Id"
    • removedInput schema / title
      Removed value: -"update_log_parsing_ruleArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"update_log_parsing_ruleOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"update_log_parsing_ruleArguments"
  3. First observed

TDQS

C2.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure and does not meet it. It does not say whether this is a partial or full replacement update, how null-defaulted fields are treated (cleared vs. left unchanged), whether the rule must exist or what happens if rule_id is unknown, or whether permissions/account scoping are required.

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

Conciseness3/5

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

The single short sentence is front-loaded and free of padding, so it is concise. But the brevity reflects under-specification rather than efficiency, since the tool has 7 parameters and zero annotation coverage to fall back on.

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?

An output schema exists, so return values need not be explained, but the definition still leaves the update semantics, field handling, and safety profile entirely undocumented for a 7-parameter mutation tool with no annotations. An agent could not reliably call this tool correctly from the description alone.

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 7 parameters, and the description mentions none of them. Critical ambiguities — whether rule_id identifies the target, and whether passing null for grok/nrql/lucene/enabled/description clears the value or leaves it untouched — are left entirely unexplained.

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?

The description names a specific verb ('Update') and resource ('an existing log parsing rule'), so the basic action is clear. However, it adds nothing beyond the title and does not distinguish it from siblings such as create_log_parsing_rule, delete_log_parsing_rule, or test_log_parsing_rule, nor does it indicate which rule attributes can be modified.

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 use this tool versus create_log_parsing_rule or test_log_parsing_rule, and no prerequisites or preconditions are stated. The agent must infer usage entirely from the tool name and sibling list.

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