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

Query SbD-ToE Entities

query_sbd_toe_entities
Read-only

Search manual entities by text, ID, type, chapter, or risk level to find relevant requirements, user stories, metrics, or threats for security review.

Instructions

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

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": "query_sbd_toe_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
topKNo
queryYesFree text, or an exact entity id (resolved directly: match=exact_id).
chapterIdNoFilter by chapter bundle id (e.g. 06-desenvolvimento-seguro) or its numeric prefix.
riskLevelNoFilter by the chunk's published risk facet; chunks without a facet are not returned (declared in the `filters` field of the result).
entityTypeNoFilter chunks by the entity type they mention: Requirement | UserStory | Metric | Threat (aliases accepted, e.g. requirements, us, kpi). Structured records (controls, control objectives, mechanisms, artifacts) are queried with resolve_entities instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

C2.7/5.0
Behavior2/5

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

The readOnlyHint annotation already tells the agent this is a safe read, so the description owes context beyond that. Instead it merely restates the parameter facets: nothing about exact-id resolution behavior, the topK cap, or that chunks lacking a risk facet are silently excluded from results. That exclusion behavior is a meaningful result-shaping trait disclosed only in the schema.

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

Conciseness4/5

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

A single short sentence with no filler, and the capability is front-loaded. It is efficient rather than padded, though the brevity leaves the agent under-informed rather than being a structural flaw.

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

Completeness3/5

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

With five parameters, an enum, a max topK, and no output schema, the definition needs more than one clause. The rich schema compensates for most parameter gaps, but with no output schema the description should at least characterize the shape of results (entity records with matches and filters), which it does not.

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

Parameters3/5

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

Schema description coverage is 80%, so the schema itself already explains query, chapterId, riskLevel, and entityType in detail. The description adds no semantics beyond naming the same four facets, and says nothing about topK. Baseline 3 applies because the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a verb ("Queries") and enumerates the filter dimensions (text, entity type, chapter, risk level), which gives a rough sense of capability. However, "manual entities" is an undefined term, and the description never distinguishes this from the similarly named sibling search_sbd_toe_manual or resolve_entities. An agent must open the schema to learn what an entity actually is.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance appears in the description. The only routing signal ("Structured records ... are queried with resolve_entities instead") lives inside the entityType schema property, not the description, so it is easily missed at selection time. The text gives no trigger conditions relative to search_sbd_toe_manual or answer_sbd_toe_manual.

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