Skip to main content
Glama
sbd-toe-mcp
by SbD-ToE

Select SbD-ToE Requirements (MP1)

select_sbd_toe_requirements
Read-only

Selects SbD-ToE requirements from declared risk level, concerns, exposure, data sensitivity, technologies, changed files, or catalog structure; returns selected, narrowed-out, and excluded bands.

Instructions

START HERE. DECLARATIVE FIRST: DECLARE what you read — risk_level, concerns, exposure, data_sensitivity, technologies, changed_files, or structure (chapters, categories); the server never interprets prose (vocabulary: sbd://toe/activation-vocabulary). task is recorded, not selecting; no declaration ⇒ needs_input. Bands: selected, narrowed_out, excluded_by_level, out_of_scope_chapters. selected is paginated by ID ORDER (ACC first, VAL last), NOT by relevance: to reach one category, declare the concern that activates it or ask by structure (categories=[…]) instead of paging to it.

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": {
      "risk_level": "<risk_level>"
    },
    "name": "select_sbd_toe_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNodeclarative (default): responde ao DECLARADO; sem declarações devolve needs_input com vocabulário e candidatos a confirmar. baseline: baseline completa do nível, por pedido EXPLÍCITO (nunca fallback). discover: motor inferencial histórico (casamento lexical da prosa), exploratório — investigação e estudo de paráfrase.
taskNoALIAS de `task_context` (compatibilidade). Em mode='discover' é o MOTOR (casamento lexical, exploratório); no modo declarativo é apenas contexto registado.
limitNoPage size over selected[] (default 100).
stackNoTexto livre da stack. No modo declarativo só conta quando traz, como TOKEN EXACTO, um valor de `technologies` (normalizar o declarado é legítimo; adivinhar prosa não). Preferir `technologies`.
detailNoSerialization level — the same axis as prepare (inline vs by reference). full (default): each item carries its full selection_trace. standard: the DISTINCT justifications move to selection_trace_legend and each item references them in `trace` (measured −40%). lista: standard minus the derivable `type` and `source_chapter` (recoverable via trace_sbd_toe_requirement_sources; −48%). Same id set at every level — a serialization diet, never a content one. 'minimal' was renamed 'lista'; the error says so.
offsetNoPagination offset over selected[].
chaptersNoFORMA B — pedir por ESTRUTURA (0.20.0-beta.30). Ids de capítulo do catálogo publicado (`list_sbd_toe_chapters`), ex.: ["14-governanca-contratacao"]. Declaração VERDADEIRA e verificável: não depende de existir um atalho de `concerns` nem de inventar `changed_files`. Mesmas bandas, mesmo traço (`layer: "declared_structure"`), mesmos denominadores. Um valor que o catálogo não conhece vem em `unknown_structural`.
concernsNoDECLARADOS por ti a partir da tua leitura do pedido. Conjunto FECHADO de 24 valores, gerado do mesmo vocabulário que sbd://toe/activation-vocabulary publica (com o que cada valor activa e quantos requisitos traz por nível). Valores fora do conjunto são DECLARADOS na resposta (unknown_concerns), nunca descartados em silêncio. Somam activação, não restringem.
exposureNoDeclared activator: authenticated/public activate auth+logging (+api/validation/architecture for public).
categoriesNoFORMA B — pedir por ESTRUTURA (0.20.0-beta.30). Códigos de categoria (o prefixo dos ids: `AUT-001` → `AUT`), ex.: ["GOV"]. Para quando queres exactamente uma família de requisitos e não um agrupamento pré-cozinhado. Ver `sbd://toe/model` para a lista e o que cada uma cobre.
risk_levelYesApplication risk level (drives the baseline).
task_contextNoCONTEXTO REGISTADO (auditoria): o enunciado da tarefa. NOME CANÓNICO desde 0.20.0-beta.24 — um campo chamado `task` convidava a ser o motor, e não é: NÃO influencia a selecção no modo declarativo. Alias `task` continua aceite (aditivo, nunca renomeámos nada); em mode='discover' o texto é motor e `task` é o nome a usar.
technologiesNoConjunto FECHADO (containers, kubernetes, iac, ci-cd, sca-sbom, sast, dast, monitoring, jwt) — activação por TABELA publicada, não por semelhança de texto; `jwt` aciona a regra nomeada SES-008. Ver sbd://toe/activation-vocabulary.
changed_filesNoCaminhos reais do repositório — activam capítulos pela TABELA de padrões de path publicada (sbd://toe/activation-vocabulary), não por interpretação do nome.
data_sensitivityNoDeclared activator: personal/regulated activate encryption+validation+logging.
regulatory_frameworksNoOverlay frameworks to EXTEND with (e.g. 'EXT-AI-ACT').
include_regulatory_overlayNoWhen true, resolves overlay obligations (operator extend; replace awaits ADR 0014).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint it discloses non-obvious runtime behavior: no declaration yields needs_input, the server never interprets prose, results are returned in four named bands, and selected[] is paginated by ID order rather than relevance. The last point materially changes how an agent should query and prevents a costly paging strategy.

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

Conciseness5/5

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

Front-loaded with the entry-point instruction, then the declarative rule, then the output-shape caveat about ordering. Dense and all-caps, but every clause carries an actionable constraint rather than restating the title.

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

Completeness4/5

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

For a 17-parameter, no-output-schema tool it covers the critical decision points: what to declare, what happens when nothing is declared, and how paging behaves. Band contents are named but not fully described, which an agent must discover from the response itself.

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 coverage is 100%, so baseline would be 3, but the description adds selection meaning: `task` is recorded and does not drive selection, declaration is preferred over prose, and structure (chapters/categories) is the way to target one family. It reinforces rather than merely repeats the schema's per-field text.

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 the resource (SbD-ToE requirements) and frames selection as declaration-driven activation, with 'START HERE' marking it as an entry point. It does not explicitly contrast itself with siblings such as consult_security_requirements or map_sbd_toe_applicability, so an agent knows what it does but not precisely how it differs from those.

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?

Strong within-tool routing: declare rather than describe, do not page to reach a single category, use categories=[…] for a single family, and records/needs_input semantics for undeclared calls. What is missing is guidance against sibling tools — nothing says when to call consult_security_requirements or map_sbd_toe_applicability instead.

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