Skip to main content
Glama

Check e-bike conversion legality

check_conversion_legality
Read-onlyIdempotent

Checks whether a DIY e-bike conversion (motor kit on a regular bicycle) qualifies as a legal electric bicycle in a US state. Returns a pass / warn / fail verdict with a reason for each rule: motor power, speed and class, licence/registration/insurance, class label, battery certification, plus state notes on conversions and recent law changes, with source links.

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": {
      "state": "<state>",
      "motor_watts": "<motor_watts>"
    },
    "name": "check_conversion_legality"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesUS state or DC: two-letter code (CA) or full name
has_pedalsNoTrue if the bike keeps fully operable pedals. Default true
motor_wattsYesMotor rated (nominal) power in watts
battery_certNolisted = certified to UL 2271/2849 by an accredited lab; claimed = seller says 'tested to' or 'meets'; none; unknown
has_throttleNoTrue if the bike can be powered without pedaling
assist_top_mphNoSpeed at which pedal assist cuts out. Default 20; 28 for a Class 3 setup
throttle_top_mphNoSpeed at which throttle power cuts out. Default 20

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish that this is read-only, idempotent, non-destructive, and closed-world. The description adds substantive behavior beyond that: it returns pass/warn/fail verdicts, explains each rule, includes state-specific notes on conversions and recent law changes, and provides source links.

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 tightly structured sentences: the first front-loads purpose and scope, and the second explains the return structure and rule coverage. There is no redundant or filler wording.

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?

For a seven-parameter, read-only legality checker with no output schema, the description is nearly complete: it states scope, verdict format, rule categories, and source links. Minor gaps remain around caveats, assumptions, or limitations of the legality assessment.

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 100%, so the schema already defines all seven parameters, including defaults and the battery-certification enum. The description adds the rule areas being evaluated but does not add parameter-specific meaning or syntax beyond what the schema provides.

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

Purpose5/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: checking whether a DIY e-bike conversion qualifies as a legal electric bicycle in a US state. It clearly distinguishes this compliance-checking role from raw law-retrieval or component-listing siblings.

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 context is clear: use this when assessing legality of a DIY conversion in a specific US state. It does not explicitly name alternatives such as get_state_ebike_law or state when not to use it, so it stops short of full routing guidance.

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