Skip to main content
Glama

get_python_task_logs

Fetch stdout and stderr logs from launchd-managed Python tasks. Optionally filter by task name and choose tail lines to troubleshoot execution issues.

Instructions

Fetch per-task execution logs (stdout/stderr).

Args: task_name: Optional original task name. If omitted, return logs for all matching tasks. label_prefix: Reverse-domain prefix used for managed task labels. lines: Number of tail lines to return from each log file. include_stdout: Include stdout logs. include_stderr: Include stderr logs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNo
task_nameNo
label_prefixNolink.igtm.launchd-mcp
include_stderrNo
include_stdoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose useful behavior: omitting task_name returns logs for all matching tasks, and lines reads the 'tail' of each log file, implying truncation. However, it is silent on matching semantics (exact vs partial), behavior when no tasks match, and any prerequisites around label_prefix.

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?

The description is a single summary line followed by a one-line-per-argument block. Every sentence adds information about a specific parameter or core behavior, with no filler. The most important scoping fact is front-loaded near the top of the Args list.

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 five-parameter tool with zero annotations and zero schema descriptions, the description covers core invocation details and all parameter semantics, and an output schema exists so the return structure is handled elsewhere. The notable gap is edge-case behavior (no matching task, unmatched label_prefix) and usage positioning, keeping it just short of fully complete.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates fully by documenting all five parameters. It adds meaning beyond the bare schema titles: task_name gets scoping behavior ('If omitted, return logs for all matching tasks'), lines gets the 'tail' truncation nuance, and label_prefix gets reverse-domain context. This is exactly the compensation a bare schema requires.

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 opening line 'Fetch per-task execution logs (stdout/stderr)' names a specific verb, resource, and scope. The purpose is self-evidently distinct from all siblings, which cover service management and task CRUD rather than log retrieval. No ambiguity remains about what this tool does.

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

Usage Guidelines2/5

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

No guidance is given about when to use this tool versus alternatives. The description never references sibling tools or states conditions that would select this over list_python_tasks or the service-management tools. An agent must infer the appropriate context from the tool name and defaults alone.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/igtm/launchd-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server