Skip to main content
Glama

process_get

Read-onlyIdempotent

Read a process's log output by selecting time ranges, line ranges, or byte limits, defaulting to the last 100 lines.

Instructions

Read a log slice: time, then lines, then UTF-8 text bytes.

With neither selector, return the last 100 lines. Line ranges are inclusive; time ranges are [start, end) seconds from process start. Last seconds end at now for running processes, at completion otherwise. Returned line numbers remain absolute; a byte limit can cut a line.

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

Input Schema

NameRequiredDescriptionDefault
timeNoChoose exactly one object form: {"first": N}, {"last": N}, or {"start": A, "end": B}, with no extra fields. Values are finite seconds from process start; N > 0, 0 <= A < B, and the end is excluded.
linesNoChoose exactly one object form: {"first": N}, {"last": N}, or {"start": A, "end": B}, with no extra fields. All values are integers >= 1; ranges require A <= B and include both ends.
max_bytesNo
process_idYes

Output Schema

NameRequiredDescriptionDefault
linesNo
processYes
transcriptYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / lines / description
      Added value: +"Choose exactly one object form: {\"first\": N}, {\"last\": N}, or {\"start\": A, \"end\": B}, with no extra fields. All values are integers >= 1; ranges require A <= B and include both ends."
    • addedInput schema / properties / time / description
      Added value: +"Choose exactly one object form: {\"first\": N}, {\"last\": N}, or {\"start\": A, \"end\": B}, with no extra fields. Values are finite seconds from process start; N > 0, 0 <= A < B, and the end is excluded."
  2. Addedv0.2.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description still adds real behavioral detail: the filter ordering (time before lines before byte cap), the default of last 100 lines, the half-open time-range boundary vs. inclusive line ranges, how 'last seconds' resolves for running vs. completed processes, and the warning that a byte limit can truncate a line.

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 pipeline summary, then boundary rules in short clauses with no filler. Every sentence encodes a distinct fact (default, inclusivity, boundary resolution, absolute numbering, truncation risk) and none repeat the schema or annotations.

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?

An output schema exists, so return shape need not be described, and the description covers selectors, default, boundaries, and truncation. The only minor gap is behavior on out-of-range line selections and any process-not-found error, which an agent might still want to know.

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

Parameters4/5

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

At 50% schema coverage the description carries real load and mostly does: 'time, then lines, then UTF-8 text bytes' explains the evaluation order across selectors, which the schema does not, and 'a byte limit can cut a line' gives max_bytes meaning its bare default/minimum lacks. process_id is left uncharacterized, but its meaning is unambiguous from context.

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?

Opens with a specific verb and resource: 'Read a log slice', and the colon enumerates the three-stage pipeline (time, then lines, then UTF-8 text bytes). It is clearly a process-log reader rather than a sibling like processes_overview, though it never names a sibling to sharpen the distinction.

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 rather than stated: the 'with neither selector' default (last 100 lines) tells the agent what happens when it passes nothing, which indirectly signals this is the selective counterpart to a coarse overview. There is no explicit when-to-use/when-not-to-use guidance and no pointer to processes_overview for non-log process data.

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