Skip to main content
Glama

Correct a current insight

correct_insight
Destructive

Apply a confirmed user correction to current insight text/qualification with a stale-state check.

    This differs from record_insight_feedback, which only annotates a judgment. It does not optimize settings
    or run immediate AI. Dependent signals become pending for the daily incremental pipeline. After a timeout
    or state conflict, reread the insight/fingerprint before deciding whether another correction is needed.
    

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": {
      "monitoring_group_id": "<monitoring_group_id>",
      "insight_id": "<insight_id>",
      "expected_fingerprint": "<expected_fingerprint>",
      "changes": "<changes>",
      "confirmed": "<confirmed>"
    },
    "name": "correct_insight"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional user-provided correction reason; stored as audit data.
changesYesExact nonempty fields to change: title (1-140 chars), summary (1-500 chars), qualification_status interesting|archived. Omit unchanged fields.
confirmedYesLiteral true only after the user confirms these exact current-insight changes.
insight_idYesCurrent insight ID read in the same watchlist.
monitoring_group_idYesActive watchlist owning the insight; requires administrator and mcp:configure permission.
expected_fingerprintYesCurrent SHA256 expected_fingerprint from get_insight; protects against concurrent changes.

Output Schema

NameRequiredDescriptionDefault
impactYes
insightYes
insight_idYes
correction_idYes
changed_fieldsYes
new_fingerprintYes
affected_signal_idsYes
monitoring_group_idYes
expected_fingerprintYes
signal_update_pendingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / $defs / MarketSignalScope
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "monitoring_group_id": {
      +      "exclusiveMinimum": 0,
      +      "type": "integer"
      +    },
      +    "topic": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": {
      +      "const": "market",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "monitoring_group_id"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / SignalInsight / properties / brand_id / anyOf
      Added value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / SignalInsight / properties / brand_id / exclusiveMinimum
      Removed value: -0
    • removedOutput schema / $defs / SignalInsight / properties / brand_id / type
      Removed value: -"integer"
    • addedOutput schema / $defs / SignalInsight / properties / scope
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/MarketSignalScope"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed16 schema fields changed
    • removedInput schema / $defs / InsightCorrectionChanges / properties / qualification_status / default
      Removed value: -null
    • removedInput schema / $defs / InsightCorrectionChanges / properties / summary / default
      Removed value: -null
    • removedInput schema / $defs / InsightCorrectionChanges / properties / title / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / date_created / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / description / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / detected_at / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / entity_id / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / fingerprint / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / insight_id / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / monitoring_group_id / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / published_at / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / qualification_status / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / source / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / source_url / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / summarize_ai / default
      Removed value: -null
    • removedOutput schema / $defs / SignalInsight / properties / summary / default
      Removed value: -null
  3. Changed3 schema fields changed
    • changedInput schema / $defs / InsightCorrectionChanges / properties / qualification_status / description
      Previous value: -"Explicit qualification decision: interesting restores relevance when original proof remains available; archived excludes the current insight. Omit when unchanged."New value: +"interesting restores proof-backed relevance; archived excludes. Omit unchanged."
    • changedInput schema / $defs / InsightCorrectionChanges / properties / summary / description
      Previous value: -"Exact corrected current analysis summary, 1-500 characters. Omit when unchanged; do not invent original evidence."New value: +"Exact corrected analysis; omit unchanged, never invent source evidence."
    • changedInput schema / $defs / InsightCorrectionChanges / properties / title / description
      Previous value: -"Exact corrected current title, 1-140 characters. Omit when unchanged; explicit null is invalid."New value: +"Exact corrected title; omit unchanged. Explicit null is invalid."
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing a cascading side effect (dependent signals become pending for the daily incremental pipeline) and recovery behavior (reread the insight/fingerprint after a timeout or state conflict). The one gap is that destructiveHint=true is not echoed in prose: it never says the prior title/summary text is replaced, which matters for a mutation.

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 the core action and the stale-state qualifier, with no filler. Slightly fragmented by the indented formatting, but every sentence contributes distinct information.

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?

With an output schema present, return values need not be explained, and the description covers the pieces an agent needs: the mutation's downstream effects and the conflict-recovery procedure. Only the overwrite/reversibility implication of a destructive correction is left unstated.

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%, so the fingerprint's concurrency role, the confirmed=true constraint, and the field-level change semantics are already documented in structured data. The description only lightly reinforces this via 'stale-state check' and 'confirmed user correction', adding marginal meaning beyond the schema — the baseline 3.

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: apply a confirmed user correction to current insight text/qualification, with an explicit stale-state check. It also names the sibling it is not (record_insight_feedback, 'which only annotates a judgment'), so an agent can separate the two 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 Guidelines4/5

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

Gives clear context for use (confirmed correction of current insight text/qualification) and explicit exclusions — it does not optimize settings or run immediate AI, and it differs from record_insight_feedback. It also prescribes a follow-up path after a timeout or state conflict. It stops short of naming a full alternative ladder (e.g. update_insight) for unconfirmed edits.

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.