Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SPACESTD_DOCSNoPath to the folder containing standards documents. If not set, the server looks in the default 'documents' folder.
SPACESTD_EMBEDNoSet to 'default' to enable embedding ranking fused with BM25 (requires the [embed] extra).

Instructions

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

Tools for ECSS and NASA standards. Always cite requirements and tables as returned in the 'citation' field. Only cite requirements returned by these tools. Take numbers (factors, test levels) only from get_table rows, with their conditions and footnotes. Every record and table carries its parse tier; values from tables below verified carry a check flag and a page: give such numbers with the flag, as "check against the source, page N". State the record kind (requirement, recommendation, permission, guidance, definition, deleted, table (a table with no owning record: cite the table)). Cite each standard with its issue and issue_date as returned, so the reader knows the edition. When a result carries issue_mismatch or loaded_issues, the user named an issue that is not loaded: say which issue is loaded and never present its text as the issue asked about. not_loaded and external_standards name documents this server does not hold: state no requirement from them. coverage: none or weak (with unmatched_terms) means the hits may not treat the subject. If no tool result supports an answer, say the loaded standards do not cover it; never answer from memory. For "which standards cover X" use find_standards; the full interface is in docs/TOOLS.md.

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_documentsA

List the standards currently loaded: issue, title, family (ECSS / NASA), doc_type (standard, handbook, ...), discipline, record counts and parse tier ("verified": hand-checked against the source; "checked": passes the automatic parse health checks; "unchecked": parsed automatically — for both, check numbers against the source page before relying on them).

Filters (optional, case-insensitive): family "ECSS" or "NASA"; doc_type e.g. "handbook"; discipline as a code ("E-32", "Q-70", "NASA-5000") or a name ("structures"); query: words in the doc ID or title. include_not_loaded: also list standards in the user's documents folder that are not loaded (loaded: false). Their text is not available: never answer from them, but you may name one as the standard that would cover a question. Returns {"count", "documents"} (at most limit, plus "truncated" when more match).

get_requirementA

Get the exact text of one requirement.

doc_id: e.g. "ECSS-Q-ST-80C" or "ECSS-Q-ST-80" or "NPR 7150.2"; issue words are allowed ("ECSS-Q-ST-80C Rev.2"). req_id: ECSS clause + letter, e.g. "5.2.1a" (DRD content: "A.2.1<5.2>a"; a definition: its number, "3.2.1"; a requirement printed without a letter: "4.2.3 req 2"); NASA tag, e.g. "FSR 24", "SWE-144", or an FCR item, e.g. "FCR 11 / 7.2.1.c"; untagged NASA standards: section + item, e.g. "4.2a", "4.3(1)", or the n-th "shall" paragraph of a section, e.g. "4.4 req 1". Records carry a kind: requirement, recommendation, permission, guidance, definition or deleted — say which when answering — and issue, issue_date, page, tier. Not found: loaded_issues (the issue or revision letter named is not the loaded one: say so, do not answer as if it were), records_in_clause (a clause with several records: ask for one), or nearest_ids (suggestions to read, never to cite unread). A record returned with asked_for holds the item asked for inside its text.

search_requirementsA

Search across loaded requirements (BM25; hybrid with embeddings when the server enables it). Optionally restrict to one document.

query: REQUIRED search words, never empty, e.g. "ultimate factor of safety metallic structure" or "fracture control NASA-STD-5019". A call without search words returns no results.

