Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Create Log Parsing Rule

create_log_parsing_rule

Create a log parsing rule with Grok patterns and NRQL to extract structured fields from New Relic logs for querying and analysis.

Instructions

Create a new 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": {
      "description": "<description>",
      "grok": "<grok>",
      "nrql": "<nrql>"
    },
    "name": "create_log_parsing_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
grokYes
nrqlYes
luceneNo
enabledNo
account_idNo
descriptionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 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 / title
      Removed value: -"create_log_parsing_ruleArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"create_log_parsing_ruleOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"create_log_parsing_ruleArguments"
  3. First observed

TDQS

D1.3/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden and delivers none. It says nothing about required permissions/account scoping, whether grok or nrql or lucene is mandatory and how they interact, defaults like enabled=true, or what happens to existing rules.

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?

The single sentence is short but that brevity is under-specification rather than efficiency; it conveys no information beyond the name. There is no structure, no front-loaded guidance, and nothing for the sentence to earn its place against.

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 six-parameter mutation tool with no annotations, one sentence is grossly inadequate. The presence of an output schema relieves the need to document return values, but the input contract, prerequisites, and sibling fit are all missing.

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 six parameters, and the description contributes zero meaning. Domain-specific fields like grok, nrql, and lucene are left entirely unexplained, including which are required and how they combine, so an agent cannot construct a valid call from this definition alone.

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

Purpose2/5

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

The description restates the tool name and title verbatim ('Create a new log parsing rule') with no additional specificity. It does not explain what a log parsing rule is, what domain object it targets, or how it differs from siblings such as generate_log_parsing_rule or test_log_parsing_rule.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no preconditions, and no mention of the sibling tools an agent must choose between (list/update/delete/test/generate log parsing rule). An agent has nothing to route on beyond the verb 'create'.

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