Skip to main content
Glama

Get project logs

get_project_logs
Read-only

Fetch a spawnpoint project's logs to diagnose a failed deploy or a misbehaving app. To learn whether the app is getting errors, how many, and on which paths, call get_project first: its activity block counts them. kind=push (the default) returns the last deploy's combined output: upload, dependency install, and start. Read it first when a deploy errors; a pip or npm failure prints its actual cause there. kind=runtime fetches the last 200 lines of the app's own journal live from the machine (takes a few seconds; works only while the machine exists; limited per account to a burst of 10, then one every 6 seconds, so read it once per fix rather than polling). kind=history reads what the app printed in a window (since, until; at most 24 hours, default the last hour), kept for days even after a crash, a restart, or a new machine, optionally only lines containing query; use it for questions about the past, such as what the app logged yesterday or before it went down. kind=runs lists the last 20 scheduled runs (set_schedule) with each one's status, HTTP status, and what the app answered. Fix what the log shows and redeploy under the same name.

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_project_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNowhich log: push (the last deploy's upload/install/start output; default), runtime (the app's journal tail, fetched live from the machine), history (what the app printed in a time window, kept even after a restart or a new machine), or runs (the last scheduled runs and what the app answered)
queryNokind history only: keep only lines containing this text (plain text, any case)
sinceNokind history only: where the window starts, RFC 3339 (2026-11-10T03:00:00Z) or a duration back from now (1h, 24h); default 1h ago
untilNokind history only: where the window ends, the same forms; default now. A window is at most 24 hours
project_idYesthe id of the project

Output Schema

NameRequiredDescriptionDefault
logYes
kindYes
moreNo
noteNo
runsNo
next_untilNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"which log: push (the last deploy's upload/install/start output; default), runtime (the app's journal tail, fetched live from the machine), or runs (the last scheduled runs and what the app answered)"New value: +"which log: push (the last deploy's upload/install/start output; default), runtime (the app's journal tail, fetched live from the machine), history (what the app printed in a time window, kept even after a restart or a new machine), or runs (the last scheduled runs and what the app answered)"
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "kind history only: keep only lines containing this text (plain text, any case)",
      +  "type": "string"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "description": "kind history only: where the window starts, RFC 3339 (2026-11-10T03:00:00Z) or a duration back from now (1h, 24h); default 1h ago",
      +  "type": "string"
      +}
    • addedInput schema / properties / until
      Added value: +{
      +  "description": "kind history only: where the window ends, the same forms; default now. A window is at most 24 hours",
      +  "type": "string"
      +}
    • addedOutput schema / properties / more
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / next_until
      Added value: +{
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"which log: push (the last deploy's upload/install/start output; default) or runtime (the app's journal tail, fetched live from the machine)"New value: +"which log: push (the last deploy's upload/install/start output; default), runtime (the app's journal tail, fetched live from the machine), or runs (the last scheduled runs and what the app answered)"
    • addedOutput schema / properties / runs
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "attempt": {
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "type": "integer"
      +      },
      +      "error_explained": {
      +        "type": "string"
      +      },
      +      "http_status": {
      +        "type": "integer"
      +      },
      +      "response": {
      +        "type": "string"
      +      },
      +      "run_id": {
      +        "type": "string"
      +      },
      +      "schedule": {
      +        "type": "string"
      +      },
      +      "scheduled_for": {
      +        "type": "string"
      +      },
      +      "started_at": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "trigger": {
      +        "type": "string"
      +      },
      +      "woke": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "run_id",
      +      "schedule",
      +      "trigger",
      +      "scheduled_for",
      +      "started_at",
      +      "status",
      +      "attempt",
      +      "http_status",
      +      "duration_ms",
      +      "woke",
      +      "response"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, yet the description still adds substantial operational context: runtime is a live fetch that takes seconds, works only while the machine exists, and is throttled to a burst of 10 then one per 6 seconds; history is retained for days across crashes and machine changes. What is missing is mostly return-shape detail, which the output schema covers.

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?

Information is front-loaded and organized as parallel 'kind=...' clauses, so it scans well despite its length. A few clauses are dense but none are pure filler; the closing 'redeploy under the same name' is the only sentence that could arguably be trimmed.

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

Completeness5/5

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

Covers every mode, its availability constraints, latency, retention, and rate limits, and an output schema exists so return values need no explanation. An agent has everything needed to choose a kind and call it correctly on the first try.

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 100%, so the baseline is 3, but the description goes further by explaining what each kind value actually yields in practice (push = upload/install/start output, history = app output kept after restart, runs = last 20 scheduled runs) and by flagging defaults and the 24-hour window cap. This makes the enum-like kind choice meaningful rather than a list of labels.

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?

Opens with a specific verb and resource ('Fetch a spawnpoint project's logs') and immediately states the diagnostic outcome it serves. It then enumerates the four log kinds with concrete contents, so an agent can distinguish this from get_project, deploy_project, or run_schedule without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use get_project first to see error counts and paths, use kind=push first when a deploy errors, use kind=history for questions about the past, and read runtime 'once per fix rather than polling.' It names the alternative tool and the exact conditions that select each path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.