Skip to main content
Glama

context_inspect

Read-only

Inspect a Docker context by name to retrieve its full configuration, including endpoint and TLS details. Use the name parameter from context_list to get the complete inspection output.

Instructions

Return the full configuration for a single Docker context.

Full endpoint/TLS detail for one context; context_list gives the one-line summary of all. Raises RuntimeError if the CLI call fails.

args: name - Context name (use the Name field from context_list) returns: dict - The parsed docker context inspect entry (keys include "Name" and "Endpoints" with the daemon URL)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
Behavior4/5

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

Annotations already declare readOnly and non-destructive behavior. The description adds that RuntimeError is raised on CLI failure and describes the return dict structure (Name, Endpoints with daemon URL), which goes beyond annotations to set expectations.

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?

The description is compact and well-structured with separate args/returns sections. Every sentence contributes value, and the main purpose is front-loaded.

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 single-parameter read-only tool with no output schema, the description covers purpose, sibling differentiation, error behavior, parameter sourcing, and return keys. It is complete enough for an agent to select and invoke correctly.

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

Parameters5/5

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

With 0% schema coverage, the description fully compensates by explaining the 'name' parameter and instructing to source it from context_list's Name field. This adds meaningful semantic context beyond the raw string type.

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 clearly states a specific action (return full configuration) on a specific resource (single Docker context), and explicitly contrasts with context_list to distinguish scope. This provides unambiguous purpose.

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 points to context_list as the alternative for one-line summaries and instructs to use the Name field from context_list, which gives practical guidance. However, it doesn't enumerate other possible alternatives (e.g., context inspect vs other inspect tools) but the differentiation is strong.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/L337-org/docker-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server