Skip to main content
Glama

set_pin

Protect your Signal account from SIM-swap attacks by setting a 4-20 digit registration lock PIN. Anyone attempting to re-register your number must provide this PIN, preventing unauthorized access.

Instructions

Set a Signal Registration Lock PIN to protect your account against SIM-swap and unauthorized re-registration. Only works when signal-mcp is the account's primary device — fails with 'This command doesn't work on linked devices' if signal-mcp was set up via signal-cli link. Once set, anyone attempting to re-register your phone number on Signal must provide this PIN. The PIN must be 4–20 digits. Signal also uses the PIN to derive your storage encryption key. If you forget the PIN, you must wait 7 days for the lock to expire before re-registering. Use when you want to harden your account against SIM-swap attacks. Use remove_pin to disable the lock. Do NOT set a PIN you might forget — losing it locks you out of your account for 7 days.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pinYes4–20 digit numeric PIN (e.g. '123456')
Install Server

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure, and it excels: it reveals the primary-device-only constraint, the failure mode on linked devices, the PIN format (4–20 digits), the use of the PIN for storage key derivation, the 7-day lockout on forget, and a warning against choosing a forgettable PIN. All significant side effects are disclosed.

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?

The description is dense but every sentence contributes: purpose, device constraint, re-registration effect, PIN format, key derivation, lockout consequence, when-to-use, and the alternative tool. It front-loads the primary purpose and flows logically from how it works to the warning. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no output schema, this description is fully complete. It covers what the tool does, when to use it, the only parameter, the failure scenario, side effects, and the recommendation to use remove_pin for reversal. An agent has everything needed to invoke it correctly and understand the impact.

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 input schema already fully describes the pin parameter as '4–20 digit numeric PIN', so schema coverage is 100%. The description adds value beyond that by explaining why the PIN matters (storage key derivation) and the consequence of forgetting it (7-day lockout). This is more than a repeat of the schema, though not a completely new semantic layer.

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 clearly states the action (set a Signal Registration Lock PIN), the resource (the Signal account), and the purpose (protect against SIM-swap and unauthorized re-registration). It is unmistakably distinct from siblings like remove_pin and pin_message, leaving no ambiguity about what this tool does.

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?

It explicitly says 'Use when you want to harden your account against SIM-swap attacks' and points to remove_pin as the way to disable the lock. It also states a critical precondition: only works on the primary device, with a specific failure message on linked devices, so an agent knows exactly when to call it.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/googlarz/signal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server