Skip to main content
Glama

Horarios de cortes de luz por sector

get_cortes_horarios
Read-only

Parse a power-cut schedule or notice into structured rows with outage dates, time blocks, locations, sectors, and maintenance motives; filter results by place.

Instructions

Parse one power-cut schedule or notice (archivo from search_cortes) into rows: date, time blocks without power, location and sectors, plus the motive for maintenance notices. query filters by place.

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": {
      "distribuidora": "<distribuidora>",
      "archivo": "<archivo>"
    },
    "name": "get_cortes_horarios"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoFree text matched (accent-insensitive) against location and sectors, e.g. "La Floresta", "Gualaceo".
formatNotext summary (default) or json structured result.text
archivoYesThe file's `archivo` from search_cortes (EEQ: slug or URL; Centrosur: PDF URL; emelnorte/elecgalapagos: post id; eeasa: vigentes).
distribuidoraYeseeq, centrosur, emelnorte, elecgalapagos or eeasa.

Output Schema

NameRequiredDescriptionDefault
filasNo
sourceNo
columnasNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.15.0
    • changedInput schema / properties / archivo / description
      Previous value: -"The file's `archivo` from search_cortes (EEQ: slug or URL; Centrosur: PDF URL)."New value: +"The file's `archivo` from search_cortes (EEQ: slug or URL; Centrosur: PDF URL; emelnorte/elecgalapagos: post id; eeasa: vigentes)."
    • changedInput schema / properties / distribuidora / description
      Previous value: -"eeq or centrosur."New value: +"eeq, centrosur, emelnorte, elecgalapagos or eeasa."
    • changedInput schema / properties / distribuidora / enum
      Previous value: -[
      -  "eeq",
      -  "centrosur"
      -]New value: +[
      +  "eeq",
      +  "centrosur",
      +  "emelnorte",
      +  "elecgalapagos",
      +  "eeasa"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "columnas": {},
      +    "filas": {},
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Addedv0.10.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, open-world behavior; the description adds what the tool actually produces (structured rows per schedule) and that motive is only captured for maintenance notices. It does not cover per-distribuidora quirks or failure handling, but it goes meaningfully beyond the annotations.

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?

Compact and front-loaded: the parse action and output fields come first, filtering last. Slightly dense phrasing ('plus the motive for maintenance notices') but every clause carries information.

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

Completeness4/5

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

With an output schema present and full schema coverage, the description supplies the missing framing: it parses a single source file and what the rows represent. Enough to call correctly, though edge cases like unparseable archives are unaddressed.

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

Parameters3/5

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

Schema coverage is 100% and the schema already explains `archivo` formats per distribuidora, `query` matching, and `format`. The description only restates that query filters by place, adding little beyond the structured fields, so baseline 3 applies.

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 (parse) and resource (one power-cut schedule or notice) and enumerates the extracted fields: date, time blocks without power, location, sectors, motive. It also names the source parameter's origin (archivo from search_cortes), so it is clearly distinguishable from the search sibling.

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

Usage Guidelines4/5

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

Implies the workflow: take an `archivo` produced by search_cortes and parse it, and notes that `query` filters by place. It does not state exclusions or what to do if parsing fails, but the pipeline context is explicit enough for selection.

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

Deploy Server

Other Tools