Skip to main content
Glama

Escudo de Dependencia Frágil

detect_single_point_of_failure_risk

Analiza código que hace llamadas a servicios externos (fetch/axios/http.request en JavaScript, requests/urllib en Python) en busca de llamadas SIN timeout configurado — que pueden quedar esperando indefinidamente y bloquear al agente si el servicio externo se cuelga — y, por separado, llamadas con timeout pero SIN ninguna lógica de reintento/backoff visible, donde una falla transitoria y corta se propaga directo como una falla total de la herramienta. Motivada por el apagón de control aéreo de EE. UU. del 13 de noviembre de 2026: una falla de telecomunicaciones en un solo punto crítico, sin mecanismo de respaldo, obligó a detener todos los despegues del país durante horas — el mismo patrón (una dependencia única sin timeout ni plan de respaldo) es lo que esta herramienta busca en el código de un servidor o agente MCP. Es un análisis estático por patrones de texto (no ejecuta el código ni mide latencia real) — mismo enfoque que detect_missing_auth_risk y detect_unbounded_allocation_risk. Requiere una llave de acceso válida (usos gratis o créditos) — ver POST /crear-llave.

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": {
      "codigo": "<codigo>"
    },
    "name": "detect_single_point_of_failure_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
codigoYesEl código que hace llamadas a servicios externos, en texto plano.
lenguajeNoSolo informativo (ej. "javascript") — este campo no cambia el resultado.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses the analysis method (static pattern matching, no code execution, no real latency measurement), the two distinct finding categories reported separately, and an authentication precondition (valid key, free uses or credits, see POST /crear-llave). It does not describe the result shape or severity/confidence characteristics, which is the main remaining gap.

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

Conciseness3/5

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

The core detection logic is front-loaded and precise, but the description is long and padded by a multi-clause anecdote about a 2026 US air-traffic-control outage. The metaphor is illustrative but consumes substantial space for little operational value, and the auth note is buried at the very end where it is easy to miss.

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?

For a two-parameter, no-annotation tool with no output schema, it covers purpose, detection technique, limitations, and the auth prerequisite. The single meaningful omission is any indication of what the returned findings look like (fields, severity, line references), which an agent cannot infer from structured data here.

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 description coverage is 100%, so both fields are already documented, including the note that `lenguaje` is informational only. The description adds no parameter-level detail beyond the schema — it never clarifies expected input granularity (whole file vs. snippet) for `codigo`. Baseline 3 applies when the schema does the heavy lifting.

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 ("Analiza código") and an unambiguous target: external-service calls without a configured timeout, plus a second, separate class of calls with timeout but no retry/backoff. It also scope-limits itself by naming the exact call patterns (fetch/axios/http.request in JS, requests/urllib in Python), so an agent can distinguish it from siblings like detect_ssrf_risk or detect_missing_auth_risk without opening any schema.

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?

Clearly conveys the context in which it applies (code making outbound calls) and, importantly, tells the agent what it is NOT: a static text-pattern analysis, not execution or real latency measurement. It also positions itself alongside sibling detectors (detect_missing_auth_risk, detect_unbounded_allocation_risk) as the same family. It stops short of explicit when-not-to-use or alternative-routing guidance for overlapping detectors.

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.