Skip to main content
Glama

sodural-electrical-mcp

Archived Study Parameter & Summary Reader

sodural_get_study_summary
Read-onlyIdempotent

Retrieve pre-extracted token-saving electrical parameters for one archived study including load-flow losses, transformer MVA ratings, MV bus architecture, and short-circuit peaks in kA and MW. When to use: Use this tool when inspecting structured results for a known study filename or slug. Do not use for checking global archive counters (sodural_archive_status), listing studio metadata (sodural_list_studios), or executing live nodal fault calculations (sodural_solve_topology_whitebox). Behavior: Stateless, read-only cache lookup with zero mutations; serves authorized private archives or synthetic reference studies, enforces HTTP rate limits, requires non-empty studyNameOrSlug with no defaults, and throws JSON-RPC -32602 if missing. Returns: mode, fileName, fileType, summary, counts, header, studyCase, transformers, xfmr3LoadFlow, mvArchitecture, shortCircuit, and loadFlow.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "studyNameOrSlug": "<studyNameOrSlug>"
    },
    "name": "sodural_get_study_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
studyNameOrSlugYesExact archived study filename (e.g. "Substation_Duty.SI1S") or normalized slug (e.g. "LoadFlow_225kV").

Output Schema

NameRequiredDescriptionDefault
modeNoData provenance mode (PRIVATE_ARCHIVE or PUBLIC_NORMATIVE_DEMO).
errorNoLookup error message emitted when studyNameOrSlug matches no cached study.
countsNoEquipment counts summarized for this study.
headerNoSanitized project metadata and study revision header fields.
summaryNoCompact token-optimized Markdown summary of topology, flows, and fault levels.
fileNameNoSanitized study file name matched in the archive cache.
fileTypeNoClassified study discipline (e.g. LOAD_FLOW or SHORT_CIRCUIT).
loadFlowNoExtracted total generation, active losses in MW, reactive losses in Mvar, and alerts.
studyCaseNoActive study case configuration including nominal frequency in Hz and calculation method.
shortCircuitNoExtracted three-phase initial symmetrical and peak short-circuit results in kA.
transformersNoList of transformers modeled in the study.
xfmr3LoadFlowNoOptional three-winding transformer load-flow and tap summary.
mvArchitectureNoOptional medium-voltage bus section and internal ring topology summary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • changedInput schema / properties / studyNameOrSlug / description
      Previous value: -"File name (e.g. \"Substation_Duty.SI1S\") or slug (e.g. \"LoadFlow_225kV\")"New value: +"Exact archived study filename (e.g. \"Substation_Duty.SI1S\") or normalized slug (e.g. \"LoadFlow_225kV\")."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Pre-indexed electrical study summary with load-flow and short-circuit KPIs.",
      +  "properties": {
      +    "counts": {
      +      "additionalProperties": true,
      +      "description": "Equipment counts summarized for this study.",
      +      "properties": {
      +        "buses": {
      +          "description": "Total busbars extracted from the archived study.",
      +          "type": "integer"
      +        },
      +        "cables": {
      +          "description": "Total cable branches extracted from the archived study.",
      +          "type": "integer"
      +        },
      +        "transformers": {
      +          "description": "Total transformers extracted from the archived study.",
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "error": {
      +      "description": "Lookup error message emitted when studyNameOrSlug matches no cached study.",
      +      "type": "string"
      +    },
      +    "fileName": {
      +      "description": "Sanitized study file name matched in the archive cache.",
      +      "type": "string"
      +    },
      +    "fileType": {
      +      "description": "Classified study discipline (e.g. LOAD_FLOW or SHORT_CIRCUIT).",
      +      "type": "string"
      +    },
      +    "header": {
      +      "additionalProperties": true,
      +      "description": "Sanitized project metadata and study revision header fields.",
      +      "properties": {
      +        "date": {
      +          "description": "Study export or revision date recorded in the study header.",
      +          "type": "string"
      +        },
      +        "project": {
      +          "description": "Sanitized project title extracted from study header metadata.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "loadFlow": {
      +      "additionalProperties": true,
      +      "description": "Extracted total generation, active losses in MW, reactive losses in Mvar, and alerts.",
      +      "properties": {
      +        "alertsCount": {
      +          "description": "Number of voltage or thermal overload alerts flagged.",
      +          "type": "integer"
      +        },
      +        "totalGenerationMW": {
      +          "description": "Total active power generation across swing sources in MW.",
      +          "type": "number"
      +        },
      +        "totalLossesMW": {
      +          "description": "Total active network power losses across branches in MW.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "mode": {
      +      "description": "Data provenance mode (PRIVATE_ARCHIVE or PUBLIC_NORMATIVE_DEMO).",
      +      "type": "string"
      +    },
      +    "mvArchitecture": {
      +      "additionalProperties": true,
      +      "description": "Optional medium-voltage bus section and internal ring topology summary.",
      +      "properties": {
      +        "couplingMode": {
      +          "description": "Detected MV bus section coupling state (COUPLED or SPLIT).",
      +          "type": "string"
      +        },
      +        "rameCount": {
      +          "description": "Number of distinct medium-voltage bus sections detected.",
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "shortCircuit": {
      +      "additionalProperties": true,
      +      "description": "Extracted three-phase initial symmetrical and peak short-circuit results in kA.",
      +      "properties": {
      +        "faultedBusesCount": {
      +          "description": "Number of faulted busbars reported in short-circuit results.",
      +          "type": "integer"
      +        },
      +        "maxIppkKa": {
      +          "description": "Maximum initial symmetrical three-phase fault current in kA.",
      +          "type": "number"
      +        },
      +        "worstFaultBus": {
      +          "description": "Busbar identifier exhibiting the highest initial fault current.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "studyCase": {
      +      "additionalProperties": true,
      +      "description": "Active study case configuration including nominal frequency in Hz and calculation method.",
      +      "properties": {
      +        "freqHz": {
      +          "description": "Nominal alternating-current system frequency in Hz.",
      +          "type": "number"
      +        },
      +        "studyCaseId": {
      +          "description": "Study case identifier recorded inside the archived simulation.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "summary": {
      +      "description": "Compact token-optimized Markdown summary of topology, flows, and fault levels.",
      +      "type": "string"
      +    },
      +    "transformers": {
      +      "description": "List of transformers modeled in the study.",
      +      "items": {
      +        "additionalProperties": true,
      +        "description": "Extracted transformer nameplate and impedance summary.",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "xfmr3LoadFlow": {
      +      "additionalProperties": true,
      +      "description": "Optional three-winding transformer load-flow and tap summary.",
      +      "properties": {},
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond annotations: stateless cache lookup, zero mutations, private-archive authorization, rate limiting, required non-empty input with no defaults, and JSON-RPC -32602 on missing input. Annotations already cover read-only, idempotent, and non-destructive behavior, but the description still adds meaningful operational and error-handling context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded and well organized into purpose, when-to-use, behavior, and returns. It is slightly longer than necessary because it enumerates return fields even though an output schema exists, but the structure remains clear and useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only retrieval tool with annotations and an output schema, the definition covers purpose, usage boundaries, authorization/rate-limit behavior, input validation, error behavior, and return shape. Nothing an agent needs in order to choose and invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents the single studyNameOrSlug parameter with filename and slug examples at 100% coverage. The description adds useful constraints not fully captured there: the value must be non-empty, has no default, and a missing value produces JSON-RPC -32602.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: retrieve pre-extracted electrical parameters for one archived study. It enumerates the included result domains (load-flow losses, transformer MVA ratings, MV bus architecture, short-circuit peaks) and explicitly distinguishes itself from sibling status, listing, and live-calculation tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit when-to-use condition: inspecting structured results for a known study filename or slug. It also names three sibling alternatives and the cases where they, rather than this tool, should be used.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources