Skip to main content
Glama

Diagnose environment

diagnose_environment
Read-onlyIdempotent

Check whether Kdenlive, MLT, ffprobe, and ffmpeg are installed and usable, then report paths, versions, and actionable fixes without modifying anything.

Instructions

Report whether Kdenlive, MLT (melt), ffprobe and ffmpeg are installed and usable, with their paths, versions and actionable hints. Read-only: modifies nothing. Locations can be overridden with KDENLIVE_MCP_KDENLIVE, KDENLIVE_MCP_MELT, KDENLIVE_MCP_FFPROBE and KDENLIVE_MCP_FFMPEG in the server environment. filesystem lists the folders the tools may read and write (KDENLIVE_MCP_ALLOWED_ROOTS; by default the user's videos directory).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diagnose_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
notesNoLimitations of this report: what was not verified.
readyYesTrue when every required program is available.
toolsYes
platformYes
filesystemYes
server_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.3.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / $defs / FilesystemAccess
      Added value: +{
      +  "description": "Which folders the tools may read and write (KDENLIVE_MCP_ALLOWED_ROOTS, #60).",
      +  "properties": {
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Invalid configuration, if any.",
      +      "title": "Error"
      +    },
      +    "missing": {
      +      "description": "Allowed roots that do not exist.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Missing",
      +      "type": "array"
      +    },
      +    "roots": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Allowed roots, resolved; null when unrestricted.",
      +      "title": "Roots"
      +    },
      +    "source": {
      +      "description": "'default' (the user's videos directory), 'environment' (KDENLIVE_MCP_ALLOWED_ROOTS), 'unrestricted' (explicit opt-out) or 'invalid' (see error; every path is refused).",
      +      "enum": [
      +        "default",
      +        "environment",
      +        "unrestricted",
      +        "invalid"
      +      ],
      +      "title": "Source",
      +      "type": "string"
      +    },
      +    "summary": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "One-line description for people.",
      +      "title": "Summary"
      +    }
      +  },
      +  "required": [
      +    "roots",
      +    "source",
      +    "missing"
      +  ],
      +  "title": "FilesystemAccess",
      +  "type": "object"
      +}
    • changedOutput schema / $defs / ToolReport / properties / source / description
      Previous value: -"'override' (environment variable) or 'path' (PATH lookup)."New value: +"'override' (environment variable), 'path' (PATH lookup) or 'flatpak' (launcher into the Flatpak org.kde.kdenlive)."
    • addedOutput schema / properties / filesystem
      Added value: +{
      +  "$ref": "#/$defs/FilesystemAccess"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "server_version",
      -  "platform",
      -  "ready",
      -  "tools"
      -]New value: +[
      +  "server_version",
      +  "platform",
      +  "ready",
      +  "tools",
      +  "filesystem"
      +]
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description reinforces it ('modifies nothing') and adds genuinely new behavioral context: four environment variables that override tool locations and the KDENLIVE_MCP_ALLOWED_ROOTS scoping with its default (user's videos directory). What it omits — how failures are represented in the result — is partly covered by the existing output schema.

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?

Three front-loaded sentences with the core purpose first, the read-only guarantee second, and configuration details last. The inline enumeration of all four env var names is somewhat dense but each sentence carries distinct operational information, so there is little waste.

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

Completeness5/5

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

For a zero-parameter diagnostic with an output schema already defining the return shape, the description covers scope of checks, safety profile, configuration overrides, and filesystem access bounds. An agent has everything needed to call it and interpret the result correctly.

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?

Zero parameters, so the baseline is 4; the description still adds meaning by documenting that configuration happens through server environment variables (KDENLIVE_MCP_KDENLIVE, _MELT, _FFPROBE, _FFMPEG) rather than call arguments. That is a useful non-obvious detail an agent could otherwise miss when a binary is reported missing.

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

Purpose5/5

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

The description names a specific verb ('Report whether') and enumerates the exact resources checked — Kdenlive, MLT (melt), ffprobe, ffmpeg — plus what output to expect (paths, versions, actionable hints). No sibling does this; probe_media inspects media files, not the toolchain, so the boundary is clear without opening a schema.

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: an agent can infer this is the prerequisite check to run before other tools, and 'Read-only: modifies nothing' signals low risk for calling it freely. There is no explicit 'run this first when X fails' or any named alternative, so guidance is adequate but not stated.

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