KosmoKrator

data

Radar CLI for AI Agents

Use the Radar CLI from KosmoKrator to call Radar tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Radar CLI Setup

Radar can be configured headlessly with `kosmokrator integrations:configure radar`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure radar --set access_token="$RADAR_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor radar --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token RADAR_ACCESS_TOKEN Secret secret yes API Key
url RADAR_URL URL url no API Base URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call radar.radar_list_geofences '{"limit":1,"cursor":"example_cursor","tag":"example_tag","group":"example_group"}' --json
Provider shortcut
kosmo integrations:radar radar_list_geofences '{"limit":1,"cursor":"example_cursor","tag":"example_tag","group":"example_group"}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs radar --json
kosmo integrations:docs radar.radar_list_geofences --json
kosmo integrations:schema radar.radar_list_geofences --json
kosmo integrations:search "Radar" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

radar.radar_list_geofences

List geofences from Radar with optional filters for tag, group, and pagination.

Read read
Parameters
limit, cursor, tag, group
Generic call
kosmo integrations:call radar.radar_list_geofences '{"limit":1,"cursor":"example_cursor","tag":"example_tag","group":"example_group"}' --json
Shortcut
kosmo integrations:radar radar_list_geofences '{"limit":1,"cursor":"example_cursor","tag":"example_tag","group":"example_group"}' --json

radar.radar_get_geofence

Retrieve detailed information about a specific geofence by its ID.

Read read
Parameters
geofence_id
Generic call
kosmo integrations:call radar.radar_get_geofence '{"geofence_id":"example_geofence_id"}' --json
Shortcut
kosmo integrations:radar radar_get_geofence '{"geofence_id":"example_geofence_id"}' --json

radar.radar_create_geofence

Create a new geofence in Radar with a name, type, and geometry.

Write write
Parameters
name, description, type, coordinates, radius, tag, group, external_id, metadata
Generic call
kosmo integrations:call radar.radar_create_geofence '{"name":"example_name","description":"example_description","type":"example_type","coordinates":"example_coordinates","radius":1,"tag":"example_tag","group":"example_group","external_id":"example_external_id"}' --json
Shortcut
kosmo integrations:radar radar_create_geofence '{"name":"example_name","description":"example_description","type":"example_type","coordinates":"example_coordinates","radius":1,"tag":"example_tag","group":"example_group","external_id":"example_external_id"}' --json

radar.radar_list_users

List users from Radar with optional filters for tags and pagination.

Read read
Parameters
limit, cursor, tags
Generic call
kosmo integrations:call radar.radar_list_users '{"limit":1,"cursor":"example_cursor","tags":"example_tags"}' --json
Shortcut
kosmo integrations:radar radar_list_users '{"limit":1,"cursor":"example_cursor","tags":"example_tags"}' --json

radar.radar_get_user

Retrieve detailed information about a specific Radar user by their ID.

Read read
Parameters
user_id
Generic call
kosmo integrations:call radar.radar_get_user '{"user_id":"example_user_id"}' --json
Shortcut
kosmo integrations:radar radar_get_user '{"user_id":"example_user_id"}' --json

radar.radar_list_events

List events from Radar with optional filters for type, user, and pagination.

Read read
Parameters
limit, cursor, type, user_id, geofence_id
Generic call
kosmo integrations:call radar.radar_list_events '{"limit":1,"cursor":"example_cursor","type":"example_type","user_id":"example_user_id","geofence_id":"example_geofence_id"}' --json
Shortcut
kosmo integrations:radar radar_list_events '{"limit":1,"cursor":"example_cursor","type":"example_type","user_id":"example_user_id","geofence_id":"example_geofence_id"}' --json

radar.radar_get_current_user

Get the currently authenticated Radar user's account information.

Read read
Parameters
none
Generic call
kosmo integrations:call radar.radar_get_current_user '{}' --json
Shortcut
kosmo integrations:radar radar_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

radar.radar_list_geofences 4 parameters
Schema command
kosmo integrations:schema radar.radar_list_geofences --json
ParameterTypeRequiredDescription
limit integer no Number of results to return (default: 100, max: 1000)
cursor string no Pagination cursor from a previous response
tag string no Filter geofences by tag
group string no Filter geofences by group identifier
radar.radar_get_geofence 1 parameters
Schema command
kosmo integrations:schema radar.radar_get_geofence --json
ParameterTypeRequiredDescription
geofence_id string yes The unique identifier of the geofence to retrieve.
radar.radar_create_geofence 9 parameters
Schema command
kosmo integrations:schema radar.radar_create_geofence --json
ParameterTypeRequiredDescription
name string yes The name of the geofence.
description string no A description of the geofence.
type string no The geofence type, e.g. "circle", "polygon", or "isochrone".
coordinates string no GeoJSON coordinates or a center point (e.g. "lat,lng").
radius integer no Radius in meters (for circle geofences).
tag string no A tag to categorize the geofence.
group string no A group identifier for the geofence.
external_id string no An optional external ID for mapping to your own records.
metadata object no Optional custom metadata key-value pairs.
radar.radar_list_users 3 parameters
Schema command
kosmo integrations:schema radar.radar_list_users --json
ParameterTypeRequiredDescription
limit integer no Number of results to return (default: 100, max: 1000)
cursor string no Pagination cursor from a previous response
tags string no Filter users by tags (comma-separated)
radar.radar_get_user 1 parameters
Schema command
kosmo integrations:schema radar.radar_get_user --json
ParameterTypeRequiredDescription
user_id string yes The unique identifier of the user to retrieve.
radar.radar_list_events 5 parameters
Schema command
kosmo integrations:schema radar.radar_list_events --json
ParameterTypeRequiredDescription
limit integer no Number of results to return (default: 100, max: 1000)
cursor string no Pagination cursor from a previous response
type string no Filter by event type, e.g. "user.entered_geofence", "user.exited_geofence"
user_id string no Filter events by user ID
geofence_id string no Filter events by geofence ID
radar.radar_get_current_user 0 parameters
Schema command
kosmo integrations:schema radar.radar_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.