Skip to main content
Glama

diagnose_mcdev_retrieve_logs

Read-only

Reads bounded historical normal logs for an exact mcdev retrieve credential/BU and query or script key in a UTC window, returning finite diagnostics without raw logs or secrets.

Instructions

Read-only historical normal-log diagnosis for one exact configured credential/businessUnit and query or script key. Reads only bounded project/logs timestamp files, never error companions or authentication/session contents. Requires caller-managed quiescence. Supports mcdev 10.1.0, 10.1.1, 10.2.0 and 10.3.0 canonical retrieve credential/BU type key with literal selectors and no options, aliases or quotes, within an explicit UTC ISO millisecond window of at most 24 hours. Returns finite observations and validated basename/time provenance, never raw logs, paths, errors, secrets or remote completeness. No subprocess, network, native execution, elicitation or rerun. Native calls with --noLogFile produce no historical logs; absent evidence is no-match, not a reason to repeat retrieval. Unknown records are suppressed; investigate manually when evidence is insufficient.

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": {
      "workspaceRoot": "<workspaceRoot>",
      "credential": "<credential>",
      "businessUnit": "<businessUnit>",
      "metadataType": "<metadataType>",
      "key": "<key>",
      "startedAfter": "<startedAfter>",
      "startedBefore": "<startedBefore>"
    },
    "name": "diagnose_mcdev_retrieve_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
credentialYes
businessUnitYes
metadataTypeYes
startedAfterYes
startedBeforeYes
workspaceRootYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly=true, closed-world and non-destructive, yet the description adds substantial behavior: it reads only bounded log timestamp files, never error companions or auth/session content, requires quiescence, spawns no subprocess/network/native execution, and suppresses unknown records. It also states that absence of evidence means no-match rather than a retry trigger, which prevents a destructive retry loop.

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?

Purpose and scope are front-loaded in the first sentence, followed by constraints, returns and failure modes in a sensible order. Some packing is excessive, notably the version enumeration and the dense 'canonical retrieve credential/BU type key' clause, but every sentence carries operational information.

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

Completeness4/5

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

For a 7-required-parameter tool with no output schema, the description covers return semantics ('finite observations and validated basename/time provenance, never raw logs, paths, errors, secrets or remote completeness') and execution constraints. Remaining gaps are the meaning of workspaceRoot and what an 'observation' record actually contains, which an agent must infer.

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

Parameters4/5

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

With 0% schema description coverage, the description carries the burden and mostly succeeds: it defines startedAfter/startedBefore as an explicit UTC ISO millisecond window of at most 24 hours, constrains key to a literal selector with no options, aliases or quotes, and ties credential/businessUnit/metadataType to the canonical retrieve key shape. workspaceRoot is only obliquely implied by 'bounded project/logs timestamp files' and is never explicitly defined, leaving one gap.

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 first sentence gives a specific verb+resource ('Read-only historical normal-log diagnosis') and narrows scope to one exact credential/businessUnit plus a query or script key, which an agent can map to the schema's required fields. It never names a sibling tool, so differentiation from diagnose_mcdev_project_config or inspect_mcdev_project is left implicit rather than stated.

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

Usage Guidelines4/5

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

It gives clear usage context: a bounded UTC window, supported mcdev versions, and a prerequisite of caller-managed quiescence, plus the important caveat that --noLogFile calls yield no logs and no-match is 'not a reason to repeat retrieval.' It even routes the agent to manual investigation when evidence is insufficient, though it names no alternative tool explicitly.

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