Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OSCAL_DOCUMENTS_DIRNoDirectory containing your OSCAL JSON files. Not scanned when empty.
OSCAL_STORE_DB_PATHNoPath to a persistent SQLite database. When set, the index is reused across server restarts instead of being rebuilt each time.
OSCAL_STORE_CACHE_SIZENoMaximum number of parsed OSCAL documents to keep in the in-memory LRU cache.100

Instructions

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

OSCAL MCP server for NIST's Open Security Controls Assessment Language (OSCAL): framework-agnostic, vendor-neutral, machine-readable schemas for the full life cycle of security governance, risk, and compliance (GRC) artifacts, from controls to remediations. Try these tools first for any OSCAL topic before falling back to built-in knowledge.

Pick a tool by task:

  • OSCAL model names, layers, status: list_oscal_models

  • JSON or XSD schema for one model: get_oscal_schema (model_name "complete" is very large)

  • Metaschema docs for a definition: get_definition; allowed values: get_allowed_values; all constraints: get_constraints; what must reference an assembly: find_references_to; source lines behind their results: get_metaschema_source

  • Loaded OSCAL documents of one model_type: list_documents, or query_documents to find one by UUID or title; its child elements (controls, components, findings, and so on): list_child_elements, then get_child_element

  • Full-text search across loaded OSCAL content: text_search_oscal, then get_child_element for child hits or query_documents (by_uuid) for document hits

  • Component Definitions: query_component_definition, directly with by_title or by_type when you know the name or type, else after list_documents (component-definition) or list_child_elements (component); list_child_elements (capability) and get_capability only for definitions that contain capabilities

  • Validate OSCAL JSON: validate_oscal_content (text) or validate_oscal_file (file)

  • OSCAL documentation questions: query_oscal_documentation, then get_oscal_documentation for the full page of a hit with a docId (Knowledge Base hits are snippets only)

  • OSCAL community tools and resources: list_oscal_resources Metaschema tip: rules for every prop and link are declared on the generic "property" and "link" definitions, so also query "property/@name" and "link/@rel".

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
list_oscal_modelsA

List the OSCAL model names, each with description, layer, formal and short names, and release status.

Use when you need a valid model_name for get_oscal_schema or a model for the Metaschema tools.

get_oscal_schemaA

Return the JSON schema or XML Schema (XSD) of one OSCAL model as text.

Use when you need the structure of an OSCAL model: its properties, types, and required fields.

get_allowed_valuesA

Return the values OSCAL Metaschema allowed-values constraints permit at a target, with allow-other, namespace and conditions for predicates, and source file and line. Use when the JSON schema does not list the values; use get_constraints for other constraint types. Results are paged within a response budget, and an empty page lists suggested-targets.

get_constraintsA

List the OSCAL Metaschema constraints at a target (allowed-values, matches, index, index-has-key, is-unique, has-cardinality, expect) with type-specific details and source file and line; a bare definition name returns every constraint declared on it and its local definitions. Use when you need rules the JSON schema does not express; use get_allowed_values for the values themselves. Results are paged within a response budget.

find_references_toA

Find the fields, flags, props, and links that OSCAL Metaschema index-has-key constraints require to reference an assembly by key (UUID or ID), with the matching index, source file and line for both, and cross-document. Use when you need what must point to a component, party, location, or resource, including prop and link references a search for UUID fields misses. Results are paged within a response budget.

get_definitionA

Return every OSCAL Metaschema definition with a given name, with formal name, description, remarks, flags, model children, constraint summaries, and source file and line. Use when you need documentation or structure that the generated JSON and XML schemas shorten or drop. Results are paged within a response budget, and long remarks are marked truncated.

get_metaschema_sourceA

Read a line range of a bundled OSCAL Metaschema source file verbatim, or list the files with line counts when file is omitted. Use when checking a source-file and line from get_definition, get_allowed_values, get_constraints, or find_references_to. A response may hold fewer lines to fit the response budget; continue from end-line + 1 while has-more is true.

