Skip to main content
Glama
omari91

grid-screen-mcp

by omari91

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYNoOptional Gemini API key for LLM-synthesized engineering memo narrative (default model: gemini-2.5-flash).
OPENAI_API_KEYNoOptional OpenAI API key for LLM-synthesized engineering memo narrative (default model: gpt-4o-mini).
OPENAI_BASE_URLNoOptional base URL to use a local Ollama/vLLM compatible endpoint with the OpenAI provider.
GRID_AGENT_MODELNoOverride the default LLM model name for memo synthesis.
ANTHROPIC_API_KEYNoOptional Anthropic API key for LLM-synthesized engineering memo narrative (default model: claude-sonnet-4-20250514).
GRID_AGENT_AIRGAPPEDNoSet to `1` to enable Air-Gapped Utility Mode, blocking all outbound cloud LLM HTTP calls even when API keys exist in the environment (only local loopback endpoints or deterministic memos are permitted).
GRID_AGENT_API_TOKENNoRemote Bearer token enforced via constant-time MCPAuthMiddleware when using `sse` or `streamable-http` transports.
GRID_AGENT_MCP_SCOPENoDynamically restricts exposed MCP tools. Set to `tier1_only` or `readonly` to omit child-process Tier-2 AC and batch sweep tools from untrusted agent registries; `full` exposes all tools.
GRID_AGENT_MAX_DSS_WORKERSNoMaximum number of concurrent isolated OpenDSS child-process workers (BoundedSemaphore concurrency limit).

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

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_networksA

List all supported ARENA/CSIRO 415 V LV feeders, 11-20 kV MV benchmarks, and NEM 132-500 kV substations.

Catalog metadata lookup only. Does NOT run short-circuit or AC power-flow calculations.

inspect_connection_pointA

Extract deterministic Thevenin impedance (R_th, X_th, Z_th), R/X ratio, fault level S_sc, dV/dP, and SHA-256 hash.

Call this tool FIRST to inspect electrical stiffness at the Point of Common Coupling (PCC). Does NOT run AC power flow.

classify_screening_regimeB

Apply the 3D Master Vertical Grid Matrix to determine which physical constraint binds first (Voltage, Thermal, or N-1 SCR).

Classifies Constraint-Decoupled Dominance across 415 V LV, 11-20 kV MV, and 132-500 kV Transmission. Does NOT run AC power flow.

search_toolsB

Search available MCP screening tools by keyword, returning cost tier and scope metadata.

run_tier1_screenA

Calculates fast short-circuit and voltage screening. Returns a pass/fail. Does NOT run full AC power flow.

Executes sub-10ms analytical screening using season-stratified voltage calibration (1.0752 pu), thermal margin, post-contingency N-1 Short Circuit Ratio (NER S5.2.5 SCR >= 2.0), and Pareto joint hosting capacity. Use fast_clear_eligible and flagged_for_tier2 to decide whether to escalate to run_tier2_ac_study.

run_tier2_ac_studyA

Run isolated child-process unbalanced 3-phase OpenDSS AC power flow (LV) or exact 2-bus N-0/N-1 AC contingency solve (MV/TX).

Study scope: study_type='snapshot' evaluates selected worst-case seasonal peak states (17 LV / 8 MV-TX states); study_type='time_series' evaluates the chronological 30-min diurnal trajectory + seasonal peaks. Does NOT run a synchronous 17,520/35,040-interval full-year telemetry simulation. Enforces a hard subprocess timeout. By default, include_trajectory=False prunes the raw trajectory array to protect LLM context tokens and returns trajectory_resource_uri (grid://verdicts/{fingerprint}/trajectory) for on-demand inspection.

propose_mitigationsC

Synthesize OpenDSS-verified Static Operating Envelopes (5kW/3kW), snapshot-bounded DOEs, or TX system-strength options.

Note: The Dynamic Operating Envelope (DOE_SNAPSHOT_ENVELOPE) is a static envelope derived from deterministic AC snapshot/diurnal bounds (telemetry_forecast_active=false), NOT a live SSID-Kalman predictive Warning Lead Time (WLT) forecast.

screen_connection_applicationC

Execute end-to-end progressive-fidelity triage with Supervisory Sanity Gate, requires_human_review, regulatory_override, and SHA-256 AuditReceipt.

By default, include_trajectory=False omits raw Tier-2 voltage arrays to save LLM context tokens while preserving the exact reproducibility_sha256 digest and exposing grid://verdicts/{queue_fingerprint}/trajectory & plot.svg.

sweep_connection_capacitiesB

Execute a server-side N-point hosting-capacity sweep to locate the exact constraint inflection point.

Shields the LLM context window from N sequential tool round-trips by evaluating candidate capacities natively in Python (1 <= steps <= 20) and returning a compact inflection table.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Supported Grid NetworksComplete catalog of 415 V LV feeders, 11-20 kV MV benchmarks, and NEM 132-500 kV substations.
Interconnection Queue TelemetryLive backlog deduplication statistics, fast-track counts, and recent SHA-256 audit entries.

TDQS

A3.5/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have clearly distinct roles: catalog lookup, connection-point inspection, regime classification, Tier-1 screening, Tier-2 AC study, mitigation proposal, end-to-end triage, and capacity sweep. There is some overlap between `screen_connection_application` and manually chaining `run_tier1_screen` / `run_tier2_ac_study`, and `search_tools` is a meta-tool that stands apart from the domain workflow, but descriptions make the progressive-fidelity boundaries understandable.

Naming Consistency5/5

All tools use snake_case with a clear verb-first pattern such as `list_networks`, `inspect_connection_point`, `classify_screening_regime`, `run_tier1_screen`, and `propose_mitigations`. Tier and domain qualifiers are used consistently enough that the naming remains predictable.

Tool Count5/5

Nine tools are well scoped for a grid-screening server, with each covering a distinct stage from catalog discovery through screening, detailed study, mitigation, end-to-end triage, and capacity sweep. The set is neither thin nor bloated.

Completeness4/5

The surface covers the core lifecycle: network catalog, PCC inspection, regime classification, fast and detailed screening, mitigation synthesis, end-to-end application screening, and hosting-capacity sweep. Minor gaps remain around explicit artifact/result retrieval or standalone audit/export operations, though the end-to-end tool returns audit receipts and resource URIs.

Maintenance

ActivityMaintained
ResponsivenessNo issues