Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OASLINT_DIRNoThe directory containing the OpenAPI/Swagger spec files that the server is allowed to read. Equivalent to the --dir command-line option; file access is sandboxed to this directory. Defaults to the current directory..

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Lint OpenAPI 3.0 / 3.1 / Swagger 2.0 specs and, above all, find BREAKING CHANGES between two versions of a spec. Offline and read-only: remote $refs are never fetched. Every spec/old/new argument is a path to a .yaml/.yml/.json file inside the allowed directory (relative paths are fine), or the spec text pasted inline. Start with spec_overview, then lint_spec; before releasing an API change run diff_specs(old, new) and read the BREAKING and POTENTIALLY_BREAKING sections; changelog_markdown writes the release notes. find_endpoints, describe_operation and validate_example help you work with one operation at a time.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
spec_overviewA

Summarise an API description: format/version read, title, servers, number of tags, paths and operations (by method), auth schemes, schema count, deprecated count and any unresolved $refs (remote refs are reported, never fetched).

spec is a path inside the allowed directory (.yaml/.yml/.json; OpenAPI 3.0.x, 3.1.x or Swagger 2.0), or the spec text itself.

lint_specA

Lint a spec. Findings have a rule id (OAS1001+), severity (error/warning/info), a JSON pointer, the source line when known, and a concrete fix. Rules cover operationIds, missing or non-2xx responses, path parameters vs the URL template, parameter naming, unused components, untyped schemas, required-not-in-properties, enum/default/example mismatches (checked with a built-in JSON Schema validator), missing descriptions, undefined security schemes, http:// production servers, POST-200 on creation, trailing slashes, duplicate paths and deprecations without a replacement note.

spec is a path inside the allowed directory, or the spec text itself.

diff_specsA

Compare two versions of an API and classify every change as BREAKING, POTENTIALLY_BREAKING (needs a human look), NON_BREAKING or INFO, with the reason and exact location (operation, schema path, JSON pointer, line).

Rules follow request/response variance: in a request, tightening is breaking (new required parameter or property, narrower type, removed enum value, stricter min/max/pattern); in a response, loosening or removing guarantees is breaking (property removed or made optional, type changed, nullable added, success code removed). Also checks auth changes, content types, parameter style/location, oneOf/anyOf/allOf and discriminator. Equivalent specs written differently (reordered keys, $ref vs inline, nullable vs type [x,'null'], Swagger 2.0 vs OpenAPI 3) report no changes.

old and new are paths inside the allowed directory, or spec text.

changelog_markdownA

Write a human-readable markdown changelog for the move from old to new, grouped into breaking / potentially breaking / non-breaking / notes and then by operation. Returns text; nothing is written to disk.

find_endpointsA

List operations of a spec, optionally filtered. path_glob uses * and ? (e.g. '/pets/*'), method is get/post/..., tag is an exact tag name, text is a case-insensitive substring searched in path, operationId, summary, description and tags. Filters combine with AND.

describe_operationB

Describe one operation: parameters (merged path-level + operation-level), the request body and every response with their schemas fully resolved and shown as a compact outline (* = required property, ? = nullable, recursive schemas end in a <cycle: Name> marker). path may use any parameter names (/pets/{id} matches /pets/{petId}). depth limits the outline nesting (1-12).

validate_exampleA

Check a JSON document against the resolved schema of an operation. kind is 'request' (validates against the request body) or 'response' (against the response for status, default 200; falls back to 2XX then default). json is the document as JSON text. Violations are reported with a JSON pointer into the document. Optionally pick a content_type; otherwise application/json (or the first JSON type) is used.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct action on the spec: summarise (spec_overview), lint, diff, changelog, search operations (find_endpoints), describe one operation, and validate an example. The main overlap is diff_specs vs changelog_markdown, which operate on the same old/new inputs and differ only in output format, and spec_overview vs find_endpoints both surface operation inventories. Descriptions make the boundaries clear enough that misselection is unlikely.

Naming Consistency4/5

Most names follow a verb_noun snake_case pattern (lint_spec, diff_specs, find_endpoints, describe_operation, validate_example). Two deviate into noun_noun (spec_overview, changelog_markdown), which is a minor inconsistency rather than a breakdown. Casing is uniformly snake_case throughout.

Tool Count5/5

Seven tools is well within the ideal range and each earns its place: read/summarise, lint, diff, render changelog, search, inspect one operation, and validate payloads. No redundant or filler tools; the surface is tightly scoped to static OpenAPI analysis.

Completeness4/5

The core lifecycle for spec analysis is covered: understand, lint, compare, document, navigate, and validate against schemas. Minor gaps remain, such as no autofix/apply-suggestion tool despite lint reporting concrete fixes, and no schema-only validation or spec conversion (Swagger 2.0 to OAS 3) beyond diffing. These are workaroundable but would be natural additions.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues