Skip to main content
Glama

提交组件到 8pt 审核

submit_component

把你做好的原生组件(HTML + CSS + 可选 JS,不依赖框架和外部资源)提交到 8pt。会存成这个账户的投稿并进入人工审核,结果发邮件通知;在 https://8pt.dev/w/studio/ 查看状态。

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": {
      "name": "<name>",
      "description": "<description>",
      "html": "<html>"
    },
    "name": "submit_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsNoscript.js 的内容(可选)
cssNostyle.css 的内容
htmlYesindex.html 的内容(只写组件本身的标记)
nameYes组件名称,例如「磁吸按钮」
tagsNo逗号分隔的标签(可选)
categoryNo分类 key(可选),例如 buttons、cards、inputs
descriptionYes它做什么、适合用在哪里,至少 10 个字

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantially beyond the annotations: the call creates a persistent submission tied to the account, triggers asynchronous human review, sends an email notification, and exposes status at a specific studio URL. With readOnlyHint=false and destructiveHint=false already declaring the write-but-not-destructive profile, the remaining gap is what happens on validation failure or duplicate names.

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?

Two sentences, front-loaded with the action and its content constraint, then the downstream effects and where to verify status. No sentence is redundant and every clause carries information.

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?

Given seven parameters, no output schema, and an async review pipeline, the description covers purpose, content constraints, storage semantics, notification channel, and status lookup. It stops short of describing failure or duplicate-submission behavior, which is the main remaining gap for a write tool.

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 the baseline is 3, but the description adds real meaning by constraining what the html/css/js payloads may contain — native markup only, no frameworks or external resources. It still doesn't clarify tags/category formatting or the description length rule beyond what the schema states.

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 states a specific verb and resource: submit a native component (HTML + CSS + optional JS, framework- and external-resource-free) to 8pt. The verb clearly separates it from the retrieval siblings (get_component, search_components), but it never explicitly contrasts with design_ui, which could also be a place where components get made.

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?

Provides clear preconditions — a finished native component, no frameworks or external resources — and states the outcome (becomes a submission on this account, enters manual review). It does not say when not to use it or whether resubmitting/updating an existing component is the right call instead, so the exclusions are missing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources