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 (environment) id. Optional: defaults to `production`.
cursorNoOpaque cursor from a previous page's next_cursor
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. Optional: defaults to the project created or used last in this session, or the only one.
organization_idNoOrganization id. Optional: defaults to the token's organization, or the only one you belong to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description usefully adds ordering (newest first) and the required permission scope (`logs:read`), but says nothing about pagination/cursor semantics, default result size, or whether results are truncated at the 1000 cap.

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?

A single tight sentence, front-loaded with the resource and ordering, with the permission scope trailing. Nothing is wasted and nothing buries the core fact.

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?

With nine optional parameters and no output schema, the definition is thin: it does not explain how `cursor`/`limit` combine for paging, what the response shape looks like (fields per line), or default behavior when no filters are supplied. The rich schema carries most of the load, keeping it adequate but not complete.

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 one of the nine parameters is already documented in the schema. The description's enumeration of services merely restates the `service` enum values and adds no filtering syntax, default, or interaction guidance beyond the schema, so the baseline 3 applies.

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?

Names a specific resource (recent log lines), scope (a branch/environment), ordering (newest first), and enumerates the covered services. An agent can tell it reads a snapshot of logs, but the description never names the closely related siblings `logs.tail` or `functions.logs`, so differentiation relies on inference.

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?

The phrase 'Recent log lines ... newest first' weakly implies a bounded snapshot read as opposed to continuous streaming, which hints at when to prefer it over `logs.tail`, but this is never stated. No explicit when-to-use/when-not-to-use guidance, no mention of prerequisites beyond the `logs:read` scope.

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