Skip to main content
Glama

Run preset

run_preset
Read-onlyIdempotent

Run a saved Graylog preset query by name and optionally override its arguments for targeted log searches.

Instructions

Run a named preset query, optionally overriding its arguments.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPreset name from describe(what='presets')
instanceNoInstance from describe, e.g. 'payment/prod'; the default when omitted
overridesNoArguments overriding the preset, e.g. {"range": "6h"}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.1
    • changedInput schema / properties / instance / description
      Previous value: -"Instance from list_instances, e.g. 'payment/prod'; the default when omitted"New value: +"Instance from describe, e.g. 'payment/prod'; the default when omitted"
    • changedInput schema / properties / name / description
      Previous value: -"Preset name from list_presets"New value: +"Preset name from describe(what='presets')"
  2. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / instance / description
      Previous value: -"Graylog instance (environment) from list_instances, e.g. 'staging' or 'prod'; the default instance when omitted"New value: +"Instance from list_instances, e.g. 'payment/prod'; the default when omitted"
  3. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare read-only, idempotent, open-world, and non-destructive behavior. The description adds that this runs a stored query and accepts optional overrides, but does not explain error behavior, preset resolution, or what happens when overrides conflict with the preset.

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?

A single front-loaded sentence with no wasted wording. It immediately conveys the core action and the optional override behavior.

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?

For a three-parameter query tool with complete schema coverage and annotations, the definition is minimally adequate. It omits usage context relative to sibling tools and does not clarify preset discovery or failure modes, but the rich schema compensates for some of that.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema documents name, instance, and overrides with examples. The description only restates that a preset is named and arguments can be overridden, adding little beyond the structured schema.

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 clear verb and resource: run a named preset query, with optional argument overrides. It is distinct from siblings like aggregate or search_logs, though it does not explicitly name an alternative or explain what a preset is.

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?

Usage is implied: this is the tool for executing stored presets, optionally with overrides. However, it gives no explicit when-to-use guidance, no exclusions, and no comparison to sibling tools such as aggregate or search_logs.

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