Skip to main content
Glama

davinci_job_logs

Reads job logs in segments, merging stdout and stderr, and uses offset-based paging to inspect large logs without filling the context.

Instructions

分段读取作业日志(stdout + stderr 已合并落盘)。

大日志用 offset/next_offset 增量读取,避免一次灌满上下文。

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": {
      "job_id": "<job_id>"
    },
    "name": "davinci_job_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
offsetNo
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries full disclosure burden. It usefully reveals that stdout and stderr are pre-merged on disk and that reads are incremental, but it does not address retention windows, truncation, whether the response carries next_offset, or error behavior for an invalid job_id, leaving meaningful gaps.

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?

Two short sentences with the core purpose front-loaded and no filler. The parenthetical merge note earns its place, though the unexplained next_offset reference slightly muddies an otherwise tight definition.

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

Completeness3/5

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

For a three-parameter tool with no output schema, the description covers purpose and the chunking workflow. It omits the return shape (the response field that yields next_offset) and the meaning of max_chars, so an agent still has to guess at part of the contract.

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 0%, so the description must compensate for all three parameters. It partially does so for offset through the chunked-read explanation, but max_chars and job_id are not explained, and it references a next_offset that is not in the schema, which could confuse the agent.

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 phrasing "分段读取作业日志" states a specific verb (read) and resource (job logs), with the added detail that stdout and stderr are merged to disk. It is clearly distinguishable from job_status and job_cancel, though no sibling is explicitly named as an alternative.

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 tells the agent to use offset/next_offset for large logs to avoid flooding the context, which is useful usage guidance for chunked reads. However, it does not state when to choose this tool over job_status or when a log read is appropriate, leaving that to inference.

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