Skip to main content
Glama

export_logs

Package recent logs or a single error's call into one file for bug reports, with secrets and home folder removed. Returns the file path and, in a project, its /files/ URL.

Instructions

Pack the log into one file to attach to a bug report: the steps of the last hours (or of one error's call or turn, with ref), the system and MOGA's version, with secrets and the home folder taken out. entries adds the app's own steps (the Studio and the stage send theirs). Returns the file's path and, in a project, its URL under /files/.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
hoursNo
levelNodebug
entriesNoThe app's own log entries
versionNoThe app's version, as the app knows it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent write that is not destructive; the description adds the important behavioral facts beyond that: secrets and the home folder are redacted, and the return is a file path plus a /files/ URL inside a project. It does not say where the file is written or whether repeated calls create duplicates, which matters given idempotentHint=false.

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?

Front-loads the purpose, then the two modes, then the redaction guarantee, then the return value — a sensible ordering. The nested parentheticals make it denser than necessary, but no sentence is filler.

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?

With no output schema, the description still states what is returned (path and, in a project, a URL). Combined with the redaction note and mode explanation, an agent has enough to call this correctly and to report the result to a user.

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 only 40%, and the description compensates well for three of five params: ref (one error's call or turn), hours (time window), and entries (the app's own log steps, with the note that Studio and stage send theirs). `level` and `version` are left to the schema descriptions, so the compensation is strong but not complete.

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 concrete verb and resource: pack the log into one file for attaching to a bug report, including system/version info. It also clarifies the two collection modes (recent hours vs. a single error via ref). It never names or contrasts with the `logs` sibling, so differentiation relies on the reader knowing that sibling's behavior.

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?

Clear usage context: use this to produce a single attachable artifact for a bug report, and use ref when you want one error's call or turn instead of a time window. No explicit when-not guidance or named alternatives, but the intent is unambiguous.

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

Deploy Server

Other Tools