Skip to main content
Glama

compute_health_score

Read-onlyIdempotent

Calculates a deterministic 0–100 account health score from usage, outcomes, relationships, support, and commercial signals, explaining each driver and returning a health band.

Instructions

Compute the account's health score (0-100) deterministically from usage, outcome attainment, relationship strength, support experience and commercial signals, with a plain-language explanation of every dimension and driver, plus the resulting band ('healthy', 'watch', 'at_risk', 'critical'). The same inputs always produce the same score — a calculation, not a model opinion. Read-only; changes no stored data. Use detect_risk_signals for the specific actionable risk items behind the number, or forecast_renewal for renewal probability.

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": "compute_health_score"
  }
}

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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile is covered. The description adds real value beyond that: determinism ('the same inputs always produce the same score'), that it is a calculation rather than a model opinion, and that it returns a plain-language explanation of every dimension and driver. It does not discuss cost, latency, or edge cases such as missing signals, which keeps it short of a 5.

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?

Three sentences, front-loaded with the core action and output, with scoring context before the routing sentence. Slight waste in 'Read-only; changes no stored data', which restates the readOnlyHint and destructiveHint annotations rather than adding new 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?

There is no output schema, so the description carries the burden of explaining returns — it does so by naming the score range, the explanatory breakdown per dimension and driver, and the four bands. For a single-parameter, read-only computation tool this covers everything an agent needs to call it and interpret the result.

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% and the single account_id parameter is already documented with an example format and lookup guidance. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 for fully covered schemas 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 ('Compute the account's health score (0-100)'), names the input dimensions it derives from, and specifies the resulting output bands. It also names the sibling tools it is not, so an agent can distinguish it from detect_risk_signals and forecast_renewal without opening either 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?

Explicitly routes the agent: 'Use detect_risk_signals for the specific actionable risk items behind the number, or forecast_renewal for renewal probability.' This gives both the alternative tools and the condition that selects them, which is exactly the when-to-use guidance needed for a scoring tool sitting among several analysis siblings.

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