Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Clear logs

clear_logs
DestructiveIdempotent

Remove ingested log entries from memory by source name, or clear all sources when no source is specified.

Instructions

Remove ingested log entries from memory: a single source by name, or everything when no source is given.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoExact source name to remove. Omit to clear all sources.

Output Schema

NameRequiredDescriptionDefault
removedYes
remainingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered structurally. The description adds the useful qualifier 'from memory', narrowing what gets destroyed to in-memory ingested entries, but it does not say whether the loss is recoverable, whether it affects downstream derived data like grouped patterns or timelines, or whether any permission is required.

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?

One sentence, front-loaded with the verb and resource, with the destructive branching condition placed immediately after. There is no filler and every clause carries meaning.

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 no explanation, and the annotations cover the read-only/idempotent/destructive profile. What remains missing is proportionate to a destructive tool: no note on irreversibility, blast radius on derived data, or how to obtain valid source names, all of which an agent would want before calling it.

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%, so the single 'source' parameter is already fully documented as an exact source name that, when omitted, clears all sources. The description's wording largely restates the schema rather than adding format or matching details, so baseline 3 applies.

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 gives a specific verb ('Remove') and resource ('ingested log entries from memory'), and the scope clause ('a single source by name, or everything') makes the two modes of operation unambiguous. It does not name a sibling to contrast with, so it stops short of 5, but an agent can tell this is a deletion tool rather than a search or ingestion one.

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 by the scope clause: pass a source to target it, omit it to wipe everything. There is no explicit when-not guidance, no warning about when clearing is inappropriate, and no reference to alternatives such as list_sources for discovering valid names before destructively clearing.

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