Skip to main content
Glama

Read recent logs for a service

render_recent_logs
Read-onlyIdempotent

Fetches recent log lines for any service by service ID or name, with optional text and level filters to quickly identify errors.

Instructions

Fetches recent log lines for a service, resolving the service name and workspace id for you. Prefer this over render_list_logs, which needs an ownerId and a resource array. Filter with text/level to find errors quickly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoOnly return lines containing these substrings.
levelNoFilter by log level, e.g. ["error"] or ["error","warning"].
limitNoMaximum log lines to return.
endTimeNoRFC3339 end of the window. Defaults to now.
ownerIdNoWorkspace id. Inferred from the service when omitted.
serviceIdYesService id (srv-…) or service name.
startTimeNoRFC3339 start of the window. Defaults to one hour ago.
Behavior4/5

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

Annotations declare readOnlyHint and idempotentHint, so the description's disclosure of name/workspace resolution is additive. No behavioral contradictions. The description could mention default time windows but schema covers that.

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?

Three sentences, front-loaded with purpose, then guidance. Every sentence is informative with no redundancy or extraneous details.

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?

Given full schema coverage and comprehensive annotations, the description is complete. It covers the tool's purpose, usage, and key differentiators. No missing critical information for a simple log-fetching tool.

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 100%, so baseline is 3. The description adds value by explaining the resolution behavior for `serviceId` and `ownerId`, and suggests filtering with `text`/`level`, which goes beyond schema descriptions.

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?

The description clearly states 'Fetches recent log lines for a service' with a specific verb and resource. It distinguishes from sibling `render_list_logs` by noting it resolves service name and workspace id, providing clear differentiation.

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?

Explicitly recommends preferring this over `render_list_logs` due to simpler invocation. Gives actionable filtering advice ('Filter with text/level to find errors quickly'), providing strong when-to-use and practical guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LuSrodri/render-useful-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server