Skip to main content
Glama

Get a short code to read out

share_code

Generate a six-digit code for voice handoff of a room to another machine. It expires after one minute and is redeemable once, so the person can read it aloud instead of dictating the full room ID.

Instructions

Turn the current room into a six-digit code that can be read aloud, then expires after a minute. Use this when the person is passing the room to another machine by voice — the full id is six words and painful to dictate. The code is one-time: whoever redeems it gets the room, and it stops working.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.4

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden. It clearly discloses that the code is six digits, expires after a minute, is one-time, and stops working after redemption. It also states that whoever redeems it gets the room, which is important transfer behavior.

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 sentences with no filler. The first sentence states the core behavior, the second gives the usage context, and the third clarifies lifetime and redemption constraints. Every sentence adds value.

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 zero-parameter tool with no output schema and no annotations, the description fully covers what the tool does, when to use it, and how the code behaves. The intended complement with join_with_code is implicit but clear from sibling context.

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 has zero parameters, so the schema provides complete coverage. The description confirms the operation uses the current implicit room context, which is sufficient even without parameter details.

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 action: turning the current room into a six-digit code that expires after a minute. It clearly distinguishes itself from sibling tools like create_room, join_room, and join_with_code by focusing on generating a shareable voice-friendly code.

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?

It explicitly states when to use this tool: when passing the room to another machine by voice, because the full id is six words and painful to dictate. It does not explicitly name alternatives or exclusions, but the context is clear enough to guide selection.

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

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/unbywyd/mcp-room'

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