Skip to main content
Glama

search_logs

Search historical VPS logs by query, level, and time range to find errors, warnings, or specific patterns for troubleshooting.

Instructions

Search through historical logs with filters. Find errors, warnings, or specific patterns.

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": {
      "projectId": "<projectId>",
      "instanceName": "<instanceName>",
      "query": "<query>"
    },
    "name": "search_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoLog level filter
limitNoMax results
queryYesSearch query (regex supported)
endTimeNoEnd time (ISO 8601)
projectIdYesGoogle Cloud project ID
startTimeNoStart time (ISO 8601)
instanceNameYesVPS instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden and does not meet it. It says nothing about result volume, default time window, pagination/truncation at the 100-result limit, expense of a broad regex scan, or required permissions — all material for a log search that can return large datasets.

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?

Two short sentences with the core action front-loaded and no filler. There is minor redundancy between "with filters" and "Find errors, warnings, or specific patterns," which prevents a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With seven parameters, no annotations, and no output schema, the description should describe return shape or at least the default scoping behavior, and it does neither. The schema covers inputs well, but the agent has no insight into what comes back or how broad a search behaves.

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 every parameter including level, query regex support, time bounds, and limit is already documented. The description adds only a generic reference to "filters" and does not improve on the schema's semantics, making the baseline 3 correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb and resource ("Search through historical logs") and mentions filters, but it never distinguishes this tool from siblings like troubleshoot_logs or view_logs_live. The word "historical" hints at a time-scope contrast with live viewing, though that is left implicit.

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?

Usage is only implied through "Find errors, warnings, or specific patterns," which suggests the investigative use case. There is no explicit statement of when to pick this over troubleshoot_logs or view_logs_live, and no exclusions or prerequisites are given.

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