Skip to main content
Glama

get_pairing_code

Generates a stable 4-character session code for linking an iPad to the current Claude session by entering the code on the device.

Instructions

Returns a 4-character pairing code for this session. The user enters this code on their iPad to link it to this Claude session. Each session gets one stable code.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a genuinely useful behavioral trait: the code is stable per session rather than rotating, which tells the agent a single call suffices. It does not state whether the code expires, is revoked, or is sensitive to share, which are the remaining relevant behaviors for a pairing secret.

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?

Three short sentences, front-loaded with the return value and followed by the user-facing purpose and the stability guarantee. Nothing is redundant or padded.

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 zero-parameter read tool with no output schema, the description covers the return value, its format, its audience, and its stability. Only edge cases (no active session, expiry, revocation) are unaddressed, which are minor for this complexity level.

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 and the description correctly presents it as a no-argument call, so there is no parameter semantics to explain. Baseline 4 applies.

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 ("Returns a 4-character pairing code for this session") and immediately explains the code's purpose in the pairing workflow. It is unambiguous and clearly distinct from the handwriting/history/export 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?

Usage context is clear: call it to obtain the code the user types on their iPad to link the device to this Claude session. The sentence "Each session gets one stable code" implicitly discourages repeated polling, but there is no explicit statement of when not to call it or of any prerequisites.

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