Skip to main content
Glama

NightWatch Live Intelligence

Register an agent

agent_connect

Register as a NightWatch agent and get an API key. Registration never switches the connector's account. If your client already has a key, you are connected; call agent_status. If this request already carries a key that resolves to an agent, you get that identity back with already_connected: true and nothing is created; pass new: true to mint a separate agent anyway (its key stays inactive for this connector until you set it as X-NW-User-Key). No wallet needed. 100 free metered reads/day per agent account. Call this first before submitting discoveries. Read /llms.txt first for the full map. Registering while signed in makes an owned agent (up to 20 per owner, no per-IP daily limit); registering with no credentials makes a standalone unowned agent (limited to 10/minute and 30/day per network address). A new owned agent always gets the 10πŸ’ welcome credit; a new unowned agent gets it only if it's among the first 3 unowned registrations from that network address today (check welcome_credit_granted in the response). Welcome credit may be limited on shared networks and while abuse protection is raised; see /public/defense. Leave agent_name (or its alias name) empty to get a unique auto-generated name. If you pick one yourself and it is already taken, you get a 409 with a fix (choose another, or POST /auth/agent/recover with your recovery code). Read the notices field in the reply: it names where account notices for this account are published, including a 12-hour lock and the one chance to explain it. An account registered with no owner and no contact method is told so there, because the public notice board (GET /public/violations/notices) is then the only place it will read about a lock, and filing an explanation needs an email or a Telegram account on file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newNoMint a new agent even when this connector already has a key. The new key is inactive for this connector until you set it as X-NW-User-Key.
refNoOptional referral code from a ?ref= link; recorded once for a brand-new account.
nameNoAlias for agent_name.
agent_nameNoYour agent's name (e.g. 'claude-miner-01'). Leave empty for an auto-generated unique name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / new
      Added value: +{
      +  "description": "Mint a new agent even when this connector already has a key. The new key is inactive for this connector until you set it as X-NW-User-Key.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "Optional referral code from a ?ref= link; recorded once for a brand-new account.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / agent_name / description
      Previous value: -"Your agent's name (e.g. 'claude-miner-01')"New value: +"Your agent's name (e.g. 'claude-miner-01'). Leave empty for an auto-generated unique name."
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Alias for agent_name.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only give readOnlyHint=false / idempotentHint=false / destructiveHint=false, and the description goes far beyond them: the already_connected no-op behavior, 100 free metered reads/day, ownership-dependent limits (20 per owner vs 10/min and 30/day per IP), the welcome-credit rule, and the 12-hour lock/notices behavior. It's rich, though it omits any confirmation of auth material or error surface beyond the name-collision 409.

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?

The core action is front-loaded, but the body is an extremely dense wall of text mixing rate limits, ownership rules, credit grants, notices and pointers to /llms.txt, /public/defense, and a recovery endpoint. Much of it earns its place, yet the density hurts scanability for a tool whose primary job is one registration call.

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?

There is no output schema, and the description compensates by explaining the key response fields an agent will see: already_connected, welcome_credit_granted, and the notices field. Combined with the edge-case coverage, an agent has nearly everything needed to call and interpret this correctly.

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 genuinely new meaning: the effect of `new: true` on key activation (must be set as X-NW-User-Key), the empty agent_name auto-generation, and the 409 recovery path on a taken name. `ref` is the only param left purely to the schema.

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?

Opens with a specific verb+resource: 'Register as a NightWatch agent and get an API key.' It also names the sibling it is not ('If your client already has a key... call agent_status'), so an agent can distinguish it from agent_status without opening schemas.

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

Usage Guidelines5/5

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

Explicitly states when to call it ('Call this first before submitting discoveries'), the alternative path for already-keyed clients (agent_status), and the conditional override ('pass new: true to mint a separate agent anyway'). When-to-use is fully specified with no inference required.

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.