Skip to main content
Glama

diagnose_sglang

Read-onlyIdempotent

Validate an SGLang configuration for NVIDIA DGX Spark (GB10/SM121A).

Pure pattern-matching against known failure modes documented in the Sovereign AI Blog. No inference, no external calls. Returns critical issues, non-fatal warnings, and a recommended baseline config.

All parameters are optional; supply only what you have. With no inputs you get the recommended config and a 'unknown' verdict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hardwareNoHardware description (e.g. 'GB10', 'DGX Spark', 'SM121A'). Empty = skip GB10-specific rules.
image_tagNoDocker image tag in use (e.g. 'lmsysorg/sglang:latest', 'lmsysorg/sglang:v0.4.0'). Empty = skip.
mem_fractionNoSGLang --mem-fraction-static value (e.g. 0.88). 0.0 = skip this check.
error_messageNoPaste error log output here for pattern matching against known failure modes.
attention_backendNoSGLang --attention-backend value (e.g. 'flashinfer', 'triton'). Empty string = skip this check.
cuda_graph_max_bsNoSGLang --cuda-graph-max-bs value. 0 = skip this check.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
issuesYesCritical issues that will prevent SGLang from running correctly
verdictYesOverall verdict. 'unknown' = no inputs provided.
warningsYesNon-fatal warnings (suboptimal but non-blocking)
recommended_configYesVerified-good baseline config for GB10/SM121A

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds valuable behavioral context: 'Pure pattern-matching', 'No inference, no external calls', and the behavior with no inputs ('recommended config and a 'unknown' verdict'). This goes beyond the annotations and fully discloses the tool's non-invasive nature.

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 front-loaded with the main action, then explains behavior and parameter optionality in a compact, scannable structure. Each sentence adds value: purpose, method/limitations, return value, and input flexibility. No wasted words.

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?

Given the tool's complexity (6 optional params, output schema present), the description is complete. It explains what the tool does, how it behaves (pattern-matching), what it returns (critical issues, non-fatal warnings, recommended baseline config), and edge-case behavior (no inputs). The output schema handles return details, so no further elaboration is needed.

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 100%, with each parameter having a meaningful description (e.g., 'Empty = skip this check'). The tool-level description adds only a general note that all parameters are optional, not per-parameter details. Baseline 3 is appropriate since the schema carries the parameter semantics.

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 the tool's purpose: 'Validate an SGLang configuration for NVIDIA DGX Spark (GB10/SM121A).' The verb 'Validate' plus the specific resource (SGLang config on specific hardware) distinguishes it from the sibling blog tools (get_article, list_tags, search_blog), which are unrelated.

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?

The description provides clear context for when to use: to validate a config against known failure modes. It explicitly explains constraints ('Pure pattern-matching... No inference, no external calls') and parameter optionality ('supply only what you have'). However, it does not explicitly state when not to use it or name an alternative, though no alternative is relevant among siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct function: SGLang config diagnosis versus blog article browsing (search, list tags, get article). No overlap in purpose.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern: diagnose_sglang, get_article, list_tags, search_blog.

Tool Count4/5

With 4 tools, the count is within the well-scoped range (3-15). However, the server mixes two separate domains, making the scope slightly thin.

Completeness3/5

The blog tools cover reading needs (search, list tags, get article), but the SGLang diagnostic tool is a single operation with no update or management tools. For a 'self-hosted-ai' server, broader AI operations are missing.