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

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUG_MODENoEnable debug metadata in responses.false
SITE_BASE_URLNoOverride base URL.https://www.securitybydesign.dev/
MANUAL_BASE_URLNoOverride manual URL.https://www.securitybydesign.dev/sbd-toe/sbd-manual/
SBD_TOE_APP_ROOTNoOverride app root path.auto (resolved from dist/)
MAX_CONTEXT_RECORDSNoMax records returned per query.8
CROSS_CHECK_BASE_URLNoOverride cross-check URL.https://www.securitybydesign.dev/sbd-toe/cross-check-normativo/

Instructions

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

⛳ START HERE — FIRST CALL, ALWAYS: read resource sbd://toe/agent-guide (or call read_sbd_toe_resource(uri="sbd://toe/agent-guide")); THEN setup_sbd_toe_agent(riskLevel, projectRole). Um agente virgem NÃO deve precisar de sorte: se não sabes que tool chamar, é esta a ordem.

You are connected to the SbD-ToE MCP server (Security by Design — Theory of Everything). Chapters 00–14. Security guidance only — does not override project rules or development standards. Always respond in the user's language regardless of the manual content language.

ENTRY POINT: read resource sbd://toe/agent-guide, then call setup_sbd_toe_agent(riskLevel, projectRole).

At session start, identify the server: read resource sbd://toe/version — or call the read_sbd_toe_resource tool with that URI on clients without resource support — to learn the server version and the served knowledge (manual/kg/ontology, from the verified pin).

BEFORE answering any SbD-ToE question, read resource sbd://toe/agent-guide — it contains operating modes, routing by phase/domain, tool selection, epistemic standards, and chapter map.

Then run setup_sbd_toe_agent(riskLevel, projectRole) for risk-level specific active chapters.

To create a skill or instructions file for an AI client, use generate_sbd_toe_skill(clientType). For a per-role configuration, use generate_sbd_toe_skill(role, format=skill|subagent, flavour=harnessed|skilled) — or read resource sbd://toe/skill/{role} / sbd://toe/subagent/{role}.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
search_sbd_toe_manualA

