Skip to main content
Glama

Get container logs for a deployment

edgegap_get_deployment_logs
Read-only

Retrieve stdout, stderr, and crash output for a deployment to diagnose errors or unexpected server exits without redeploying.

Instructions

Retrieve stdout/stderr and crash output for a deployment. Call this whenever a deployment errors or a server exits unexpectedly — the crash exit code usually identifies the problem faster than redeploying does. Logs for stopped deployments are only retained if Endpoint Storage was configured on the version beforehand.

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": {
      "request_id": "<request_id>"
    },
    "name": "edgegap_get_deployment_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesThe request_id of the deployment.
max_charactersNoTruncate logs to this length (500-50000), keeping the tail. Default 8000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.12.0
    • changedInput schema / properties / max_characters / description
      Previous value: -"Truncate logs to this length, keeping the tail. Default 8000."New value: +"Truncate logs to this length (500-50000), keeping the tail. Default 8000."
    • changedInput schema / properties / max_characters / maximum
      Previous value: -50000New value: +9007199254740991
    • changedInput schema / properties / max_characters / minimum
      Previous value: -500New value: +-9007199254740991
  2. First observedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already establish this is a read-only, non-destructive, open-world call, so the description does not need to restate safety. It does add real behavioral value: it discloses that crash exit codes are included and, importantly, that logs for stopped deployments are retained only if Endpoint Storage was configured beforehand. It says nothing about rate limits, pagination, or what an empty result means, so the added context is meaningful but partial.

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?

Three sentences, each doing distinct work: what is returned, when to call it, and a retention caveat. The purpose and trigger are front-loaded, and there is no filler or repetition of the title.

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?

With no output schema, the description correctly describes the return content (stdout/stderr plus crash output) and warns about a real failure mode where logs are unavailable for stopped deployments. For a simple two-parameter read tool this is nearly complete, with only the empty/error-result behavior left implicit.

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 100%, with both request_id and max_characters documented including the 500-50000 range and default of 8000. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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 description opens with a specific verb and resource: 'Retrieve stdout/stderr and crash output for a deployment.' That is concrete and immediately actionable. It stops short of differentiating itself from the sibling edgegap_search_deployment_logs, so an agent must infer which log tool to pick.

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?

It gives an explicit trigger condition: 'Call this whenever a deployment errors or a server exits unexpectedly,' and adds a rationale that crash exit codes diagnose faster than redeploying. There are no stated exclusions or named alternatives for the case where the deployment is stopped and no logs were retained, which keeps this from a 5.

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