Skip to main content
Glama

search_requirements

Read-only

Search loaded ECSS and NASA requirements and table rows by keywords to find cited requirement IDs, clause matches, and coverage notes for standards questions.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
doc_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes far beyond by documenting every conditional response key (not_loaded with its two sub-lists, issue_mismatch, external_standards, coverage none/weak, elsewhere, notes) and what the agent must do with each. It also discloses tier/check provenance rules, the requirement to cite table rows, and the neighbour-records behavior, which materially changes how results should be used.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the query requirement are front-loaded, and nearly every sentence carries real information. However, it is delivered as one dense wall of prose mixing return-value semantics, citation duties and error handling, with no grouping or list structure, making it harder to scan than its content warrants.

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?

With no output schema and no annotation detail, the description supplies everything an agent needs: what each return key means, when it appears, and how to respond to ambiguous or unloaded results. Nothing essential for calling or interpreting this tool is missing apart from the limit parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden; it fully explains query (required, non-empty, natural-language examples, standard designations acting as filters) and doc_id's scoping effect. The third parameter, limit (default 5), is never mentioned in either schema or description, leaving one gap.

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?

States a concrete verb and resource ("Search across loaded requirements") plus the retrieval mechanism (BM25, optional hybrid embeddings) and the optional single-document restriction. An agent can distinguish it from record-fetching siblings like get_requirement, though no sibling is named explicitly.

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?

Gives clear operating context: query is required and must never be empty (with concrete example queries), and naming a standard without doc_id restricts the search to it. It also explains how to act on issue_mismatch, coverage, not_loaded and elsewhere signals, which is effectively when-to-trust guidance, but it never states when to prefer a sibling tool such as get_requirement or compare_topic.

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