Skip to main content
Glama

hachidori_userscript_guide

Read-only

Read the userscript API, popup events, shadow DOM, CSS scope, and permission/reload requirements before writing a Hachidori script to avoid integration errors.

Instructions

Read the userscript API, popup events, shadow DOM, CSS scope and permission/reload requirements before writing a script.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered structurally; the description adds the useful framing that this is prerequisite reading prior to script authoring, and enumerates the topics covered. However, it says nothing about the shape of the returned material (raw docs, code samples, sections) despite there being no output schema to fall back on. That gap keeps it at an adequate 3.

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?

A single sentence with zero filler, front-loaded with the action and listing the covered topics compactly. Every clause carries information an agent can act on.

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?

The tool is simple (no params, no output schema), so the burden is light, and the topic enumeration helps an agent decide whether this guide covers its need. Still, with no output schema the description should indicate what the response actually contains (documentation prose, examples, constraints), and it does not. Adequate but with a clear gap.

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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline applies. Nothing in the description misleads about inputs, and the empty schema is consistent with a pure documentation-read tool.

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 uses a specific verb ('Read') and enumerates the concrete subject matter: userscript API, popup events, shadow DOM, CSS scope, and permission/reload requirements. An agent can tell this is a reference/documentation retrieval tool rather than a mutation tool like hachidori_save_userscript. It stops short of explicitly differentiating itself from non-userscript reference siblings such as hachidori_describe_settings.

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?

The phrase 'before writing a script' gives an explicit temporal trigger for invocation, which is genuinely actionable guidance. There are no when-not conditions and no named alternatives, so it falls short of the top score, but the primary use context is unambiguous.

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