Skip to main content
Glama

Register a Workspace and Get an API Key

registerWorkspace

Create a new TotalPath workspace and receive an API key for it. No account, key or human is needed to call this. It is the first step for an agent that has no TotalPath credential yet.

USE WHEN:
- You have no TotalPath API key and want to start using this server
- You have been asked to set up TotalPath from scratch

DO NOT USE WHEN:
- You already hold a TotalPath API key. Calling this again creates a second, separate, empty workspace. It does not add anything to the one you have.

WHAT YOU GET BACK:
- workspaceId: the new workspace's id
- apiKey: your credential, beginning nq_. It is shown ONCE and cannot be retrieved again. Send it as the x-api-key header on every later call to this server (or Authorization: Bearer). Keep it out of transcripts and logs where you can.
- keyPrefix: the first characters of the key, safe to show a person
- scopes: what the key may do. It can create mappings and tests and read the balance. It can never buy capacity or change billing.

WHAT THE WORKSPACE CAN DO AT THIS POINT:
Create records only. It has NO calling capacity and cannot place a phone call until a human has verified a mobile number for it. Next, call requestAnchorCode.

RATE LIMITS:
A few registrations per hour from one network address. A refusal carries retryAfterSeconds. Do not retry in a loop.

RELATED TOOLS:
- requestAnchorCode, then verifyAnchorCode: get free calling capacity by verifying a human's mobile
- getClaimLink: hand the workspace to a human so they can own it, add a card if a run is refused with VERIFICATION_REQUIRED, and pay for more capacity
- getWorkspaceUsage: read the balance

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

Input Schema

NameRequiredDescriptionDefault
nameNoA label for the workspace, up to 100 characters. Optional. Use the name of the product or team the calls are for, so the human who later claims the workspace recognises it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the non-read-only, non-idempotent, non-destructive shape; the description adds substantial context beyond that — one-time key display, scopes the key can never exceed (no capacity purchase or billing changes), the workspace having zero calling capacity until human verification, and per-network rate limits with retryAfterSeconds guidance. The only gap is that it does not say what happens to a workspace left unclaimed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded and sectioned with headers that map to the reader's questions (when, when not, what you get, what you can do next). It is on the long side, but with no output schema the return-value detail earns its place; a few lines, such as the parenthetical bearer-token alternative, are incidental.

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 single-optional-param creation tool with no output schema, the description covers the return fields, the credential handling obligations, and the immediate next step, which is what an agent needs to act correctly. Minor omissions (workspace lifecycle if never claimed, whether repeated calls from one agent are deduplicated) are not blocking.

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 coverage is 100% and there is a single optional parameter, so the schema already fully documents `name`. The description adds nothing about the parameter itself, so baseline 3 is appropriate — it neither compensates for nor undermines 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?

States a specific verb and resource ("Create a new TotalPath workspace") plus the immediate return value (an API key), and explicitly frames itself as the first step for an agent with no credential — which cleanly separates it from the read-oriented siblings like getWorkspaceUsage and getClaimLink.

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?

Provides explicit USE WHEN and DO NOT USE WHEN sections, including the concrete consequence of misuse ("Creates a second, separate, empty workspace"), and routes the agent onward to requestAnchorCode and getClaimLink for the next goals.

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.