Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMPOSE_API_URLNocompose-api base URL (point at a local instance for dev).https://compose.cam.uchc.edu
COMPOSE_API_TOKENNoBearer token. Omit to run anonymously — anonymous runs are public.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Run process-bigraph composites on compose-api (a hosted cosimulation service) and fetch their results. Typical flow: list_simulators to see what can run, run_simulation to submit a composite document (detached -> returns an id), simulation_status to poll, fetch_results to download. Set COMPOSE_API_TOKEN to run as yourself; without it, runs are anonymous and public.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
whoamiA

Who the server is authenticated as (or anonymous), and service health.

Use this first to confirm the connector can reach compose-api and whether a token is in effect.

list_simulatorsB

List the simulators compose-api can run (the run catalog).

list_processesB

List the process-bigraph processes registered on the service.

run_simulationA

Submit a composite/SED-ML document to compose-api for simulation.

document_path is a local path to the composite or SED-ML document. By default the run is detached: the tool returns a simulation id and status; poll with simulation_status and collect with fetch_results. Set wait=True to block (up to timeout seconds) and return the terminal status in one call — use only for short runs.

simulation_statusA

Current status of a submitted simulation (poll until terminal).

fetch_resultsA

Download a finished simulation's results to a local file.

Writes the results archive to dest_dir (a temp dir by default) and returns the path and size rather than the raw bytes, so the host can open or publish the file. Call only once the run is terminal (see simulation_status).

list_simulationsC

List recent simulations on the service (filter by status, or only yours).

cancel_simulationC

Cancel a running simulation.

simulation_detailA

Detail for one simulation: its latest job, and how many events and datasets its run recorded.

Richer than simulation_status (which is just the current job state) — use it to see whether a finished run produced events/datasets worth fetching.

simulation_eventsA

A page of a run's events, in the order recorded (logs/progress/warnings).

Pass the returned next_cursor as after for the next page; narrow with level (e.g. "error") or an event name. Use this to see why a run behaved as it did.

simulation_traceC

A run's execution trace as a tree of spans, each with its own events — where the run spent its time.

list_datasetsA

The data files runs advertised: one simulation's (pass simulation_id) or all the caller may read.

Filter by kind or query q; page with the returned next_offset. Fetch one with fetch_dataset.

fetch_datasetA

Download one dataset (a file a run advertised) to a local file; returns the path and size.

dataset_id comes from list_datasets. Writes into dest_dir (a temp dir by default).

catalogA

The registry: every entry with its curation level and the environments that provide its classes.

This is the authoritative view of what the service can run — read it before authoring a document to see which process/step classes are available and where.

list_environmentsB

The environments documents run in, with what their interface manifests hold.

A submitted document's environment is inferred from its process classes; this lists the choices.

list_stepsA

List the process-bigraph Steps registered on the service (the /core steps catalog; see also list_processes).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target clearly distinct objects or lifecycle stages (run, poll, fetch, cancel, inspect events/trace). The one soft spot is the cluster of discovery tools — catalog, list_simulators, list_processes, list_steps, list_environments — whose boundaries overlap, though descriptions mostly differentiate them (catalog is authoritative, simulators are runnable targets, processes/steps are class catalogs).

Naming Consistency3/5

Action tools follow a clean verb_noun pattern (run_simulation, fetch_results, cancel_simulation, list_datasets), but the read/inspection tools use bare nouns (catalog, simulation_status, simulation_detail, simulation_trace, whoami). The two conventions are readable but mixed within the same set.

Tool Count4/5

16 tools is slightly on the heavy side but each maps to a real part of the simulation lifecycle: discovery, submission, polling, observability, and artifact retrieval. None feel clearly redundant, though consolidation of the discovery tools could trim the set.

Completeness4/5

The surface covers discovery, submission, status/detail, cancellation, listing, event/trace inspection, and dataset fetching — a full lifecycle. Minor gaps remain, such as validating or editing a document before submission and deleting/cleaning up simulations or datasets.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues