Skip to main content
Glama

logs_search

Read-only

Search a project's logs and events (an event is a record with a name; its fields are in extra). Records come from web pages, mobile and desktop apps, and servers. Returns rows oldest first with a nextCursor for paging. name, user, session and device match exactly and combine with query, boxId and since; when combined with a plain-text query a page can hold fewer rows than limit while nextCursor is set, so keep paging.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "logs_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOnly events with this name; "*" for every event (any record with a name)
userNoOnly records sent with this user id
boxIdNoOnly logs sent from this box
limitNoRows per page, max 1000
queryNoText to match; plain text matches as a whole term. CloudWatch filter syntax is passed through when it starts with {, ?, -, ", % or [
sinceNoStart of the window: relative (15m, 2h, 3d, 1w), RFC3339, or unix time. Default 1h1h
cursorNonextCursor from the previous page
deviceNoOnly records from this device
projectYesProject id (prj_...) or project name
sessionNoOnly records from this session (one app launch or page load)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedInput schema / properties / boxId / description
      Previous value: -"Only logs from this box"New value: +"Only logs sent from this box"
    • changedInput schema / properties / cursor / description
      Previous value: -"From the previous page"New value: +"nextCursor from the previous page"
    • addedInput schema / properties / device
      Added value: +{
      +  "description": "Only records from this device",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit / default
      Added value: +200
    • addedInput schema / properties / limit / description
      Added value: +"Rows per page, max 1000"
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Only events with this name; \"*\" for every event (any record with a name)",
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"prj_... or name"New value: +"Project id (prj_...) or project name"
    • changedInput schema / properties / query / description
      Previous value: -"Text, or CloudWatch filter syntax"New value: +"Text to match; plain text matches as a whole term. CloudWatch filter syntax is passed through when it starts with {, ?, -, \", % or ["
    • addedInput schema / properties / session
      Added value: +{
      +  "description": "Only records from this session (one app launch or page load)",
      +  "type": "string"
      +}
    • addedInput schema / properties / since / default
      Added value: +"1h"
    • changedInput schema / properties / since / description
      Previous value: -"15m, 2h, 3d, 1w or RFC3339; default 1h"New value: +"Start of the window: relative (15m, 2h, 3d, 1w), RFC3339, or unix time. Default 1h"
    • addedInput schema / properties / user
      Added value: +{
      +  "description": "Only records sent with this user id",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), yet the description still adds valuable behavior: records originate from web/mobile/desktop/server sources, rows return oldest first, and nextCursor drives paging with the caveat that filtered pages may be shorter than limit. It omits retention windows and rate limits, but the added context is substantial.

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 dense sentences that front-load what is searched and returned, then the paging quirk. No filler; every clause carries information an agent needs.

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 10 parameters and no output schema, the description covers the important return-shape facts (row ordering, nextCursor, fields in extra) and the filter semantics. A fuller treatment of the 'extra' payload or the query syntax modes would close the remaining gap, but this is adequate for a read-only search.

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 each parameter is already documented, and the description mostly restates that name/user/session/device 'match exactly' — a small semantic addition. The cross-parameter statement that these combine with query, boxId and since adds a little meaning, but the schema already implies conjunction, so the baseline 3 fits.

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 and resource ('Search a project's logs and events') and even defines what an event is ('a record with a name; its fields are in extra'). It does not distinguish itself from the sibling logs_errors or logs_tail tools, so an agent must infer which search variant to pick.

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?

Gives real operational guidance for paging ('keep paging' when a page holds fewer rows than limit) and explains which filters combine, but never states when to use this tool instead of logs_tail or logs_errors. Usage is implied rather than routed.

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.