Skip to main content
Glama

apply_finding_fix

Destructive

Applies Marcora's stored recommended fix for one or more pending findings (content_grounding or Context Intelligence health_audit) by UUID. If the user already reviewed suggested_fix and supplies a finding_id, call this directly (no get_ci_finding re-read needed); otherwise read suggested_fix (from check_content_grounding, get_grounding_result, or list_ci_findings) and confirm with the user first — WRITES to your Reference Library, Brand Foundation, or checked content document. Requires Admin or Creator role and uses Studio Credits.

Routing & targets:

  • content_grounding findings update the target context item or document (context_item_id: null or conflict_scope: "company_material" revises the document, never your facts; company gap offers no add-to-library). Use context_item_overrides only to redirect a library gap/fix item (keys must be in finding_ids).

  • health_audit findings update Reference Library context items or Brand Foundation (target_type: "core_context").

  • web_freshness / impact_scan findings cannot be auto-applied — they return in errors[] pointing to update_ci_finding_status.

Async: poll each distinct generation_id in jobs[] via get_generation_status (fixes to the same document share one job) and report document_updated honestly. Partial success returns both jobs[] and errors[].

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": {
      "team_id": "<team_id>",
      "finding_ids": "<finding_ids>"
    },
    "name": "apply_finding_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
team_idYesTeam id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.
finding_idsYesUUIDs of content_grounding or health_audit findings (from check_content_grounding, get_grounding_result, list_ci_findings, or get_ci_finding).
context_item_overridesNoOptional map of finding_id to target context_item_id UUID to redirect a library fix.

Output Schema

NameRequiredDescriptionDefault
jobsYes
teamNoTeam this action applied to.
errorsYes
queuedYesNumber of findings queued.
skippedYesNumber of findings skipped.
requestedYesNumber of finding IDs requested.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description discloses the write targets (Reference Library, Brand Foundation, checked content document), required Admin or Creator role, Studio Credits consumption, async job semantics, and partial-success behavior. The job-sharing rule (fixes to the same document share one generation_id) is operationally critical and not inferable from structured fields.

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 the action and the branch decision, then organized into labeled Routing and Async blocks. It is dense and long, but nearly every clause carries operational information; only minor compression is possible.

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 destructive, async, multi-target mutation with an output schema, the description covers what the agent must know: confirmation requirement, permission and credit cost, target routing per finding type, and how to poll jobs[] and report document_updated honestly. Return-value detail is appropriately left to the output schema.

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 baseline is 3, but the description adds real meaning: context_item_overrides only redirects library gap/fix items and its keys must appear in finding_ids, and context_item_id: null or conflict_scope: "company_material" revises the document rather than stored facts. The mapping of target_type: "core_context" to Brand Foundation is also useful routing context.

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 ('Applies Marcora's stored recommended fix') and narrows the scope to findings of type content_grounding or health_audit by UUID. It immediately distinguishes itself from read-oriented siblings like get_ci_finding and list_ci_findings by being the apply step.

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 explicit branch conditions: call directly when the user has reviewed suggested_fix and supplied a finding_id, otherwise read suggested_fix and confirm with the user first. It also names the exclusion case — web_freshness and impact_scan cannot be auto-applied and route to update_ci_finding_status via errors[].

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