Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Ingest logs

ingest_logs
Idempotent

Ingest log entries from Serilog, Elasticsearch, SQLite, or flat files into one searchable source for analysis, with replace or append modes for repeat imports.

Instructions

Ingest log entries from a data source (Serilog CLEF/JSON, Elasticsearch dump or live endpoint, SQLite database, or flat text file). Re-ingesting a source with the same name replaces its previous entries unless mode is "append".

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

Input Schema

NameRequiredDescriptionDefault
modeNoreplace (default) drops earlier entries from a source with the same name; append keeps them
nameNoFriendly name for this source (defaults to path or endpoint)
pathNoFile path to the log file or database (not needed for live Elasticsearch)
indexNoElasticsearch index name or pattern (default *)
limitNoMax documents to fetch from live Elasticsearch (default and max 10000)
tableNoTable name for the sql adapter (default Logs)
filterNoFilter: SQL WHERE clause for sql, query_string for elastic
sourceYesLog source adapter type
patternNoCustom regex for flatfile with groups (timestamp)(level)(message) or named groups
endpointNoElasticsearch base URL for live queries, e.g. http://localhost:9200. Credentials are only sent if it matches a configured source or ELASTIC_URL

Output Schema

NameRequiredDescriptionDefault
typeYes
errorsYes
sourceYes
skippedYes
ingestedYes
replacedYes
warningsYes
totalInStoreYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations declare idempotentHint=true and destructiveHint=false, and the description adds genuinely useful context beyond them: re-ingesting a source with the same name overwrites prior entries unless mode is "append". That overwrite behavior is the single most important thing an agent needs to know before calling, and it is not derivable from the annotations alone. It stops short of covering expected duration, partial-failure behavior, or size limits, which keeps it below a 5.

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?

Two sentences, front-loaded with the action and the supported source formats, then the destructive-overwrite caveat. Nothing is redundant and no sentence could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a full output schema, rich parameter descriptions, and annotations covering safety and idempotency, the description only needs to supply the overwrite contract and the source taxonomy, which it does. The remaining gap is prerequisite context such as credential requirements for live Elasticsearch, which appears only in the endpoint parameter description rather than the tool description.

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% across all ten parameters, so the schema already explains path, index, limit, table, filter, pattern, and endpoint. The description's restatement of the replace-vs-append default adds little that the mode parameter's own description does not already say. A baseline 3 is appropriate when the schema carries nearly all parameter meaning.

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 and resource ("Ingest log entries from a data source") and enumerates the four supported adapters, which maps directly onto the source enum. It is clearly distinct from read-oriented siblings such as search_logs or list_sources, though it does not name them explicitly.

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 only implied: the agent can infer this is the entry point for loading new log data, but the description never states when to prefer this over clear_logs (the inverse operation) or when ingestion is inappropriate. It does provide one useful decision rule about re-ingesting the same name, which is a usage constraint rather than a routing guideline.

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