Skip to main content
Glama

sb_components

Read-only

Retrieve a site's code components, their latest version and props schema, or list every version and schema by name to determine what a code-component node can pin and set.

Instructions

The site's code components (its own React, pushed by sb site push): name, latest and its props schema; with name, every version and its schema — what a code-component node may pin and set.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sb_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
site_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.112.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds real value on top by disclosing provenance (components pushed by `sb site push`) and the return shape in both the unnamed and named cases. It stops short of stating permissions, pagination, or limits on version history volume.

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?

It is a single dense sentence with no filler, and the core resource is front-loaded. The em-dash construction and the compressed 'name, latest and its props schema' clause hurt parseability, so the economy comes at some cost to clarity.

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?

For a read-only, open-world tool with no output schema, the description usefully explains what comes back and how the two modes differ. However, with no required parameters, no output schema, and zero schema description coverage, leaving `site_id` unexplained is a meaningful gap for an agent deciding how to scope the call.

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 0%, so the description must compensate. It does explain the semantic effect of `name` (omitted yields latest plus props schema; supplied yields every version plus schema), but `site_id` is never mentioned in the description or the schema, leaving one of two parameters semantically opaque.

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 a specific resource (the site's code components, i.e. its own React pushed via `sb site push`) and states what is returned in each mode. It is clear what the tool reads, though the phrasing 'name, latest and its props schema' is compressed enough that the two-mode structure takes a second read to parse, and no sibling tool is named for contrast.

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

Usage Guidelines3/5

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

Usage is only implied by the trailing clause 'what a code-component node may pin and set', which hints at the context in which an agent would call it. There is no explicit when-to-use statement, no exclusion, and no pointer to an alternative among the many sibling tools (e.g. sb_code, sb_node_read).

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