Skip to main content
Glama

Read logs

get_logs
Read-onlyIdempotent

An environment's logs (or a build's: build_id), most recent first, filterable by a text.

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": "get_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoLines returned: 100 by default, 200 with build_id; 1,000 at most.
queryNoA LogsQL filter (VictoriaLogs' query language: https://docs.victoriametrics.com/victorialogs/logsql/), for example "timeout"; "error": the error lines.
trialNoThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
projectNoThe project.
build_idNoTo read a build's log rather than the application's.
environmentNoProduction or a preview.production

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"The key returned by the first deploy_app (trial_key), passed again on each call."New value: +"The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call."
  2. First observed

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuine behavior beyond that: results are ordered most recent first and are filterable, and build_id switches the target from the application's log to a build's log. It says nothing about truncation, retention window, or what an empty result means, and the schema rather than the description carries the trial-key mechanics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short fragment with no waste, which is good, but it is telegraphic to the point of being under-specified rather than genuinely concise. A leading verb and one clause of scope would have cost a few words and removed the ambiguity.

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?

For a read-only tool with all six parameters fully described, no output schema and strong annotations, the description is marginally adequate. Gaps remain around default behavior with zero arguments (presumably production environment logs) and result truncation, which an agent needs in order to call it correctly.

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%, so every parameter including the LogsQL query syntax, limit defaults (100/200, max 1,000) and the production default for environment is already documented in the schema. The description only restates that a text filter exists, adding no syntax or format detail 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.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the resource (an environment's or a build's logs) and two traits (most recent first, text-filterable), but it is a noun fragment with no verb and no differentiation from sibling reads such as get_activity_log or read_source. An agent can infer the purpose from the name plus this fragment, but the definition itself doesn't state what the tool does in a sentence.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. The parenthetical about build_id hints at a second mode but does not say which mode an agent should prefer or what happens when neither project nor environment is supplied.

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.

Resources