Skip to main content
Glama

query_logs

Search and filter logs for a project. Supports filtering by level, source, time range, and text search.

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": "query_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd time (ISO 8601 or YYYY-MM-DD)
urlNoFilter by URL or request path (e.g., '/api/checkout', '/auth/callback')
fromNoStart time (ISO 8601 or YYYY-MM-DD)
levelNoLog level: TRACE, DEBUG, INFO, WARN, ERROR, FATAL
limitNoMax results (1-1000, default 100)
queryNoSearch. Free text matches the message; key:value matches a metadata field (e.g. status:500 user_id:42 http.route:/api/pay); -key:value negates; quote values with spaces (key:"a b").
sourceNoSource tag (e.g., 'worker.auth')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Text search in message field"New value: +"Search. Free text matches the message; key:value matches a metadata field (e.g. status:500 user_id:42 http.route:/api/pay); -key:value negates; quote values with spaces (key:\"a b\")."
  2. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden and it largely does not. It never states that the operation is read-only, what the default result ordering is, how the limit/pagination behaves, or what happens when no filters are given — all material for a 7-parameter search tool.

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 short sentences, front-loaded with the core action followed by the supported filters. No filler or redundancy.

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 100% schema coverage and no output schema, parameter documentation is not the gap; behavior is. For a filter-heavy read tool with zero annotations, the description should disclose read-only nature, default ordering/limit behavior, and scope (single project) but stays at a high-level capability statement.

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 the detailed semantics (limit bounds of 1-1000 with default 100, key:value query syntax, negation) already live in the schema. The description only names the filter dimensions (level, source, time range, text search) and adds no meaning beyond it; notably it omits the url and limit filters entirely.

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?

"Search and filter logs for a project" states a specific verb and resource, and the second sentence enumerates the filter dimensions. It does not distinguish the tool from siblings such as get_log_stats, get_recent_errors, or get_trace, so an agent must infer which log tool to use.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. Nothing says when to query raw logs versus getting aggregate stats or recent errors, leaving routing entirely to inference from the tool name.

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