Skip to main content
Glama
link0-o

PerfLens MCP Server

by link0-o

revoke_docker_optimization_session

Idempotent

Revoke an active Docker optimization session to invalidate its authorization and safely remove only verified session-owned temporary image tags and private snapshots.

Instructions

Revoke one in-memory Docker optimization authorization and conservatively clean only verified session-owned temporary image tags and private snapshots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYes
budgetYes
recipe_idYes
created_atYes
expires_atYes
preview_idYes
session_idYes
updated_atYes
builds_usedYes
allowed_modesYes
content_sha256Yes
schema_versionNo1.0
perflens_versionYes
baseline_build_idNo
build_seconds_usedYes
workload_runs_usedYes
evidence_bytes_usedYes
invalidation_reasonNo
session_artifact_idYes
candidate_rounds_usedYes
project_policy_sha256Yes
recipe_content_sha256Yes
preview_content_sha256Yes
project_identity_sha256Yes
recoverable_retries_usedYes
latest_candidate_build_idNo
temporary_image_bytes_usedYes
authorization_receipt_sha256Yes
workload_active_seconds_usedYes
build_capability_content_sha256Yes
client_connection_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?

Adds valuable behavioral detail beyond annotations: the operation revokes exactly 'one' authorization and cleans only 'verified session-owned temporary image tags and private snapshots'. This clarifies what may be removed while staying consistent with destructiveHint=false because the cleanup is conservatively scoped to ephemeral session-owned artifacts and idempotentHint=true.

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 densely packed sentence front-loads the primary action and then adds a precise scope qualifer. No fluff, no repetition of structured fields, and every clause earns its place.

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 single-parameter tool with an output schema and annotations covering idempotency/destructivity, the description is largely complete: it names the resource type, the action, and the exact cleanup boundary. It could additionally reference the authorize_docker_optimization_session sibling or state a prerequisite, but that gap is minor.

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?

The schema has 0% description coverage for session_id, so the description must carry meaning about the parameter. The description indirectly identifies session_id as the optimization session whose authorization is revoked and whose artifacts are cleaned, but it never explicitly defines the field or says where to obtain its value.

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 specific verb ('Revoke') and resource ('one in-memory Docker optimization authorization'), then specifies the cleanup scope: only verified session-owned temporary image tags and private snapshots. The 'optimization' qualifier clearly distinguishes it from sibling revoke_docker_session.

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 intended use is implied by the name and description: call this when an optimization session authorization needs to be revoked. However, it does not explicitly state when to use it versus alternatives, mention prerequisites, or rule out the sibling revoke_docker_session.

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