Skip to main content
Glama

azure_get_monitor_logs

Runs a KQL query against Azure Log Analytics for a workspace over a chosen time window, helping on-call engineers retrieve monitor logs without checking multiple dashboards.

Instructions

Run a KQL query against Log Analytics. (demo mode -- azure-monitor-query 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": {
      "workspace_id": "<workspace_id>",
      "query": "<query>"
    },
    "name": "azure_get_monitor_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
queryYes
workspace_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. The parenthetical '(demo mode -- azure-monitor-query not installed)' is genuinely valuable because it warns the agent that results may be stubbed rather than real telemetry. It says nothing about authentication, workspace permissions, query cost/timeouts, or rate limits, which are the remaining behavioral gaps.

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 redundant wording. The parenthetical caveat is the only extra element and it earns its place, though it reads as an implementation note rather than structured guidance.

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 shape need not be described. However, for a 3-parameter query tool with zero annotation coverage, leaving 'hours' unexplained and omitting any note on whether 'hours' conflicts with a time filter inside the KQL is a meaningful gap.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate and largely does not. 'query' is loosely implied by 'KQL query' and 'workspace_id' by 'Log Analytics', but 'hours' is never mentioned and its meaning (lookback window? timeout?) and its interaction with the KQL time range are entirely undefined.

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?

The description names a specific verb and resource: 'Run a KQL query against Log Analytics'. That is concrete enough to separate it from metric/health-oriented siblings such as azure_get_metric. It stops short of naming an explicit alternative, so a 4 rather than a 5.

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 guidance on when to choose this over azure_get_metric, azure_get_resource_health, or the other log tools in the sibling set. Usage is only implied by the phrase 'against Log Analytics', with no stated exclusions or prerequisites.

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