Skip to main content
Glama

colab_session_log

Retrieve Colab session history logs, filter by session, event type, or line count, or list all sessions with logs when no session is specified.

Instructions

Get session history logs.

Args: session: Session display name (omit to list all sessions with logs) lines: Number of lines to show (default: all) type: Filter by event type (e.g., execution, file_operation, session_created)

Returns: Log lines for the session, or list of sessions with logs if session omitted

Raises: ToolError: SESSION_NOT_FOUND, AUTH_EXPIRED, QUOTA_EXCEEDED, CLI_ERROR

Input Schema

NameRequiredDescriptionDefault
typeNo
linesNo
sessionNo

Output Schema

NameRequiredDescriptionDefault
logsYesLog lines
sessionNoSession name (None if listing all sessions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses the failure surface (SESSION_NOT_FOUND, AUTH_EXPIRED, QUOTA_EXCEEDED, CLI_ERROR) and the read-only nature via 'Get'. It does not say whether logs are persisted across restarts, what order lines are returned in, or whether output is truncated when lines is omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The docstring is front-loaded with the purpose, then Args/Returns/Raises in a predictable order with no padding. The Returns block partly restates what the output schema already conveys, which is the only wasted text, but it usefully characterizes the mode-dependent return.

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 3-param all-optional read tool with an output schema, the description supplies parameter meaning and an error taxonomy, which is most of what an agent needs. It stops short of ordering/persistence details and the interaction with sibling session tools, but nothing critical for a correct call is missing.

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?

Schema coverage is 0%, so all meaning must come from the description, and it does cover every parameter: session (omit for all), lines (default all), type (filter with concrete examples like execution, file_operation, session_created). Remaining gaps are that 'type' is not an explicit closed set and 'lines' doesn't say whether it takes the head or tail of the log.

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?

States a specific verb+resource ('Get session history logs') and clarifies the dual mode: session-scoped logs, or a list of loggable sessions when session is omitted. That dual-mode note partially separates it from colab_session_list, but the overlap (both can return a list of sessions) is not explicitly resolved by naming the sibling.

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?

The description gives a conditional usage hint ('omit to list all sessions with logs') and one filter example, so usage is implied rather than spelled out. It never states when to prefer this over colab_session_list or colab_session_get, nor any prerequisite such as an active session before logs exist.

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