Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CROSSROUTE_CONFIGNoPath to the JSON config. When unset, ./config.json is used if that file exists; otherwise ~/.config/crossroute-mcp/config.json.
CROSSROUTE_TIMEOUT_SECNoHTTP timeout in seconds. Default: 120.120

Instructions

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

stdio MCP server. Call list_routes, then complete with route and prompt. Each client can remember its preferred route and model. Pass reasoning_level as unified: none|minimal|low|medium|high|xhigh|max. temperature is optional; some reasoning models reject it. A local safety scan blocks prompts with personal data, secrets, contracts, or unpublished financial figures; prompt and response bodies are not persisted.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
list_routesA

List configured upstream routes (name, protocol, defaults). Does not expose API keys or env values. Includes safety mode summary.

completeA

Call a named upstream route to generate text. Params: route (required), prompt (required), optional system, model, reasoning_level (none|minimal|low|medium|high|xhigh|max), max_tokens, temperature (only sent if provided; some reasoning models reject it). Locally blocks prompts containing PII, secrets, contract bodies, or unpublished financial figures before any network call. Returns JSON: {ok, route, protocol, model, reasoning_level, text, usage?, error?, safety_blocked?, suggest_local_fallback?, attempted_routes?, cross_route_used?}. If ok=false and suggest_local_fallback=true (timeout, overload, empty, or upstream error), the caller can finish with its own model. safety_blocked means do NOT fall back with the same sensitive prompt. Optional cross_route (default true): when the intent model matches config cross_route_fallbacks, failed entry route retries other sites with the SAME model; set false to pin to one route.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 2 tools

Disambiguation4/5

The two tools serve clearly separate purposes: list_routes is a read-only discovery call, while complete performs the actual generation against a named route. The only friction is the bare name 'complete', which alone would be vague, but the description and the paired discovery tool make selection unambiguous.

Naming Consistency3/5

Both names are snake_case lowercase verbs, so the surface is readable. However, list_routes follows a verb_noun pattern while complete is a bare verb with no object, so the two names do not form a predictable pair (e.g., list_routes / call_route would be more consistent).

Tool Count3/5

Two tools is thin for a routing/gateway server, but the scope is deliberately narrow: discover routes, then invoke one. It sits at the borderline where the surface is defensible yet feels minimal rather than well-scoped.

Completeness3/5

The core lifecycle (discover routes, call a route) is covered, and the rich response envelope handles failure paths. Notable gaps remain: no per-route detail/health or availability check, no model/route status inspection, and no way to validate config despite the tool advertising fallback and safety-mode behavior.