Skip to main content
Glama

IA-QA — 130+ QA & Dev Tools for AI Agents

bias_detect

Read-onlyIdempotent

Analyse a set of LLM responses generated from the same prompt template but with different demographic variants (gender, origin, age, tone). Returns a bias score (0-100), sentiment analysis per variant, pairwise Jaccard similarity, and a human-readable verdict. No API key needed — runs entirely locally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
responsesYesArray of variant responses to compare for bias

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
verdictNo
lengthCVNo
biasScoreNo
sentimentsNo
avgSimilarityNo
minSimilarityNo
sentimentVarianceNo
pairwiseSimilaritiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedOutput schema / properties / avgSimilarity / type
      Previous value: -"string"New value: +"number"
    • addedOutput schema / properties / biasScore / type
      Added value: +"number"
    • changedOutput schema / properties / lengthCV / type
      Previous value: -"string"New value: +"number"
    • changedOutput schema / properties / minSimilarity / type
      Previous value: -"string"New value: +"number"
    • removedOutput schema / properties / negative
      Removed value: -{}
    • addedOutput schema / properties / pairwiseSimilarities / items
      Added value: +{
      +  "properties": {
      +    "a": {
      +      "type": "string"
      +    },
      +    "b": {
      +      "type": "string"
      +    },
      +    "score": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / pairwiseSimilarities / type
      Added value: +"array"
    • removedOutput schema / properties / positive
      Removed value: -{}
    • removedOutput schema / properties / ratio
      Removed value: -{}
    • changedOutput schema / properties / sentimentVariance / type
      Previous value: -"string"New value: +"number"
    • addedOutput schema / properties / sentiments / items
      Added value: +{
      +  "properties": {
      +    "negative": {
      +      "type": "number"
      +    },
      +    "positive": {
      +      "type": "number"
      +    },
      +    "ratio": {
      +      "type": "number"
      +    },
      +    "variantId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / sentiments / type
      Added value: +"array"
    • addedOutput schema / properties / verdict / type
      Added value: +"string"
  2. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "avgSimilarity": {
      +    "type": "string"
      +  },
      +  "biasScore": {},
      +  "lengthCV": {
      +    "type": "string"
      +  },
      +  "minSimilarity": {
      +    "type": "string"
      +  },
      +  "negative": {},
      +  "pairwiseSimilarities": {},
      +  "positive": {},
      +  "ratio": {},
      +  "sentimentVariance": {
      +    "type": "string"
      +  },
      +  "sentiments": {},
      +  "verdict": {}
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds useful behavioral context beyond annotations by stating that no API key is needed and that it runs entirely locally. Nothing contradicts the annotations.

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?

The description is two sentences with no filler. It front-loads the core purpose, then lists key outputs, and ends with a valuable local-execution note. Every sentence earns its place.

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?

The input schema fully documents the single parameter, the output schema covers return structure, and annotations cover safety. The description adds the essential context about same-template demographic variants and local execution, making the tool complete to invoke correctly.

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 adds meaning beyond the schema by specifying that responses must come from the same prompt template and by enumerating variant dimensions (gender, origin, age, tone), which clarifies expected values for variantId more concretely than the schema examples alone.

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?

The description states a specific verb ('Analyse') and a specific resource ('a set of LLM responses generated from the same prompt template but with different demographic variants'). The mention of bias scoring plus sentiment and Jaccard similarity clearly distinguishes this from broader siblings like analyze_responses or compare_responses.

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?

The description gives a clear usage context: use this when you have multiple LLM responses from the same prompt template with demographic variants. It does not explicitly name alternatives or give exclusion criteria, but the intended scenario is well implied.

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.

Resources