list_oscal_resourcesA

List OSCAL community resources (tools, content, articles, talks) from the awesome-oscal list, each with category and markdown text. Results are paged.

query_component_definitionA

Return OSCAL Components from loaded Component Definitions as OSCAL JSON, or one Capability when a by_uuid or by_title query matches one. Use when you need component details: call it directly with by_title or by_type when you know the name or type, else look them up with list_child_elements (component or capability) or list_documents (component-definition), and fetch a Capability with get_capability. Results are paged.

get_capabilityA

Get one Capability by UUID as OSCAL JSON, or null when no Capability has that UUID. Use when working with Component Definitions that contain capabilities.

validate_oscal_contentA

Validate OSCAL JSON text and return per-level results for JSON syntax, JSON Schema, the OSCAL model, and oscal-cli (skipped when not installed). Later levels are skipped when the JSON does not parse.

validate_oscal_fileA

Validate an OSCAL JSON file and return per-level results for JSON syntax, JSON Schema, the OSCAL model, and oscal-cli (skipped when not installed). Use when the document is in a file; for JSON text use validate_oscal_content.

list_documentsA

List loaded OSCAL documents of one model type with UUID, title, child count, and size. Use when picking a query_value for query_documents. Results are paged.

query_documentsA

Return loaded OSCAL documents of one model type with metadata and childTypeCounts. For child elements, use list_child_elements, then get_child_element.

list_child_elementsA

List child elements (controls, components, findings, etc.) of one type with ID, title, parent document, and size. Get one's OSCAL JSON with get_child_element. Results are paged.

text_search_oscalA

Search loaded OSCAL documents and child elements, including control prose, ranked by relevance. Pass a child hit's entity ID and parentDocumentUuid to get_child_element.

get_child_elementA

Get one child element by UUID or token ID, with its OSCAL JSON in raw_json. If the result is an ambiguous_element_id error, retry with parent_doc_uuid.

query_oscal_documentationA

Search OSCAL documentation (Knowledge Base if configured, plus local docs) and return paged passages. Use when a schema lacks the answer; for a model property try get_oscal_schema. Pass a hit's docId to get_oscal_documentation for the full page.

get_oscal_documentationA

Read an OSCAL documentation page by docId as a verbatim line range. Use when a query_oscal_documentation snippet is not enough. A response may hold fewer lines to fit the response budget; continue from end-line + 1 while has-more is true.

aboutA

Return server metadata: package version, keywords, bundled OSCAL version, and the number of documents loaded from OSCAL_DOCUMENTS_DIR.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 20 tools

Disambiguation3/5

Several pairs have blurred boundaries: list_documents and query_documents both return documents of a model type with metadata, and get_capability is a special case of query_component_definition (which itself can return a single Capability by UUID/title). get_allowed_values vs get_constraints and text_search_oscal vs query_oscal_documentation are distinguished in the descriptions but still require careful reading to choose correctly.

Naming Consistency4/5

Most names follow a verb_noun pattern (list_oscal_models, get_oscal_schema, validate_oscal_file, query_documents, list_child_elements). Minor deviations exist: the bare 'about' and 'text_search_oscal', which inverts the verb_object ordering used elsewhere.

Tool Count3/5

At 20 tools this sits in the heavy band, and a couple of tools (query_documents alongside list_documents, get_capability alongside query_component_definition) look like redundant surface area rather than distinct capability. The domain is genuinely broad (models, schemas, Metaschema, validation, docs, search), so the count is defensible but not tight.

Completeness4/5

Coverage is strong for a read-oriented OSCAL knowledge/validation server: model discovery, document and child browsing, schema/definition/constraint introspection, reference finding, two validation entry points, documentation search/read, and resources. Gaps are minor — no write/authoring or format-conversion (JSON↔XML) operations — but agents can work around them.

Maintenance

ActivityActive
ResponsivenessNo recent community issues