Skip to main content
Glama
RawTree MCP Server

RawTree MCP Server

Official
by rawtreedb

List Logs

list-logs

Inspect recent RawTree insert/query/describe/explain activity and logs to diagnose failed inserts or queries, verify calls reached RawTree, and view exact SQL with filtering and pagination.

Instructions

Purpose: List recent RawTree insert/query/describe/explain activity for a database.

NOT for: Reading application log files from disk or infrastructure logs. This tool reads RawTree's product query and insert logs.

Returns: Log entries with time, type, status, origin, query, exception, rows, duration, bytes, tables, projections, hints, and pagination.

When to use:

  • An insert or query failed and you need the RawTree exception or hints

  • You need to verify whether an agent, CLI, API, or UI call reached RawTree

  • You need recent activity for a table

  • You want the exact SQL RawTree saw

Workflow: Start with status=error for the last hour. Narrow by table or type if needed. Use next_offset for pagination.

Key trigger phrases: "check RawTree logs", "why did the insert fail", "show query history", "recent errors"

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": "list-logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hintsNoFilter to logs with any hints or no hints.
limitNoNumber of logs to return. Default: 50. Max: 200.
typesNoFilter by log type.
offsetNoNumber of logs to skip for pagination.
searchNoOptional raw RawTree search string, for example "type:insert status:error table:events". Structured filters are appended to it.
tablesNoFilter by one or more table names.
clusterNoName or ID of the cluster to use for this operation.
endTimeNoInclusive upper bound as an ISO datetime. Defaults to now.
originsNoFilter by origin.
databaseNoOptional RawTree database override. RawTree uses the default database when omitted.
statusesNoFilter by status.
startTimeNoInclusive lower bound as an ISO datetime. Defaults to one hour before endTime.
organizationNoName or ID of the organization containing the target cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.10
    • changedInput schema / properties / cluster / description
      Previous value: -"RawTree cluster to use for this operation."New value: +"Name or ID of the cluster to use for this operation."
    • changedInput schema / properties / organization / description
      Previous value: -"RawTree organization containing the target cluster."New value: +"Name or ID of the organization containing the target cluster."
  2. Changed4 schema fields changedv0.3.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / cluster
      Added value: +{
      +  "description": "RawTree cluster to use for this operation.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / database
      Added value: +{
      +  "description": "Optional RawTree database override. RawTree uses the default database when omitted.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / organization
      Added value: +{
      +  "description": "RawTree organization containing the target cluster.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose the return payload fields (time, type, status, origin, query, exception, rows, duration, bytes, tables, projections, hints, pagination) and pagination handling via next_offset. It does not state permissions/auth requirements or rate limits, and read-only semantics are only implied by 'List' rather than declared.

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 a bolded Purpose, then NOT-for, Returns, When-to-use, Workflow. Sections are scannable and each carries routing value, though the 'Key trigger phrases' block is somewhat redundant with the when-to-use bullets and adds length without new semantics.

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 a 13-parameter, output-schema-less tool this is well covered: it enumerates returned fields, gives a default starting query and narrowing strategy, and explains pagination. Missing only operational details such as permissions and result-size behavior, which is a modest gap given the tool's read-only list nature.

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 all 13 parameters are already documented, establishing a baseline of 3. The description adds usage-level meaning (filter by status/table/type, paginate) but does not explain the raw 'search' syntax, hints, origins, or time-bound defaults beyond what the schema states; it also refers to 'next_offset' while the actual parameter is 'offset'.

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 and resource ('List recent RawTree insert/query/describe/explain activity for a database') and explicitly delimits scope with 'NOT for: Reading application log files from disk or infrastructure logs.' An agent can distinguish this from generic log readers without opening the 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?

Provides an explicit when-to-use list (failed insert/query, verifying a call reached RawTree, table activity, exact SQL seen), a concrete workflow ('Start with status=error for the last hour. Narrow by table or type'), and trigger phrases. The exclusion section names the alternative behavior to avoid.

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