Skip to main content
Glama

generate_log_analytics_query

Generate KQL saved-search Bicep for a Log Analytics workspace (templates: 5xx errors, top endpoints, slow queries, anomalies, cost)

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": {
      "workspaceName": "<workspaceName>",
      "queryName": "<queryName>"
    },
    "name": "generate_log_analytics_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateNo5xx-errors | top-endpoints | slow-queries | anomalies | cost
queryNameYesSaved search display name
workspaceNameYesExisting Log Analytics workspace name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. 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 carries the full behavioral burden. It says it 'generates Bicep' but never states whether output is returned as text or written to disk, whether anything is deployed, or whether the named workspace must already exist and be reachable — all of which matter for a generation 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?

A single compact sentence, front-loaded with verb and artifact, followed by a parenthetical enumeration. No wasted wording and the most useful information comes first.

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?

For a 3-parameter generator with no output schema and no annotations, the description should clarify the return form (Bicep text vs. file) and what happens when the optional template is omitted. It covers the what but leaves these behavioral gaps open.

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 all three parameters are already documented. The description's parenthetical template list largely restates the schema's template enum description and adds no new semantics about defaults or constraints.

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?

States a specific action and artifact: generate KQL saved-search Bicep for a Log Analytics workspace, and enumerates the concrete templates it can emit. An agent can tell this apart from adjacent generator siblings (e.g. generate_audit_log, generate_tanstack_query) because the resource is explicitly named. It falls short of 5 only because it does not name a sibling or contrast behavior directly.

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 / when-not-to-use guidance and no named alternative. The template list hints at supported scenarios, but nothing tells an agent under what circumstances this tool is the right choice versus other query/log generators.

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.