Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PHONE_BASENoPhone HTTP base URL, e.g. http://192.168.1.5:8080
PHONE_TOKENNoPairing auth token
ONSENSE_CLIP_DIRNoDirectory where pushed files are saved<tempdir>/onsense
ONSENSE_TEST_FRAMENoLocal JPEG path returned by get_live_frame when phone is unreachable
ONSENSE_CLIP_MAX_MBNoMaximum incoming file size in MB (0 = unlimited)200
ONSENSE_CLIP_ALLOW_PULLNoSet to '1' to enable PC→phone pull without the CLI flag0
ONSENSE_CLIP_SET_CLIPBOARDNoSet to '1' to auto-inject into OS clipboard without the CLI flag0

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_live_frameA

One current frame from the phone camera (JPEG). Falls back to a local test image (if configured) when the phone is unreachable.

read_sensorsA

The phone's current sensor values (battery level/charging, illuminance lux, acceleration x/y/z) as JSON.

recent_photos

JSON list of the device's recent photos (id, name, date_added, w, h). Get the image via get_photo(id).

If the user designated content in the phone app (LIVE / Capture / File / Phone clipboard), prefer get_reference — it returns exactly what they picked; this gallery list may not include it.

get_photo

Fetch the photo for the id returned by recent_photos (downscaled to max_width).

get_referenceA

Download whatever the phone currently designates as the 'share target' to the PC, save it, and return the path and metadata (JSON).

Depends on the phone app's reference mode: LIVE = real-time camera frame, Capture = a fixed captured image, File = an arbitrary file the user chose. Non-image files (PDF, video, documents, etc.) are fetched as-is too. (If you only need an image preview, get_live_frame is simpler.) Returns: {"path", "mime", "bytes", "name"} — path is the PC-local save path (the user's Downloads folder, so it's easy to find and use later — not a temp folder). Always call this to fetch the phone's CURRENT designation — never reuse files already sitting in the save folder (they are stale copies from earlier fetches, not what the user has designated now).

get_cam_fpsA

Query the phone's current camera FPS setting (15=high performance, 2=balanced, 0=on-demand).

set_cam_fps

Change the phone's camera FPS setting.

fps: 15 (high performance), 2 (balanced, recommended), 0 (power-saving/on-demand)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/hufirst/onsense'

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