Skip to main content
Glama

Mark Event

mark_event
Destructive

Inserts a named timestamp marker into events and logs so you can bound telemetry and log queries around known stimuli, such as before and after a stress workload.

Instructions

Drop a named marker into events.jsonl AND logs.jsonl.

Useful for aligning a timeline around a known stimulus: call before and after a stress workload, then query telemetry_timeline / logs_window with the markers' timestamps as bounds. The marker also lands in logs.jsonl with level=MARK so a single grep over logs picks it up.

Returns {ts, label}.

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

Input Schema

NameRequiredDescriptionDefault
dataNoOptional JSON object stored with the marker in events.jsonl.
noteNoOptional free text.
labelYesThe marker's name.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the write/non-idempotent/destructive profile, and the description adds substance beyond that: it names both files written, that markers land with level=MARK, and that timestamps serve as query bounds. It does not explain why the call carries destructiveHint=true or whether markers can be removed/overwritten, which is the remaining behavioral gap.

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?

Front-loaded with the action and destinations, then the workflow, then the log-level detail; every sentence carries new information. The trailing return-value sentence is mildly redundant with the output schema but is short and harmless.

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?

For a low-complexity three-parameter write tool with an output schema and full annotation coverage, the description covers destinations, use case, and downstream querying. Minor omissions are the interaction with events_window reads and cleanup/lifecycle of markers.

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 all three properties (label, note, data) carry their own schema descriptions, so the schema does the heavy lifting. The description only implies the label via 'named marker' and does not clarify how note vs. data differ in practice, so it adds little beyond the schema.

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

Purpose5/5

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

The first sentence names a concrete verb ('Drop a named marker') and the exact resources it writes to (events.jsonl and logs.jsonl), and the level=MARK detail pins down the log representation. This clearly separates it from read-side siblings like events_window, logs_window and telemetry_timeline.

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

Usage Guidelines4/5

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

It states a concrete usage pattern (call before and after a stress workload) and names the downstream consumers, telemetry_timeline and logs_window, with the condition for using them (markers' timestamps as bounds). What is missing is an explicit when-not/alternative case, e.g. when a config snapshot or send_input_event would be a better anchor.

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