Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

generate_barcode

Create scannable barcodes or QR codes for inventory items to enable physical sample tracking and identification. Generates printable image data for labeling.

Instructions

Generates scannable barcodes for inventory items

Usage: Create physical labels for sample tracking and identification Types: 'BARCODE' for standard linear barcodes, 'QR' for QR codes Returns: Binary barcode image data for printing or display

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
global_idYes
barcode_typeNoBARCODE

Implementation Reference

  • The handler function for the 'generate_barcode' MCP tool. It is decorated with @mcp.tool for automatic registration and implements barcode generation by calling the inv_cli.barcode method, handling BARCODE or QR types.
    @mcp.tool(tags={"rspace", "inventory", "utility"}) def generate_barcode(global_id: str, barcode_type: str = "BARCODE") -> bytes: """ Generates scannable barcodes for inventory items Usage: Create physical labels for sample tracking and identification Types: 'BARCODE' for standard linear barcodes, 'QR' for QR codes Returns: Binary barcode image data for printing or display """ bc_type = i.Barcode.BARCODE if barcode_type.upper() == "BARCODE" else i.Barcode.QR return inv_cli.barcode(global_id, barcode_type=bc_type)

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/rspace-os/rspace-mcp'

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