Returns {"results": [...]} plus, when relevant, "not_loaded", "issue_mismatch", "external_standards", "coverage", "elsewhere" and "notes". issue_mismatch: the query names an issue or revision letter that is not loaded (results come from the loaded issue: say which). external_standards: standards of other bodies named in the query, never held here. coverage "none" (no keyword match) or "weak" (unmatched_terms: an acronym or designation of the query is in no hit): the hits may not treat the subject. Without doc_id, standards named in the query (e.g. "NASA-STD-5001B", "ECSS-E-ST-32-01") restrict the search to them. not_loaded lists named standards that are not loaded: never answer from them. It is split into in_documents_folder (present in the user's documents folder but not loaded, with issue and status: say so, and that they can be loaded through corpus.yaml) and not_in_documents_folder (the user does not have them). elsewhere holds stronger hits from other loaded documents when the named document matches weakly — it may not cover the topic. Table rows are searched too: a hit found through a table carries matched_table_row (table citation, row labels, cells) — take the numbers from there or from get_table, and cite both the requirement and the table. Records and rows carry tier (verified, checked, unchecked) and page; rows from tables below verified carry check: repeat it ("check against the source, page N") next to any number taken from them. Each hit may carry neighbours: the records next to it in the same clause (a requirement is often split over sibling letters). They are full records with citations; read them before concluding a clause is not covered.

get_tableA

Get a table (e.g. factors of safety) as structured rows, verbatim from the source.

doc_id: e.g. "ECSS-E-ST-32-10C" or "NASA-STD-5001B". table_id: e.g. "Table 4-3" or "4-3". Each row has row labels and value cells (text as printed, parsed value, footnote markers). Quote the cell text and its footnotes; 'spans_rows' marks a value printed once in a merged cell that covers several rows. The table and each row carry tier and page; below verified they also carry check ("check against the source, page N"): give every number from such a table with that flag (an answer that does not repeat it fails the citation check). Omit table_id (empty string) to list the tables of a document.

get_referencesB

List the standards and clauses that a requirement (or its notes) refers to.

compare_topicA

Side-by-side search of one topic in several standards, e.g. ECSS vs NASA on factors of safety.

topic: the subject only, e.g. "ultimate design factor metallic structure" (no standard names). doc_ids: the standards to compare, e.g. ["ECSS-E-ST-32-10", "NASA-STD-5001"]; omit for all loaded. Returns one section per document, grouped by family (ECSS, NASA), with its top hits and the table rows they matched. Requested or named standards that are not loaded are listed as in search_requirements (not_loaded, in_documents_folder, not_in_documents_folder). coverage: "weak" marks a document whose best hit is far below the best hit elsewhere: it may not treat the topic — say so rather than force an equivalence. Coverage is judged on keyword matches: read the hits, and use get_requirement / get_table before comparing.

find_standardsA

Which loaded standards treat a topic: documents ranked for "which standards apply to / cover X".

topic: REQUIRED, the subject in a few words, e.g. "thermal vacuum test", "software criticality", "space debris mitigation". family: "ECSS" or "NASA" (optional). doc_type: e.g. "standard", "handbook" (optional). Returns {"documents": [...]}: each with doc_id, issue, issue_date, title, family, doc_type, discipline, parse tier, a score, how many of its records matched, and top_sections (clause, heading, the citation of the best record there; no text). The ranking is by keyword matches: it shows where a topic is written about, not that a standard is applicable to a given project. Read the sections with get_section_outline and get_requirement before stating what a standard requires, and cite those records, not this list.

get_section_outlineA

Table of contents of one standard: clause numbers, titles and how many records (by kind) each holds.

doc_id: e.g. "ECSS-E-ST-32-01C" or "NASA-STD-5019A". clause: e.g. "7.2" to list that section and its subsections, plus the record IDs placed directly in it and the tables in it; omit for the whole document. depth: how many heading levels to list below the starting point (default 2). The outline has no requirement text: use get_requirement / get_table for anything you quote or cite.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 8 tools

Disambiguation4/5

Most tools target clearly different resources: get_requirement/get_table/get_references fetch by ID, list_documents/get_section_outline describe structure. The three retrieval tools (search_requirements, find_standards, compare_topic) all do keyword search, but the descriptions sharply distinguish their outputs (records vs. ranked documents vs. side-by-side). One or two could still be confused at first glance, mainly find_standards vs. search_requirements.

Naming Consistency5/5

Uniform snake_case verb_noun pattern throughout: search_requirements, get_requirement, find_standards, get_section_outline, compare_topic, get_references, get_table, list_documents. The different verbs (get/find/search/list/compare) map meaningfully to different operations rather than being inconsistent.

Tool Count5/5

Eight tools is well within the sweet spot. Each tool covers a distinct step in the workflow (discover documents -> outline -> search -> fetch record/table -> follow references), with no redundant tools.

Completeness4/5

The surface covers the full retrieval lifecycle: list/filter documents, outline structure, keyword search, fetch exact requirement text, fetch tables, cross-references, and cross-standard comparison. Minor gaps remain — e.g. no tool to fetch a document's scope/abstract or to resolve reference targets directly (get_references only lists them), but agents can work around this with get_requirement.

Maintenance

ActivityMaintained
ResponsivenessOutdated data