Skip to main content
Glama
link0-o

PerfLens MCP Server

by link0-o

authorize_managed_docker_session

Destructive

Authorize a bounded Docker performance session with exact image, command, mounts, resource limits, and allowed modes, requiring explicit user consent for the workload.

Instructions

Authorize the exact immutable image, command, mounts, resource limits, modes, and budget pinned in this project's Docker policy. This never builds or pulls an image. A fresh user reply to that exact summary is required; MCP tool permission is not workload consent. allowed_modes is required and must exactly equal the non-empty mode set shown in that summary; expanding it requires a new summary and fresh authorization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allowed_modesYes
authorizationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYes
created_atYes
expires_atYes
session_idYes
target_kindYes
allowed_modesYes
content_sha256Yes
instance_countYes
schema_versionNo1.0
perflens_versionYes
max_workload_runsYes
authorization_modeYes
max_active_secondsYes
max_evidence_bytesYes
workload_runs_usedYes
active_seconds_usedYes
evidence_bytes_usedYes
invalidation_reasonNo
workload_spec_sha256No
project_identity_sha256Yes
authorization_receipt_sha256Yes
existing_target_identity_sha256No
client_connection_identity_sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavioral context beyond annotations: it never builds or pulls an image, requires fresh explicit user consent, and clarifies that allowed_modes must exactly match the summary mode set. These are non-obvious constraints that materially affect invocation, and they do not contradict the destructiveHing annotation.

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?

A ll sentences carry information with no fluff, and the safety-critical constraints are front-loaded. The first sentence captures scope, and subsequent sentences add permissions and mode-handling rules. Slightly long four-sentence definition but still disciplined.

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?

Given the high-stakes nature and output schema presence, the description covers purpose, consent, no-build/no-pull, exact-mode requirements, and re-authorization. It does not mention how to retrieve the summary or how this relates to revoke/preview siblings, but those are inferable from context and sibling names.

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?

Schema coverage is 0%, so the description carries the burden. It clearly explains allowed_modes semantics: required, non-empty, must exactly equal the summary set, and expansion requires new authorization. It does not describe the individual enum values, but those are self-evident in the schema, and the authorization parameter's exact const phrase is already encoded in the schema.

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?

States a precise verb ('Authorize') and a specific resource: the immutable image, command, mounts, resource limits, modes, and budget pinned in the project's Docker policy. It clearly distinguishes the 'managed' flavor from the generic sibling authorize_docker_session by emphasizing policy-pinned exactness and adding the no-build/no-pull constraint.

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?

Gives an explicit precondition: a fresh user reply to the exact summary is required and MCP tool permission is not workload consent. It also defines when allowed_modes can be used and when re-authorization is needed, though it does not directly compare against sibling authorize tools such as authorize_docker_session or authorize_docker_optimization_session.

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