Skip to main content
Glama

Score an entity from known contributors

score_trust_identified
Read-only

Computes credibility-weighted trust scores from signals supplied by identified sources, accounting for tier, proof, reputation, recency, and evidence depth, and shrinks thin evidence toward a domain baseline.

Instructions

Scores one entity (or one dimension of one entity -- quality, reliability, communication, ...) from signals contributed by KNOWN, identified sources: reviewer accounts, raters, inspectors, verified buyers. Weighs each signal by tier x source x proof-strength x reputation x recency decay, sums to an effective (credibility-weighted) sample size, and shrinks the result toward a domain baseline ('prior') by a configurable dial -- thin evidence stays close to the prior, deep evidence overrides it. Signals whose combined weight is 0 contribute nothing; when no signal carries weight, confidence is 'insufficient' and the score equals the prior. Evidence dated more than one day after now is scored as undated (its recency uses missingDateAgeDays). Every signal's tier, source and proof must be a key of the matching weight table, or the call is an error that names the missing key. The built-in example configuration accepts tier new | standard | verified | expert, source imported | referred | direct, and proof none | self_attested | verified | documented; override them with config.tierWeights, config.sourceWeights and config.proofWeights. Inputs that push a derived value past a finite number (for example an enormous dial or weight) are a tool error. Use this for trust/reputation scores backed by attributable evidence. For unattributed/scraped signals with no identity behind them, use assess_anonymous_authenticity instead.

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": {
      "signals": "<signals>",
      "now": "<now>",
      "prior": "<prior>"
    },
    "name": "score_trust_identified"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowYesISO 'now' timestamp recency decay is computed against. Pass a fixed value for determinism.
dialNoShrinkage strength: a named preset, or a raw phantom-prior-signal count. Defaults to 'balanced'.
priorYesThe domain/category baseline the score shrinks toward when evidence is thin.
configNoPartial override merged over the library's illustrative EXAMPLE_IDENTIFIED_CONFIG (tiers new/standard/verified/expert). Real callers should supply their own tier/source/proof vocabulary for their domain -- omit to use the example config as-is.
signalsYesThe identified signals to score from. May be empty (yields the prior, with insufficient confidence).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / signals / description
      Previous value: -"The identified signals to score from. May be empty (yields the prior)."New value: +"The identified signals to score from. May be empty (yields the prior, with insufficient confidence)."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover safety (readOnlyHint=true, openWorldHint=false), and the description adds substantial behavior beyond them: the weighting/shrinkage model, 'insufficient' confidence when no signal carries weight, future-dated signals scored as undated via missingDateAgeDays, hard errors for unknown weight-table keys and for numeric overflow, and determinism via a fixed `now`. This is exactly the context an agent needs to avoid a failed call.

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?

Front-loaded with purpose and the alternative, and nearly every sentence carries actionable information. It is a single dense paragraph with a long chain of edge-case clauses, which costs some scannability but not much content is wasted.

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?

No output schema exists, and the description does disclose the key return semantics (effective credibility-weighted sample size, confidence levels including 'insufficient', and that the score equals the prior in that case), but it never describes the full shape of the response (per-signal contributions, field names). For a nested-object tool with 5 params this is strong but not exhaustive.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by explaining the shrinkage 'dial' concept, the built-in example vocabulary (tier/source/proof) and how to override it via config.tierWeights/sourceWeights/proofWeights, and the meaning of the 'prior'. It does not add much for `now` or `signals` structure, keeping it from a 5.

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 ('scores one entity or one dimension') plus the input class ('signals contributed by KNOWN, identified sources'), and explicitly names the sibling it is not: assess_anonymous_authenticity. An agent can route between the two without opening the 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?

Gives both sides of the decision: 'Use this for trust/reputation scores backed by attributable evidence' and 'For unattributed/scraped signals with no identity behind them, use assess_anonymous_authenticity instead.' No inference required.

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