Skip to main content
Glama

get_runtime_logs

Read-only

Retrieve a running app's runtime logs to inspect its output, filter for errors or matching text, and fetch only newer log lines using a cursor.

Instructions

Logs of the running app (its own output, not the build): latest deployment by default. search keeps lines containing a text; errors_only keeps error-looking lines. Pass the returned cursor as after_id to get only newer lines.

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": {
      "project_id": "<project_id>"
    },
    "name": "get_runtime_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
searchNo
after_idNo
max_linesNo
project_idYes
errors_onlyNo
deployment_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

Annotations already declare readOnlyHint and a closed world, so the safety profile is covered. The description adds real behavior beyond that: default scope is the latest deployment, and the returned cursor passed as after_id yields only newer lines — a non-obvious pagination contract. It omits what happens when deployment_id is supplied and whether max_lines truncates silently.

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?

Compact and front-loaded: the resource and its scope come first, then parameter semantics. The telegraphic phrasing ('search keeps lines containing a text') is efficient but borders on cryptic, and 'latest deployment by default' leaves the override condition implicit.

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?

An output schema exists, so return values need not be explained, and safety is covered by annotations. However, for a 6-parameter filtering tool with zero schema descriptions, the missing max_lines and deployment_id semantics leave an agent guessing on truncation and deployment targeting.

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% across 6 parameters, so the description must carry the burden. It meaningfully explains three of them (search, errors_only, after_id) but leaves max_lines, project_id, and deployment_id — including whether deployment_id overrides the 'latest deployment by default' rule — undocumented anywhere.

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 resource and verb ('Logs of the running app') and explicitly scopes it against the nearest alternative with '(its own output, not the build)', which routes an agent away from get_build_logs. It stops short of distinguishing itself from get_runtime_errors, the other plausibly overlapping sibling.

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?

Gives clear operational context: latest deployment by default, use search to keep matching lines, errors_only for error-looking lines, and after_id for incremental polling. It never states when another tool (e.g. get_runtime_errors) is the better choice, so the alternative-selection half of usage guidance is absent.

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