Skip to main content
Glama
link0-o

PerfLens MCP Server

by link0-o

discover_docker_processes

Read-onlyIdempotent

Measure CPU deltas inside a local container to identify container and host PIDs, executable names, and a safe resource recommendation.

Instructions

Observe bounded CPU deltas for one existing local container and return only container PID, host PID, executable name, and a safe recommendation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_referenceYes
observation_duration_msNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
candidatesYes
created_atYes
limitationsNo
inventory_idYes
content_sha256Yes
schema_versionNo1.0
candidate_countYes
perflens_versionYes
candidates_truncatedYes
recommended_host_pidNo
observation_duration_msYes
automatic_recommendationYes
container_identity_sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4/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, covering the safety profile. The description adds valuable behavioral context beyond that: the observation is bounded, the container must already exist and be local, and only a narrow set of fields is returned. No contradiction with annotations.

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?

One dense sentence with no filler. Every clause earns its place: scope is stated, boundedness is explicit, and the limited return set is front-loaded. This is an appropriately concise tool description.

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?

There is an output schema, so return-value details do not need to be repeated. Annotations cover the read-only/idempotent safety profile, and the description communicates the core constraints. Minor gap: it does not mention failure cases like a nonexistent container, but that is not critical for a simple local observation tool.

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 0%, so the description must compensate. It indirectly clarifies container_reference as an existing local container and observation_duration_ms as the bound on CPU observation, but it does not explain accepted formats, valid ranges, or how the default interacts with behavior. For only two simple parameters this is adequate but not thorough.

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 uses a specific verb ('Observe') and clearly identifies the resource: bounded CPU deltas for one existing local container. It also specifies the exact output fields, which makes the tool's function unambiguous and distinct from broader Docker collection or optimization tools.

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?

The description implies the tool is for a single, existing local container and for bounded CPU observation, but it never explicitly states when to use this tool instead of the many sibling tools. There are no exclusions or named alternatives, so the agent must infer when this is the right tool.

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