Skip to main content
Glama

list_logs

Read-onlyIdempotent

Browse request and Function execution logs for a project — 'was it my engine or my Function code' debugging, with rich filtering.

log_type='requests' returns one row per API request (status, latency split into engine vs. Function time, redacted payload). log_type='function_logs' returns one row per Function invocation within a request's chain (status, duration, its own error text in full, and its captured print() output). The two share a requestId — use get_request_trace to fetch both sides of one request in a single call.

Filters: tenant_id, entity, http_method, and (function_logs only) function_id are exact-match and fast. At least one of those, an exact request_id, or a bounded created_after/created_before time range is required — an unfiltered, unbounded query is rejected, since requests rows never expire.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
entityNoEntity or custom endpoint name the request targeted.
statusNofunction_logs only: ok/error/halted/skipped/timeout.
log_typeYesWhich log entity to list.
tenant_idNo
project_idNoOptional if whoami returned a default_project_id.
request_idNoExact requestId lookup — see also get_request_trace.
function_idNofunction_logs only.
http_methodNo
created_afterNoISO 8601 datetime, inclusive lower bound.
created_beforeNoISO 8601 datetime, inclusive upper bound.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so safety is covered; the description goes further by disclosing that unfiltered unbounded queries are rejected, that `requests` rows never expire, that payloads are redacted, and that function_logs carry full error text and captured print() output. These are behavioral facts not present in the structured data.

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-loaded with the purpose and the two modes, then filters and the hard requirement. Every sentence carries information, though the quoted debugging tagline is slightly more rhetorical than functional.

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?

For an 11-parameter, no-output-schema read tool, the description covers the return shape per log_type, the mandatory-filter contract, and the sibling alternative. Minor gaps (limit semantics, project_id default resolution) remain, but they are covered by schema descriptions.

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?

With 73% schema coverage the description still adds real meaning: which filters are exact-match and fast, that function_id and status are function_logs-only, and the cross-parameter requirement that one bounded filter must be supplied — a constraint the schema does not express. It does not elaborate on limit or project_id defaults, keeping it short of a 5.

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 specific verb (browse/list) plus the two distinct resources (request logs and Function execution logs) and frames the exact debugging question it answers. It explicitly separates log_type='requests' from log_type='function_logs' and names get_request_trace as the sibling for single-request lookups, so an agent can distinguish it without opening a schema.

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?

Explains when to pick each log_type, states the mandatory-filter rule ('at least one of those, an exact request_id, or a bounded time range is required'), notes that unfiltered queries are rejected, and routes the agent to get_request_trace when it needs both sides of one request. Nothing is left to inference.

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