Skip to main content
Glama

gcp_get_logs

Query Google Cloud Logging by filter, project, and time window to investigate incidents and retrieve relevant log entries from a read-only DevOps MCP server.

Instructions

Query Cloud Logging. (demo mode -- google-cloud-logging not installed)

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": {
      "filter_str": "<filter_str>"
    },
    "name": "gcp_get_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
projectNo
filter_strYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. The demo-mode note is genuinely valuable (it warns results may be stubbed because google-cloud-logging is absent), but nothing else is disclosed: no return shape, no pagination or result limits, no auth or project-scoping requirements for a log access operation.

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, front-loaded with the operation and followed by the caveat; nothing is padded or redundant. The brevity is fine in structure, though it borders on under-specification rather than tightness.

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?

An output schema exists, so return values need not be described, but the tool is still incomplete for a 3-parameter query tool: the mandatory filter argument, the time window, and the project scope are all undocumented. An agent could not construct a correct call from this definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, and the description adds nothing. The required filter_str in particular is left completely unexplained, so an agent gets no hint about Cloud Logging filter syntax, nor what 'hours' (default 1) or the empty-default 'project' mean.

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?

"Query Cloud Logging" names a verb and a resource, so the agent can tell this is a GCP log-read tool, but it never says what is being queried or scoped (a project? a time window? an arbitrary filter?). Against siblings like aws_get_cloudwatch_logs and azure_get_monitor_logs the family is inferable only from the tool name, not the description.

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 when-to-use guidance at all: no mention of when to prefer this over gcp_get_metric or k8s_pod_logs, no prerequisites, and no statement of what conditions make the query fail. The only added sentence is a runtime caveat, not usage direction.

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