Skip to main content
Glama

check_required_fields

Validate an MCP server's server.json for required fields at a target spec version. Returns pass status and missing fields for quick compliance gating.

Instructions

Fast gate: only check required fields.

Args: server_json: server.json contents. spec_version: target spec version.

Returns: {pass, missing}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_jsonYes
spec_versionNo2025-12-11

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that this is a fast, required-fields-only check and gives the return shape {pass, missing}, which is useful. It says nothing about what 'pass' signifies, how 'missing' is structured, or behavior on malformed input.

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?

Front-loaded with the 'Fast gate' framing, then a terse Args/Returns block with no filler. Efficient, though the docstring-style structure is slightly formulaic for a two-sentence tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and no annotations, so the description has to do more; it does supply the return keys, which covers the biggest gap. It still leaves the nested server_json shape and the semantics of 'missing' unexplained.

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 coverage is 0%, so the description must compensate; it does name and gloss both parameters ('server_json: server.json contents', 'spec_version: target spec version'). However the glosses largely restate the schema titles, and for a nested object with additionalProperties the description gives no hint about expected contents or structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('check required fields') and scopes it explicitly with 'only' and 'Fast gate', which implicitly contrasts it with the broader audit_server_json sibling. It stops short of naming that sibling, so an agent still has to infer the split between this and the full audit.

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?

'Fast gate' signals a lightweight pre-check rather than a full validation, which implies usage, but no explicit when-to-use/when-not or named alternative (e.g., audit_server_json) is given. The agent must infer when this is preferable to the sibling tools.

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