Skip to main content
Glama

Get deployment logs

get_deployment_logs
Read-onlyIdempotent

Retrieve raw log lines and uncaught exceptions from a deployed workflow in your Cloudflare account, newest first, to diagnose runs that failed without explanation or show errors reported by deployment status checks.

Instructions

Read the raw log lines and uncaught exceptions a deployed workflow produced in the user's Cloudflare account, newest first. Use it when a run failed without explanation, or get_deployment_status shows errors you need to see. source in the answer says which log store responded; null means neither had anything for this window, which is not an error.

Input Schema

NameRequiredDescriptionDefault
limitNoLines to return, 1-100. Default 50.
sinceNoTime window. Default 24h.
sourceNoForce one store: Cloudflare Workers Logs, or the workflow's own log forwarder. Default tries the first, then the second.
workflowIdYesThe workflow's id, from list_workflows or create_workflow.

Output Schema

NameRequiredDescriptionDefault
linesYes
sinceYes
sourceYes
caveatsYes
rowsReadNo
scriptNameYes
workflowIdYes
unavailableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description adds real context beyond them: results are newest-first, and a null `source` means neither store had data for the window and is not an error. It stops short of describing volume/pagination limits or log-line format, so it is strong but not exhaustive.

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 it returns, when to reach for it, and how to interpret a null result. The resource definition is front-loaded before the usage triggers.

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?

An output schema exists, so return shape need not be spelled out, and the description still covers the one interpretation trap (null source). With annotations handling safety and schema handling parameters, nothing an agent needs to call or interpret it is missing.

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 coverage is 100%, and the schema itself documents defaults, enum values, and the source fallback ordering, so the description adds little on inputs. Its mention of `source` refers to the response field rather than the parameter's semantics, which slightly muddies the mapping. Baseline 3 is appropriate.

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?

States a concrete verb and resource: read raw log lines and uncaught exceptions produced by a deployed workflow, with explicit ordering ('newest first'). It also names the sibling it complements (get_deployment_status), so an agent can separate the two without opening schemas.

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?

Gives a direct trigger ('when a run failed without explanation') and an alternative-path trigger ('or get_deployment_status shows errors you need to see'). The escalation relationship to the sibling tool is explicit rather than inferred.

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