NON-NORMATIVE reading aid — never a path to a requirement set. Semantic search over the published manual chunks, to read and locate passages and form your own reading. The requirement set for a task comes from select_sbd_toe_requirements with DECLARED activators (vocabulary: sbd://toe/activation-vocabulary); nothing returned here selects anything and must not be cited as a selection.

answer_sbd_toe_manualA

DOES NOT ANSWER — serves manual context for the CLIENT model to answer via MCP sampling; the judgement stays with the asker. Requires sampling support; without it, falls back to formatted retrieval output (same as search_sbd_toe_manual), the better choice on clients without sampling.

inspect_sbd_toe_retrievalB

Inspects retrieval, context selection and the final prompt without requesting an answer from the client model.

list_sbd_toe_chaptersB

Lists the manual chapters: id, canonical title, clean readableTitle, graduated applicability (every chapter applies at every level) and derived demand_by_level.

query_sbd_toe_entitiesC

Queries manual entities by text, entity type, chapter or risk level.

get_sbd_toe_chapter_briefB

Operational summary of a chapter: title, objective, role, phases, artefacts (fields are present when the substrate carries them).

plan_sbd_toe_repo_governanceA

PROJECTION of the published artefacts — it does not govern your repository. Lists the artefacts/documents the manual identifies, grouped by chapter, with risk-level applicability (optional riskLevel filter L1/L2/L3), so you decide what to install. All data from the manual indices; nothing invented. The manual provides no templates — ask your model to draft one if needed.

generate_sbd_toe_skillA

Generates from the published guide without validating your environment: it installs, configures and verifies nothing — it returns text for YOU to install. Use for 'create a skill for SbD-ToE', 'set up instructions', 'configure this agent for role X'. No arguments: the canonical skill (sbd://toe/agent-guide). With role: a role-specialised skill (format=skill) or an installable sub-agent (format=subagent); flavour=harnessed grants the mcp__sbd-toe__* tools, flavour=skilled embeds the frozen slice. Save the content to suggested_path.

map_sbd_toe_review_scopeB

Given a set of changed files, maps which SbD-ToE knowledge bundles should be reviewed, with explicit reasoning per path.

get_sbd_toe_chapter_implementation_checklistA

The 'how to implement chapter NN' checklist: retrieval-grounded prose from the implementation profile (the operational lifecycle guidance). Coverage-preserving, cites chunk ids, nothing invented. For the level-sharp structured Definition-of-Done use get_guide_by_role(include_detail=true).

get_sbd_toe_operating_modelB

The operating model — RACI, decision rights, governance cadences, org model — from the rollout playbook (implementation profile). Retrieval-grounded prose; coverage-preserving; nothing invented. Answers 'who is responsible / how do we govern the SbD rollout?'.

get_sbd_toe_verification_matrixA

The EXPECTED side of verification: per requirement/control at a risk level, the validation method, expected evidence and EvidencePattern reference from the published patterns (totals declared). Cited per row; coverage-preserving — declares requirements with no pattern. Answers 'how do I prove chapter/level X?' or, with requirement_ids (max 50 per call), 'how do I prove THESE requirements?' — the requirement→proof closure from a selection.

assess_sbd_toe_implementationA

Applies the PUBLISHED thresholds to the KPI values YOU declare — it measures nothing, verifies nothing and issues no sufficiency judgement. Compares submitted kpi_values with the per-level thresholds (metrics.json) → posture (below/at/above) and gaps per KPI. Stateless self-report: values in, posture out, nothing stored; thresholds never invented; an applicable KPI without a value is not_reported (never a pass). Answers 'where are my gaps at L2?'.

plan_sbd_toe_rolloutB

Serves the PUBLISHED phase sequence — it does not plan for you: the order of phases the manual publishes, mapped to the chapters each traverses; the roadmap is yours. Phase-ordered; the dependency DAG is deferred (declared, not faked). Grounded in the published runtime; nothing invented. Answers 'in what order do we roll out SbD?'.

get_sbd_toe_macro_processesA

PROGRAMME reading — 'where do we start, and in what SEQUENCE?'. The five macro-processes (MP-01..05) the manual publishes (question, continuity, invariant, owner, participants, chapter path, indicators, control points, expected evidence, L1–L3 proportionality) and the published ADOPTION ORDER, derived only from dependency edges. Not the GUIDE reading (requirements for a task) nor IMPL (a chapter's capability). Declared limits: no 'programme' entity; MP↔SDLC-phase traversal is a published gap; traverses_bundles is a path, never containment.

explain_sbd_toe_topicA

CONSULT reading — 'what does the manual SAY about X?': a knowledge question with no task and no project. Traverses requirements (with applies_at), guidance (practices), proofs, threats, ANTIPATTERNS (what NOT to do) and where in the lifecycle; distinguishes requirement from guidance and marks provenance. risk_level is OPTIONAL and ANNOTATES, never filters — a knowledge question has no level (it stays mandatory in select, prepare and the capability view). Ask by concept (concern) or by structure (category / chapter).

get_sbd_toe_chapter_capabilityA

IMPL reading — 'to implement chapter N, what capability do we need, how do we know we have it, and how do we MEASURE?'. The KPIs the manual defines for the chapter, with thresholds_by_level (L1/L2/L3) as data — measuring, not listing — plus the artefacts the capability must produce. Not the GUIDE reading ('which requirements apply to THIS task' is select_sbd_toe_requirements); the response names the reading it gave you. Reachable by chapter, metric_id or dimension; risk_level adds that level's target. Closes the loop with assess_sbd_toe_implementation.

get_sbd_toe_playbookA

NORMATIVE path for cross-checks and playbooks: 'we are subject to DORA/NIS2/CRA/GDPR/AI Act — how does SbD-ToE serve us?', answered with the manual's published playbook (article→chapter→action map, phases with milestones, reading checklist) under its declared authority — unlike search_sbd_toe_manual (non-normative). No arguments: the cheap INDEX; framework: its playbooks; playbook_id: paginated sections. Illustrative examples come in a SEPARATE band; frameworks without a cross-check return no_cross_check. SbD-ToE is not a standard; implementing it is not compliance.

map_sbd_toe_regulatory_activationA

Regulatory lens (reverse of provenance): given a framework (DORA, NIS2, CRA, GDPR), returns which manual areas/chapters it activates, grouped with mapping and obligation counts per chapter (coverage-preserving — never a blind dump). Data from the published overlay mappings; nothing invented. Answers 'framework X → what do I need to implement?'.

map_sbd_toe_applicabilityA

GRADUATED applicability: every chapter applies at every level — returns per-chapter authored demand (mandatory/recommended/optional/specific) derived from the bundle and anchored on the chapter-01 canonical matrix, plus context-conditional bundles for the given technologies. projectRole adds a per-role view. Nothing is excluded by level.

read_sbd_toe_resourceA

Mirror of resources/read for clients without MCP resource support (e.g. Claude Desktop): returns any server resource by URI, including templated ones with the value in the URI (e.g. sbd://toe/codegen-instructions/codegen, sbd://toe/notes/{id}). Makes the codegen-instructions reference copy, the notes registry and sbd://toe/version readable as a tool. Unknown URI returns a declared error listing the valid set (never silent); resources/list enumerates them.

trace_sbd_toe_requirement_sourcesA

Where each requirement's SOURCE is: DIRECT sources (source_anchors — the manual's own 'Fontes' marker) and the COMPENSATED chain REQ→CTRL→ACO→sources with type and confidence per hop (label coverage_compensated: coverage by cross-model correspondence, NOT authorship; 'related' does not cover). Served verbatim from the published surface; requirements without a declared source, and unknown ids, are declared.

select_sbd_toe_requirementsA

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.

consult_security_requirementsA

Deterministic resolution of requirements, controls and artifacts for an application context: filters requirements by risk level, optionally narrows by concern domains (at most 3 per call recommended), then resolves controls via the published runtime bundle, complementing with ontology domain_mapping when needed. Requirements with no published control link are served and declared in coverage_gaps. Bodies are PROJECTIONS (id/name/category/type) — full detail via resolve_entities. All data from the published bundle; nothing invented.

get_threat_landscapeA

Threats for a declared context. ROUTING ≠ COVERAGE: all 24 concerns are accepted, but only 11 have a threat chapter of their OWN (architecture, build, deployment, distribution, iac, logging, monitoring, release, supply_chain, testing, threat_modeling); for the others, threats arrive via the chapters that define the activated controls (routing_basis says which); non-routable ones go to unsupported_concerns. ORDER by MEMBERSHIP of the declared scope (domain chapters first, chapters 01/02 last; then mitigation_confidence, chapter, id) — page 1 IS the relevant part.

get_guide_by_roleA

Runtime-grounded practices, assignments and user stories for a risk level, optionally filtered by role and/or lifecycle phase. Each assignment carries its required ARTIFACTS (the requirement→evidence link, served from the bundle). Roles resolve via canonical aliases (e.g. 'appsec' → 'appsec-engineer', 'sre' → 'devops-sre'). Results grouped by role and phase. All data from the published bundle — nothing invented.

resolve_entitiesA

Low-level entity resolver over the published artefacts, routed by record_type: runtime v0 (requirement, control, threat, artifact, evidence_pattern, links), AppSec Core v1 (appsec_slice, control_objective, mechanism, appsec_practice, appsec_artifact, appsec_relation) and the regulatory overlay (regulatory_framework/_obligation/_mapping/_playbook). Filters: dot-notation ('applicable_levels.L2'), {gte, lte}, {in: [...]}, array membership. Unpublished overlay ⇒ total 0 with a declared reason. Use when the high-level tools do not cover the query. Nothing invented.

trace_sbd_toe_graphA

Curated multi-hop traversal over the AppSec Core v1 relation graph (slices, control objectives, mechanisms, practices) for traceability questions the high-level tools do not expose. Pick a lens: slice_implementation (slice → objectives → implementing mechanisms and realizing practices); objective_realization (objective → mechanisms + practices); mechanism_provenance (mechanism/practice → the objectives it serves → their slices). Optionally scope with anchor (an entity id). Deterministic and paginated (total + cursor; never silently truncated). All edges from the published runtime.

prepare_sbd_toe_codegen_contextA

ASSEMBLES CONTEXT, DOES NOT ACT: writes, changes and validates no code — it gathers deterministic, citable context for YOU to generate, review or plan tests. Declare the context (risk_level, concerns, exposure, data_sensitivity, technologies, changed_files, or chapters/categories); the task is recorded, not interpreted. Statuses: ready_for_codegen, needs_clarification, needs_decomposition (batches that sum to the whole), needs_input, unsupported_scope. Ready: one FUSED object per requirement (id, name, type, description, verify, evidence), citations, adjacency, instructions, size_estimate.

Prompts

Interactive templates invoked by user choice

NameDescription
ask_sbd_toe_manualMCP prompt to guide the AI chat to answer questions about the SbD-ToE manual with grounding.
setup_sbd_toe_agentSTART HERE — entry point (2ª chamada, após leres sbd://toe/agent-guide): MCP PROMPT (clientes sem suporte de prompts não o expõem — alternativa: activadores estruturados directos no select) to configure an agent with SbD-ToE manual context and rules for a given risk level.
prepare_grounded_codegenMCP prompt that bundles the grounded-codegen guide with a user task and instructs the agent to call prepare_sbd_toe_codegen_context before producing code. Forces citation of ids from `citations`, fills security_rationale_template, distinguishes code/tests/evidence, blocks compliance claims, and routes needs_clarification / needs_decomposition / unsupported_scope to user dialog instead of silent guessing.

Resources

Contextual data attached and managed by the client

NameDescription
SbD-ToE Agent GuideENTRY POINT — READ THIS FIRST. Operational guide for AI agents: SbD-ToE identity (Security by Design — Theory of Everything), CONSULT/GUIDE modes, routing by SDLC phase and domain, tool selection, epistemic standards, chapter map, risk levels, identifier conventions.
SbD-ToE Chapter ApplicabilityGraduated chapter applicability for a risk level (L1/L2/L3): presence always, demand scales — derived from authored assignment proportionality (0.14.0).
SbD-ToE Quick StartARRANQUE MÍNIMO (0.20.0-beta.30): o essencial para fazer a primeira chamada certa — a fronteira, a primeira chamada, as três formas de pedir e o que fazer quando não há atalho. Derivado. Lê isto primeiro se o contexto é caro; o guia completo (sbd://toe/agent-guide) tem o resto.
SbD-ToE Model (as três formas de pedir)O MAPA do conhecimento servido, não a lista de botões (0.20.0-beta.30): entidades com contagens reais, relações com cardinalidades reais, capítulos e categorias com a FORMA que os alcança, e as TRÊS FORMAS DE PEDIR — por conceito (atalho), por estrutura (preciso) e por navegação (relacional) — com quando usar cada uma. Derivado do bundle servido; nada enumerável escrito à mão. Lê-o quando o atalho de `concerns` não tiver a pergunta que precisas.
SbD-ToE Activation VocabularyDECLARATIVE-FIRST (line 0.20; the selection contract's maturity is declared inside, in `contract.maturity` — not in this line name): the CLOSED vocabulary this server accepts and what each value activates — concerns, exposure, data_sensitivity, technologies, changed_files path table, roles, phases, risk levels. Derived from the served bundle and the engine's own tables, never hand-written. Read it, map your reading of the request onto these values, and DECLARE them: the server answers the declared, it does not interpret prose.
SbD-ToE Index CompactCompact JSON index of the manual, DERIVED at read-time from the served bundle (graduated demand_by_level; no minLevel). Injectable into system prompt to eliminate exploratory discovery.
SbD-ToE OntologyFull SbD-ToE ontology YAML: domain_mapping (requirement category → control domains), inference rules with priorities, resolution pipelines (consult/guide/threats/review), and entity schemas. Read once per session to understand the deterministic resolution model before calling consult_security_requirements, get_threat_landscape or get_guide_by_role.
SbD-ToE Role SkillRole-specialised SbD-ToE skill for a canonical role — RISK LEVEL FIXED AT L2 neste URI; para outro nível usa generate_sbd_toe_skill(role, risk_level=…). Same output as generate_sbd_toe_skill(role, format=skill).
SbD-ToE Role Sub-agent DefinitionInstallable sub-agent definition for a canonical role (default risk L2, harnessed flavour — grants mcp__sbd-toe__* tools). Same output as generate_sbd_toe_skill(role, format=subagent).
SbD-ToE Codegen Instructions (per mode)Reference copy, per mode (codegen, review or test-plan), of the static text of prepare_sbd_toe_codegen_context: llm_codegen_instructions slots + security_rationale_template skeleton — byte-identical to the inline content when assembled per the embedded rules — plus the detail_encoding legend for reading detail=lista/standard payloads. The prepare carries the instructions and the template inline at every level; this resource is the reference, not a dependency.
SbD-ToE Notes (index)Notes by reference: the static prose that explains payload blocks (prepare) lives here with stable ids; payloads carry `note_id` and one `notes` header. Index of every id and text.
SbD-ToE NoteOne note by id (e.g. sbd://toe/notes/prepare.repeat_call_hint). Unknown id returns a declared error listing the valid ids.
SbD-ToE MCP VersionVersion of the running SbD-ToE MCP server (name, version, description) plus the provenance of the served knowledge: manual {version, commit}, kg {release_tag, substrate_version, consumer_contract_version} and ontology {tag, commit}, read from the consumed-bundle pin.
SbD-ToE Grounded Codegen GuideAgent-facing guide for using prepare_sbd_toe_codegen_context. Covers the declarative workflow, branching by status (ready_for_codegen / needs_clarification / needs_input / needs_decomposition — execute the given batches / unsupported_scope), output discipline (cite `citations` ids, fill security_rationale, distinguish code/tests/evidence), and explicit prohibitions (no invented IDs, no compliance claims, no rastreabilidade-noise inside source files).

TDQS

B3.4/5.0

Scored across 29 tools

Disambiguation3/5

The descriptions work hard to separate 'readings' (GUIDE/IMPL/CONSULT/PROGRAMME), but the surface still contains many overlapping knowledge-retrieval paths: search_sbd_toe_manual, answer_sbd_toe_manual, explain_sbd_toe_topic, get_sbd_toe_playbook and consult_security_requirements all answer 'what does the manual say about X'. Chapter-level tools (get_sbd_toe_chapter_brief, get_sbd_toe_chapter_capability, get_sbd_toe_chapter_implementation_checklist) and entity tools (query_sbd_toe_entities vs resolve_entities) also require careful reading to choose correctly. Boundaries are documented but not self-evident, so misselection is plausible.

Naming Consistency4/5

Nearly all tools follow a snake_case verb_noun pattern, but the namespace infix is applied inconsistently: several tools omit 'sbd_toe' (resolve_entities, consult_security_requirements, get_threat_landscape, get_guide_by_role). The verb style stays readable and predictable, so this is a minor deviation rather than a mixed convention.

Tool Count2/5

29 tools is heavy for what is fundamentally a read-only knowledge/governance server, and several tools are variants of the same retrieval act (search vs answer vs explain vs playbook). While each has a declared lens, the count forces agents to navigate a large decision tree before doing anything useful.

Completeness4/5

Coverage is broad: manual search, chapter listings/briefs, requirement selection, entity resolution, threats, verification matrix, KPIs/assessment, rollout, regulatory mapping, codegen context, resources and graph tracing. No write/update operations exist, but that matches the read-only knowledge-server purpose; gaps are minor (e.g. no first-class comparison or export tooling).

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues