Skip to main content
Glama

detect_risk_signals

Read-onlyIdempotent

Detect account risk signals such as churn notices, overdue payments, stalled onboarding and low utilisation. Returns each triggered signal ranked by severity with supporting evidence and a recommended play.

Instructions

Run the deterministic risk rules engine over an account and return every triggered signal (e.g. churn notice, payment overdue, stalled onboarding, low utilisation, no executive sponsor), ranked by severity ('critical', 'high', 'medium', 'low'), each with its evidence and a recommended play. Read-only. Complements compute_health_score: health is the aggregate number, this is the specific, actionable list behind it.

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": {
      "account_id": "<account_id>"
    },
    "name": "detect_risk_signals"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesThe account's canonical ID, e.g. 'ACC-1001'. Look one up with list_accounts or portfolio_triage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / account_id / description
      Added value: +"The account's canonical ID, e.g. 'ACC-1001'. Look one up with list_accounts or portfolio_triage."
  2. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the description doesn't need to re-argue safety. It still adds real behavioral context beyond them: the engine is deterministic, results are ranked across a named four-level severity vocabulary, and each signal carries evidence plus a recommended play. It doesn't say what an empty result (no triggered signals) looks like or whether the list is chunked, which holds it short of 5.

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

Conciseness5/5

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

Two dense sentences, front-loaded with the action and the output shape, and the sibling disambiguation lands last where it is needed. Every clause (severity levels, evidence, play, read-only, contrast with health score) carries information.

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 tool with no output schema, the description carries the return-value burden well by naming the signal examples, the severity ordering, and the per-signal payload (evidence plus recommended play). Nothing an agent needs in order to call this correctly is missing.

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?

There is a single parameter and schema description coverage is 100%, with the schema itself telling the agent to look up the canonical ID via list_accounts or portfolio_triage. The description adds no further meaning about account_id, so the 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 and resource ('Run the deterministic risk rules engine over an account') plus what comes back: every triggered signal ranked by severity with evidence and a recommended play. It explicitly contrasts itself with the sibling compute_health_score, so an agent can choose between them without opening a schema.

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?

Names the nearest alternative and gives the selection rule: health score is the aggregate number, this tool is the specific actionable list behind it. That is an explicit when-to-use-this-vs-that statement rather than an implied one.

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