Skip to main content
Glama

Read logs

logs_get
Read-onlyIdempotent

Recent log lines for a branch, newest first: auth, rest, storage, realtime, functions or gateway. Scope: logs:read.

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

Input Schema

NameRequiredDescriptionDefault
levelNoMinimum level
limitNoLines to return (default 100)
branchNoBranch id, e.g. `pr-42`. Default `production`.
cursorNoThe next_cursor of the previous page
searchNoCase-insensitive text to find in messages
serviceNoService to read (default all)
since_msNoOnly lines at or after this epoch-millisecond time
project_idNoProject id, e.g. `todo-app`. Default: the last one used, or your only one.
organization_idNoOrganization id, e.g. `acme`. Default: the token's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds useful context that is not in the schema: result ordering (newest first) and the required scope (logs:read). It does not disclose retention horizon, page size behavior, or what a log line contains.

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?

Two compact clauses with the returned resource and its ordering front-loaded, followed by the permission scope. No filler or restated name/title boilerplate.

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 nine optional parameters and full schema coverage, the definition plus schema is enough to invoke the tool confidently; the missing pieces (log line shape, retention window) are modest given there is no output schema and annotations carry the safety profile.

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%, so every parameter is already documented with defaults and enums, giving a baseline of 3. The description reinforces the service enum but adds no syntax, interaction, or precedence detail (e.g., how search combines with level) beyond the schema.

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 specific verb+resource ('Recent log lines for a branch') plus ordering ('newest first') and the service taxonomy covered. It is clear what the tool returns, though it never says how it differs from any sibling that might also expose operational data.

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

Usage Guidelines3/5

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

Usage is implied by the resource itself (read logs) and the 'logs:read' scope hints at permissions, but there is no explicit when-to-use, when-not-to-use, or guidance on choosing between the service filter and the free-text search filter. No alternative tool is named or excluded.

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