Skip to main content
Glama

Service alerts and disruptions

perturbacoes
Read-onlyIdempotent

Retrieves current CP service alerts such as strikes, works, and disruptions, with optional text search, body details, homepage-only filtering, and expired-alert inclusion.

Instructions

Current CP service alerts (strikes, works, disruptions). Expired alerts are dropped unless include_expired. Use include_body for the full text (larger response). query filters title, subtitle and body (accent-insensitive).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "perturbacoes"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNopt
queryNoText filter, e.g. a line, station, or 'greve'
include_bodyNoInclude the plain-text body and footnote
homepage_onlyNoOnly alerts featured on the cp.pt homepage
include_expiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds genuinely useful behavior: expired alerts are silently dropped by default, and enabling include_body materially enlarges the response. That default-filtering and payload-size warning is exactly the context annotations cannot convey.

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?

Four short sentences, front-loaded with what the tool returns before the parameter notes; no filler. The parenthetical '(larger response)' is well-placed cost information rather than padding.

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

Completeness3/5

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

For a read-only, zero-required-parameter listing tool with no output schema, the description covers filtering and payload behavior adequately. The notable gap is lang: nothing explains whether it translates alert content or only affects labels, which matters for correct invocation on a Portuguese/English railway API.

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?

With 60% schema coverage, the baseline is 3, and the description lifts three of five parameters: it explains that query matches title, subtitle and body accent-insensitively, and that include_body returns the plain-text body and footnote at a size cost. It says nothing about lang (which presumably selects the language of the alert text) or homepage_only, leaving real ambiguity for a bilingual tool.

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

Purpose4/5

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

The description gives a specific verb-plus-resource: 'Current CP service alerts' with concrete examples (strikes, works, disruptions). It clearly is not a schedule, price, or station tool, so an agent can place it against the listed siblings, though it never explicitly contrasts with any of them.

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

Usage Guidelines3/5

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

Guidance is present but option-level rather than task-level: it says when to set include_expired and include_body. There is no explicit statement of when to reach for this tool versus another, and no exclusions or prerequisites are given.

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